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 34 3 9 12.0 18.0 476,767 1,282 6 406,620 5 203,310 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,767 1,282 6 406,610 5 203,305 osh-native-souffle
parse.configure-coreutils 145 22 58 44.5 49.8 1,653,355 4,764 12 1,025,542 6 764,314 osh-native
parse.configure-coreutils 133 22 57 44.5 49.4 1,653,354 4,764 12 1,025,532 6 764,309 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,958 180 2 75,046 1 37,523 osh-native
parse.abuild 8 1 1 2.6 8.4 101,958 180 2 75,036 1 37,518 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,722 22,608 12 50,000 0 2,927 osh-native
ex.compute-fib 22 0 1 2.2 7.6 579,722 22,608 12 50,000 0 2,922 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 11.1 8.8 1,021,039 15,258 22 50,000 0 3,916 osh-native
ex.bashcomp-parse-help 176 0 4 11.1 8.4 1,021,038 15,258 22 50,000 0 3,916 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.0 116,357 277 3 85,264 1 42,632 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 116,357 277 3 85,254 1 42,627 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 -
24 23 1 3.0 bash -
101 49 59 3.4 zsh -
17 11 6 28.1 bumpleak/osh mut
20 18 2 28.9 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 15 14 25.2 osh-native mut+alloc
31 21 10 25.4 osh-native mut+alloc+free
34 29 6 18.0 osh-native mut+alloc+free+gc
35 28 7 18.1 osh-native mut+alloc+free+gc+exit
42 31 11 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 40 7 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.8 osh-native-souffle mut+alloc
29 18 11 25.3 osh-native-souffle mut+alloc+free
32 23 9 17.7 osh-native-souffle mut+alloc+free+gc
32 25 7 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.6 dash -
77 75 2 3.3 bash -
360 202 179 3.7 zsh -
49 38 11 84.4 bumpleak/osh mut
60 55 5 86.0 _bin/cxx-opt+bumproot/osh mut
71 60 11 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 58 37 73.5 osh-native mut+alloc
104 75 29 75.5 osh-native mut+alloc+free
145 119 26 49.8 osh-native mut+alloc+free+gc
148 122 26 50.3 osh-native mut+alloc+free+gc+exit
139 97 42 99.0 _bin/cxx-opt+nopool/osh mut+alloc
204 171 33 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 54 33 73.1 osh-native-souffle mut+alloc
95 61 34 75.0 osh-native-souffle mut+alloc+free
133 113 20 49.4 osh-native-souffle mut+alloc+free+gc
137 117 20 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.3 dash -
5 4 1 2.8 bash -
7 4 3 3.4 zsh -
6 3 3 12.3 bumpleak/osh mut
7 6 1 11.3 _bin/cxx-opt+bumproot/osh mut
8 7 1 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 10.1 osh-native mut+alloc
8 5 3 10.1 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
11 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 9 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 4 9.6 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
8 6 2 8.4 osh-native-souffle mut+alloc+free+gc
8 6 2 8.3 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 9 1 1.4 dash -
29 27 2 2.9 bash -
23 20 3 3.3 zsh -
18 14 4 33.0 bumpleak/osh mut
26 21 5 33.0 _bin/cxx-opt+bumproot/osh mut
29 24 4 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 27 9 26.2 osh-native mut+alloc
38 27 11 26.5 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
54 36 18 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 33 5 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 24 6 26.0 osh-native-souffle mut+alloc
31 21 10 26.3 osh-native-souffle mut+alloc+free
22 21 1 7.6 osh-native-souffle mut+alloc+free+gc
22 20 2 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 67 6 3.1 bash -
167 105 61 56.7 bumpleak/osh mut
181 134 47 57.9 _bin/cxx-opt+bumproot/osh mut
196 131 64 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 140 73 48.9 osh-native mut+alloc
221 160 61 50.8 osh-native mut+alloc+free
182 128 53 8.8 osh-native mut+alloc+free+gc
185 143 42 8.8 osh-native mut+alloc+free+gc+exit
238 137 101 64.5 _bin/cxx-opt+nopool/osh mut+alloc
211 160 51 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 125 78 48.3 osh-native-souffle mut+alloc
225 149 76 50.3 osh-native-souffle mut+alloc+free
176 124 52 8.4 osh-native-souffle mut+alloc+free+gc
175 125 51 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
9 5 5 3.5 dash -
19 9 10 4.5 bash -
17 8 10 3.4 zsh -
19 10 10 12.6 bumpleak/osh mut
19 14 6 12.1 _bin/cxx-opt+bumproot/osh mut
19 11 9 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 11 9 11.1 osh-native mut+alloc
21 12 9 11.3 osh-native mut+alloc+free
21 9 13 9.0 osh-native mut+alloc+free+gc
22 9 13 9.0 osh-native mut+alloc+free+gc+exit
24 13 11 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 15 10 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 4 16 10.7 osh-native-souffle mut+alloc
21 9 12 10.7 osh-native-souffle mut+alloc+free
21 13 8 8.8 osh-native-souffle mut+alloc+free+gc
21 9 12 8.7 osh-native-souffle mut+alloc+free+gc+exit