Memory Management Overhead

Source code: oil/benchmarks/gc.sh

GC Stats

task elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num gc points num gc done gc threshold num growths max survived shell label
parse.configure-cpython 38 5 11 12.0 18.1 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 167 27 78 46.1 51.4 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.5 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 29 0 1 2.6 7.9 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 179 0 4 10.3 8.7 979,369 27,376 21 50,000 0 3,804 osh-native
ex.abuild-print-help 22 1 2 2.8 8.8 116,240 478 3 85,322 1 42,661 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 6 0 1.6 dash -
23 23 0 3.0 bash -
106 58 55 3.4 zsh -
17 13 3 28.3 bumpleak/osh mut
20 15 4 29.4 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
32 16 16 25.6 osh-native mut+alloc+free
38 34 4 18.1 osh-native mut+alloc+free+gc
37 26 11 18.0 osh-native mut+alloc+free+gc+exit
43 31 12 32.0 _bin/cxx-opt+nopool/osh mut+alloc
51 40 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

parse.configure-coreutils

Parsing the autoconf-generated configure script from GNU coreutils.

Note that unlike other shells, osh -n retains all nodes on purpose. (See the parser benchmark).

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
21 21 0 1.4 dash -
77 73 4 3.1 bash -
377 240 158 3.5 zsh -
49 42 8 84.7 bumpleak/osh mut
61 46 15 85.0 _bin/cxx-opt+bumproot/osh mut
70 51 19 84.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 69 28 73.4 osh-native mut+alloc
104 76 28 75.1 osh-native mut+alloc+free
167 154 12 51.4 osh-native mut+alloc+free+gc
165 137 28 52.2 osh-native mut+alloc+free+gc+exit
140 112 28 98.0 _bin/cxx-opt+nopool/osh mut+alloc
239 211 28 72.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

parse.abuild

Parsing abuild from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
2 0 2 1.3 dash -
6 6 0 2.8 bash -
8 0 8 3.3 zsh -
6 6 0 11.9 bumpleak/osh mut
6 3 3 12.4 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.7 osh-native mut+alloc
9 5 5 9.8 osh-native mut+alloc+free
9 5 5 8.5 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.compute-fib

A synthetic benchmark for POSIX shell arithmetic.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
11 10 0 1.4 dash -
29 25 4 3.0 bash -
24 24 0 3.4 zsh -
19 16 4 32.6 bumpleak/osh mut
25 25 0 31.4 _bin/cxx-opt+bumproot/osh mut
28 23 4 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
38 26 11 26.6 osh-native mut+alloc+free
29 20 8 7.9 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 42 11 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 36 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
73 69 4 3.1 bash -
165 109 56 54.1 bumpleak/osh mut
180 116 64 53.6 _bin/cxx-opt+bumproot/osh mut
192 112 80 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 135 75 46.4 osh-native mut+alloc
219 143 75 48.0 osh-native mut+alloc+free
179 123 56 8.7 osh-native mut+alloc+free+gc
180 139 40 8.4 osh-native mut+alloc+free+gc+exit
230 137 93 63.1 _bin/cxx-opt+nopool/osh mut+alloc
209 145 64 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.abuild-print-help

Running abuild -h from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
10 7 3 3.5 dash -
20 14 6 4.3 bash -
18 13 5 3.5 zsh -
21 11 10 12.7 bumpleak/osh mut
20 10 10 12.0 _bin/cxx-opt+bumproot/osh mut
22 15 8 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 20 2 10.9 osh-native mut+alloc
23 14 9 10.9 osh-native mut+alloc+free
22 17 6 8.8 osh-native mut+alloc+free+gc
24 18 5 8.8 osh-native mut+alloc+free+gc+exit
25 18 7 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 16 10 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc