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 6 12 12.0 18.0 476,767 1,282 6 406,620 5 203,310 osh-native
parse.configure-cpython 33 4 10 12.0 17.6 476,767 1,282 6 406,610 5 203,305 osh-native-souffle
parse.configure-coreutils 162 26 76 44.5 50.0 1,653,355 4,764 12 1,025,542 6 764,314 osh-native
parse.configure-coreutils 155 27 79 44.5 49.5 1,653,354 4,764 12 1,025,532 6 764,309 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,958 180 2 75,046 1 37,523 osh-native
parse.abuild 9 1 1 2.6 8.1 101,958 180 2 75,036 1 37,518 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.1 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 186 0 4 11.1 8.7 1,021,039 15,258 22 50,000 0 3,916 osh-native
ex.bashcomp-parse-help 177 0 4 11.1 8.4 1,021,038 15,258 22 50,000 0 3,916 osh-native-souffle
ex.abuild-print-help 23 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.4 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.6 dash -
23 22 1 3.1 bash -
100 57 50 3.3 zsh -
16 13 3 28.8 bumpleak/osh mut
20 17 3 29.5 _bin/cxx-opt+bumproot/osh mut
22 15 8 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.2 osh-native mut+alloc
33 23 10 25.6 osh-native mut+alloc+free
38 25 13 18.0 osh-native mut+alloc+free+gc
38 30 8 18.0 osh-native mut+alloc+free+gc+exit
42 29 13 32.4 _bin/cxx-opt+nopool/osh mut+alloc
55 46 9 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 14 13 24.8 osh-native-souffle mut+alloc
29 20 8 25.3 osh-native-souffle mut+alloc+free
33 28 5 17.6 osh-native-souffle mut+alloc+free+gc
38 29 9 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 -
80 77 3 3.1 bash -
367 186 203 3.5 zsh -
49 41 8 85.6 bumpleak/osh mut
61 51 10 86.5 _bin/cxx-opt+bumproot/osh mut
72 58 14 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 67 29 73.4 osh-native mut+alloc
106 78 28 75.4 osh-native mut+alloc+free
162 144 18 50.0 osh-native mut+alloc+free+gc
168 147 21 50.4 osh-native mut+alloc+free+gc+exit
137 97 40 99.0 _bin/cxx-opt+nopool/osh mut+alloc
234 212 22 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 47 40 73.0 osh-native-souffle mut+alloc
96 64 32 74.9 osh-native-souffle mut+alloc+free
155 133 22 49.5 osh-native-souffle mut+alloc+free+gc
159 127 32 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 5 1 3.0 bash -
7 5 3 3.3 zsh -
6 4 2 10.7 bumpleak/osh mut
7 4 3 12.7 _bin/cxx-opt+bumproot/osh mut
8 6 2 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 7 2 10.0 osh-native mut+alloc
9 6 3 10.2 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 7 3 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.6 osh-native-souffle mut+alloc
8 6 3 9.8 osh-native-souffle mut+alloc+free
9 5 3 8.1 osh-native-souffle mut+alloc+free+gc
9 5 4 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 3.0 bash -
23 18 5 3.3 zsh -
18 15 4 31.5 bumpleak/osh mut
26 20 6 32.2 _bin/cxx-opt+bumproot/osh mut
30 24 6 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 30 7 26.3 osh-native mut+alloc
38 24 14 26.6 osh-native mut+alloc+free
28 25 3 8.1 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
54 34 20 36.0 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 12 26.0 osh-native-souffle mut+alloc
31 22 9 26.2 osh-native-souffle mut+alloc+free
22 20 2 7.6 osh-native-souffle mut+alloc+free+gc
22 20 2 7.5 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
74 72 2 3.1 bash -
167 117 50 57.5 bumpleak/osh mut
184 116 68 56.3 _bin/cxx-opt+bumproot/osh mut
195 131 64 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 139 76 48.9 osh-native mut+alloc
226 160 65 50.8 osh-native mut+alloc+free
186 133 53 8.7 osh-native mut+alloc+free+gc
185 132 53 8.8 osh-native mut+alloc+free+gc+exit
239 157 82 64.5 _bin/cxx-opt+nopool/osh mut+alloc
220 169 51 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 132 74 48.5 osh-native-souffle mut+alloc
212 157 55 50.4 osh-native-souffle mut+alloc+free
177 122 55 8.4 osh-native-souffle mut+alloc+free+gc
176 128 48 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
9 7 2 3.4 dash -
20 13 8 4.5 bash -
17 7 10 3.4 zsh -
19 9 10 12.2 bumpleak/osh mut
21 11 10 13.4 _bin/cxx-opt+bumproot/osh mut
20 9 11 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 11.1 osh-native mut+alloc
23 11 13 11.4 osh-native mut+alloc+free
23 13 10 9.0 osh-native mut+alloc+free+gc
23 13 11 9.0 osh-native mut+alloc+free+gc+exit
24 11 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 11 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 13 10.5 osh-native-souffle mut+alloc
21 7 14 10.7 osh-native-souffle mut+alloc+free
21 13 9 8.4 osh-native-souffle mut+alloc+free+gc
22 12 10 8.5 osh-native-souffle mut+alloc+free+gc+exit