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 37 4 10 12.0 18.1 476,753 1,282 6 406,608 5 203,304 osh-native
parse.configure-cpython 34 3 10 12.0 17.6 476,753 1,282 6 406,204 5 203,102 osh-native-souffle
parse.configure-coreutils 158 26 71 44.5 49.7 1,653,341 4,764 12 1,025,530 6 764,308 osh-native
parse.configure-coreutils 146 29 69 44.5 49.4 1,653,340 4,764 12 1,025,400 6 764,243 osh-native-souffle
parse.abuild 10 1 2 2.6 8.4 101,944 180 2 75,034 1 37,517 osh-native
parse.abuild 9 1 2 2.4 7.7 101,944 180 3 87,096 1 43,548 osh-native-souffle
ex.compute-fib 28 0 2 2.1 7.9 579,608 22,608 12 50,000 0 2,921 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,608 22,608 12 50,000 0 2,860 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.3 8.9 995,290 15,258 21 50,000 0 3,903 osh-native
ex.bashcomp-parse-help 176 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 9.2 116,320 277 3 85,252 1 42,626 osh-native
ex.abuild-print-help 22 1 2 2.8 8.5 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
6 6 0 1.4 dash -
23 23 0 3.0 bash -
106 64 48 3.3 zsh -
17 12 4 29.6 bumpleak/osh mut
19 16 4 28.9 _bin/cxx-opt+bumproot/osh mut
23 15 8 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 8 25.2 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
37 32 4 18.1 osh-native mut+alloc+free+gc
36 28 8 18.2 osh-native mut+alloc+free+gc+exit
45 32 12 32.1 _bin/cxx-opt+nopool/osh mut+alloc
50 45 4 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.8 osh-native-souffle mut+alloc
29 12 16 25.3 osh-native-souffle mut+alloc+free
34 29 4 17.6 osh-native-souffle mut+alloc+free+gc
33 33 0 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 21 0 1.4 dash -
77 65 12 3.1 bash -
376 245 152 3.5 zsh -
49 41 8 85.9 bumpleak/osh mut
61 49 12 84.9 _bin/cxx-opt+bumproot/osh mut
71 55 16 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 56 44 73.5 osh-native mut+alloc
106 66 39 75.4 osh-native mut+alloc+free
158 130 28 49.7 osh-native mut+alloc+free+gc
155 131 24 50.5 osh-native mut+alloc+free+gc+exit
138 69 69 97.8 _bin/cxx-opt+nopool/osh mut+alloc
219 191 28 66.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 59 28 73.1 osh-native-souffle mut+alloc
95 53 41 75.0 osh-native-souffle mut+alloc+free
146 110 35 49.4 osh-native-souffle mut+alloc+free+gc
144 132 12 50.1 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.3 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 0 6 12.1 bumpleak/osh mut
6 6 0 10.7 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 9.7 osh-native mut+alloc
9 0 9 10.4 osh-native mut+alloc+free
10 7 3 8.4 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 0 8 9.7 osh-native-souffle mut+alloc+free
9 3 6 7.7 osh-native-souffle mut+alloc+free+gc
9 9 0 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
10 10 0 1.4 dash -
28 28 0 2.9 bash -
24 16 8 3.3 zsh -
19 15 4 31.7 bumpleak/osh mut
25 22 4 31.7 _bin/cxx-opt+bumproot/osh mut
28 20 8 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 33 4 26.3 osh-native mut+alloc
37 29 8 26.6 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
55 27 27 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 36 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 19 11 26.0 osh-native-souffle mut+alloc
32 20 12 26.1 osh-native-souffle mut+alloc+free
22 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 68 4 3.1 bash -
169 104 64 55.3 bumpleak/osh mut
180 148 32 54.8 _bin/cxx-opt+bumproot/osh mut
195 138 57 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 155 56 47.4 osh-native mut+alloc
219 170 49 49.1 osh-native mut+alloc+free
184 120 64 8.9 osh-native mut+alloc+free+gc
182 137 44 8.9 osh-native mut+alloc+free+gc+exit
232 136 96 63.1 _bin/cxx-opt+nopool/osh mut+alloc
210 133 77 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 145 60 46.9 osh-native-souffle mut+alloc
213 132 80 48.6 osh-native-souffle mut+alloc+free
176 119 56 8.3 osh-native-souffle mut+alloc+free+gc
175 119 56 8.3 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 5 5 3.4 dash -
20 15 5 4.5 bash -
19 16 3 3.4 zsh -
19 7 11 13.2 bumpleak/osh mut
21 12 9 12.8 _bin/cxx-opt+bumproot/osh mut
22 18 5 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 13 11.0 osh-native mut+alloc
23 14 9 11.1 osh-native mut+alloc+free
22 21 2 9.2 osh-native mut+alloc+free+gc
23 11 13 9.2 osh-native mut+alloc+free+gc+exit
25 12 14 12.6 _bin/cxx-opt+nopool/osh mut+alloc
27 21 7 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 12 9 10.5 osh-native-souffle mut+alloc
22 16 6 10.7 osh-native-souffle mut+alloc+free
22 20 3 8.5 osh-native-souffle mut+alloc+free+gc
24 13 12 8.7 osh-native-souffle mut+alloc+free+gc+exit