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 3 9 12.0 18.0 476,761 1,282 6 406,608 5 203,304 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,761 1,282 6 406,324 5 203,162 osh-native-souffle
parse.configure-coreutils 154 24 68 44.5 49.8 1,653,349 4,764 12 1,025,530 6 764,308 osh-native
parse.configure-coreutils 142 23 65 44.5 49.3 1,653,348 4,764 12 1,025,520 6 764,303 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,952 180 2 75,034 1 37,517 osh-native
parse.abuild 8 1 1 2.6 8.3 101,952 180 2 75,024 1 37,512 osh-native-souffle
ex.compute-fib 28 0 2 2.2 8.0 579,716 22,608 12 50,000 0 2,921 osh-native
ex.compute-fib 22 0 1 2.2 7.6 579,716 22,608 12 50,000 0 2,916 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 11.1 9.0 1,021,031 15,258 22 50,000 0 3,910 osh-native
ex.bashcomp-parse-help 173 0 4 11.1 8.3 1,021,030 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,335 277 3 85,252 1 42,626 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 116,335 277 3 85,242 1 42,621 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 5 1 1.6 dash -
24 24 0 3.1 bash -
100 60 46 3.5 zsh -
17 11 6 28.3 bumpleak/osh mut
20 13 7 29.8 _bin/cxx-opt+bumproot/osh mut
23 18 4 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 25.4 osh-native mut+alloc
31 22 9 25.8 osh-native mut+alloc+free
36 25 11 18.0 osh-native mut+alloc+free+gc
36 32 4 18.0 osh-native mut+alloc+free+gc+exit
42 27 15 32.5 _bin/cxx-opt+nopool/osh mut+alloc
47 38 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 16 10 24.8 osh-native-souffle mut+alloc
28 17 11 25.3 osh-native-souffle mut+alloc+free
32 24 9 17.4 osh-native-souffle mut+alloc+free+gc
34 27 6 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
21 20 1 1.4 dash -
78 76 2 3.1 bash -
363 197 188 3.4 zsh -
49 37 12 83.9 bumpleak/osh mut
60 51 9 84.9 _bin/cxx-opt+bumproot/osh mut
73 54 19 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 53 44 73.7 osh-native mut+alloc
104 79 25 75.4 osh-native mut+alloc+free
154 128 26 49.8 osh-native mut+alloc+free+gc
163 137 26 50.5 osh-native mut+alloc+free+gc+exit
136 94 42 98.9 _bin/cxx-opt+nopool/osh mut+alloc
215 178 37 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 48 40 73.1 osh-native-souffle mut+alloc
96 63 34 74.9 osh-native-souffle mut+alloc+free
142 120 22 49.3 osh-native-souffle mut+alloc+free+gc
148 125 23 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 1 1 1.4 dash -
5 4 2 2.9 bash -
7 3 4 3.1 zsh -
6 3 3 11.2 bumpleak/osh mut
7 7 0 11.3 _bin/cxx-opt+bumproot/osh mut
7 4 3 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.1 osh-native mut+alloc
9 7 2 10.1 osh-native mut+alloc+free
9 5 4 8.5 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
11 7 5 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 3 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 5 3 10.0 osh-native-souffle mut+alloc+free
8 5 3 8.3 osh-native-souffle mut+alloc+free+gc
8 7 1 8.1 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.6 dash -
28 27 1 3.0 bash -
23 18 5 3.3 zsh -
19 14 5 34.8 bumpleak/osh mut
26 22 4 31.8 _bin/cxx-opt+bumproot/osh mut
28 20 8 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.2 osh-native mut+alloc
38 29 8 26.6 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
29 26 3 8.0 osh-native mut+alloc+free+gc+exit
53 41 12 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 12 26.0 osh-native-souffle mut+alloc
31 25 6 26.2 osh-native-souffle mut+alloc+free
22 21 1 7.6 osh-native-souffle mut+alloc+free+gc
22 22 0 7.6 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 72 1 3.0 bash -
169 115 53 56.7 bumpleak/osh mut
182 127 55 57.1 _bin/cxx-opt+bumproot/osh mut
196 140 56 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 143 69 49.0 osh-native mut+alloc
220 143 77 50.8 osh-native mut+alloc+free
183 129 54 9.0 osh-native mut+alloc+free+gc
181 125 55 8.7 osh-native mut+alloc+free+gc+exit
233 171 62 64.7 _bin/cxx-opt+nopool/osh mut+alloc
211 164 46 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 129 74 48.4 osh-native-souffle mut+alloc
212 140 71 50.3 osh-native-souffle mut+alloc+free
173 127 46 8.3 osh-native-souffle mut+alloc+free+gc
173 121 52 8.5 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
9 3 6 3.4 dash -
19 8 11 4.5 bash -
17 6 11 3.4 zsh -
17 9 9 11.4 bumpleak/osh mut
19 9 11 12.5 _bin/cxx-opt+bumproot/osh mut
19 8 12 14.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 11.1 osh-native mut+alloc
22 9 13 11.3 osh-native mut+alloc+free
22 12 11 9.0 osh-native mut+alloc+free+gc
22 16 7 9.2 osh-native mut+alloc+free+gc+exit
24 10 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 13 12 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 12 10.6 osh-native-souffle mut+alloc
21 8 13 10.9 osh-native-souffle mut+alloc+free
21 9 12 8.8 osh-native-souffle mut+alloc+free+gc
21 13 9 8.7 osh-native-souffle mut+alloc+free+gc+exit