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 36 4 10 12.0 17.8 476,753 1,282 6 406,608 5 203,304 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,753 1,282 6 406,204 5 203,102 osh-native-souffle
parse.configure-coreutils 144 23 58 44.5 49.7 1,653,341 4,764 12 1,025,530 6 764,308 osh-native
parse.configure-coreutils 136 23 60 44.5 49.4 1,653,340 4,764 12 1,025,400 6 764,243 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,944 180 2 75,034 1 37,517 osh-native
parse.abuild 9 1 2 2.4 7.9 101,944 180 3 87,096 1 43,548 osh-native-souffle
ex.compute-fib 27 0 1 2.1 8.0 579,608 22,608 12 50,000 0 2,921 osh-native
ex.compute-fib 21 0 1 2.1 7.6 579,608 22,608 12 50,000 0 2,860 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 10.3 8.9 995,290 15,258 21 50,000 0 3,903 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.3 995,289 15,258 21 50,000 0 3,846 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.8 116,320 277 3 85,252 1 42,626 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 116,320 277 3 85,128 1 42,564 osh-native-souffle

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 -
103 66 44 3.4 zsh -
16 12 4 28.2 bumpleak/osh mut
20 16 4 30.0 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.2 osh-native mut+alloc
34 26 8 25.6 osh-native mut+alloc+free
36 28 8 17.8 osh-native mut+alloc+free+gc
37 28 8 18.0 osh-native mut+alloc+free+gc+exit
43 35 8 32.6 _bin/cxx-opt+nopool/osh mut+alloc
50 42 8 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 19 8 24.6 osh-native-souffle mut+alloc
28 24 4 25.3 osh-native-souffle mut+alloc+free
33 25 8 17.4 osh-native-souffle mut+alloc+free+gc
33 28 4 17.7 osh-native-souffle mut+alloc+free+gc+exit

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
22 22 0 1.6 dash -
77 77 0 3.1 bash -
376 219 178 3.7 zsh -
49 49 0 85.1 bumpleak/osh mut
59 43 16 86.2 _bin/cxx-opt+bumproot/osh mut
71 43 27 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 46 50 73.6 osh-native mut+alloc
105 62 43 75.4 osh-native mut+alloc+free
144 120 24 49.7 osh-native mut+alloc+free+gc
148 120 28 50.6 osh-native mut+alloc+free+gc+exit
139 110 29 99.0 _bin/cxx-opt+nopool/osh mut+alloc
202 174 28 66.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 41 45 73.1 osh-native-souffle mut+alloc
95 43 51 75.0 osh-native-souffle mut+alloc+free
136 112 24 49.4 osh-native-souffle mut+alloc+free+gc
139 103 36 50.2 osh-native-souffle mut+alloc+free+gc+exit

parse.abuild

Parsing abuild from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
2 2 0 1.4 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
5 0 6 11.8 bumpleak/osh mut
6 6 0 10.5 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 5 5 8.7 osh-native mut+alloc+free+gc
9 5 5 8.5 osh-native mut+alloc+free+gc+exit
12 12 0 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 4 8 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 4 4 7.9 osh-native-souffle mut+alloc+free+gc
9 4 4 8.0 osh-native-souffle mut+alloc+free+gc+exit

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 11 0 1.4 dash -
29 29 0 3.0 bash -
23 19 5 3.3 zsh -
19 11 8 32.4 bumpleak/osh mut
26 15 11 32.8 _bin/cxx-opt+bumproot/osh mut
27 27 0 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.2 osh-native mut+alloc
37 26 11 26.7 osh-native mut+alloc+free
27 27 0 8.0 osh-native mut+alloc+free+gc
28 24 4 7.7 osh-native mut+alloc+free+gc+exit
55 35 20 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 30 0 26.0 osh-native-souffle mut+alloc
31 19 12 26.2 osh-native-souffle mut+alloc+free
21 17 4 7.6 osh-native-souffle mut+alloc+free+gc
22 17 4 7.7 osh-native-souffle mut+alloc+free+gc+exit

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 -
170 106 63 55.8 bumpleak/osh mut
182 145 36 55.8 _bin/cxx-opt+bumproot/osh mut
192 124 68 55.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 138 73 47.3 osh-native mut+alloc
216 136 80 49.0 osh-native mut+alloc+free
181 124 56 8.9 osh-native mut+alloc+free+gc
184 132 52 8.7 osh-native mut+alloc+free+gc+exit
233 146 87 63.2 _bin/cxx-opt+nopool/osh mut+alloc
210 162 48 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 124 80 47.0 osh-native-souffle mut+alloc
216 136 80 48.7 osh-native-souffle mut+alloc+free
175 119 55 8.3 osh-native-souffle mut+alloc+free+gc
173 126 47 8.4 osh-native-souffle mut+alloc+free+gc+exit

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 10 0 3.4 dash -
20 14 7 4.5 bash -
18 12 7 3.5 zsh -
19 14 6 12.3 bumpleak/osh mut
19 10 9 12.3 _bin/cxx-opt+bumproot/osh mut
21 14 8 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 3 11.1 osh-native mut+alloc
22 13 10 11.1 osh-native mut+alloc+free
22 21 2 8.8 osh-native mut+alloc+free+gc
23 19 4 9.0 osh-native mut+alloc+free+gc+exit
24 19 6 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 19 7 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 14 7 10.5 osh-native-souffle mut+alloc
21 13 9 10.7 osh-native-souffle mut+alloc+free
21 13 8 8.8 osh-native-souffle mut+alloc+free+gc
22 17 5 8.7 osh-native-souffle mut+alloc+free+gc+exit