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 41 7 13 12.0 17.8 476,767 1,282 6 406,620 5 203,310 osh-native
parse.configure-cpython 35 5 11 12.0 17.4 476,767 1,282 6 406,610 5 203,305 osh-native-souffle
parse.configure-coreutils 176 29 88 44.5 49.8 1,653,355 4,764 12 1,025,542 6 764,314 osh-native
parse.configure-coreutils 170 29 91 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 9 1 1 2.6 8.1 101,958 180 2 75,036 1 37,518 osh-native-souffle
ex.compute-fib 29 0 2 2.2 8.1 579,722 22,608 12 50,000 0 2,927 osh-native
ex.compute-fib 23 0 2 2.2 7.6 579,722 22,608 12 50,000 0 2,922 osh-native-souffle
ex.bashcomp-parse-help 186 0 5 11.1 8.8 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.2 116,357 277 3 85,264 1 42,632 osh-native
ex.abuild-print-help 22 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 4 2 1.6 dash -
23 21 2 3.0 bash -
105 56 56 3.4 zsh -
16 12 4 28.8 bumpleak/osh mut
21 17 4 28.7 _bin/cxx-opt+bumproot/osh mut
23 15 8 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 9 25.4 osh-native mut+alloc
32 21 11 25.7 osh-native mut+alloc+free
41 35 6 17.8 osh-native mut+alloc+free+gc
40 33 7 18.1 osh-native mut+alloc+free+gc+exit
44 32 12 32.5 _bin/cxx-opt+nopool/osh mut+alloc
63 57 6 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
28 17 11 24.9 osh-native-souffle mut+alloc
30 18 12 25.3 osh-native-souffle mut+alloc+free
35 28 6 17.4 osh-native-souffle mut+alloc+free+gc
37 29 8 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.3 bash -
373 194 201 3.4 zsh -
49 39 10 84.5 bumpleak/osh mut
62 52 10 86.2 _bin/cxx-opt+bumproot/osh mut
70 55 15 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 69 28 73.5 osh-native mut+alloc
109 78 31 75.5 osh-native mut+alloc+free
176 153 23 49.8 osh-native mut+alloc+free+gc
185 159 26 50.4 osh-native mut+alloc+free+gc+exit
139 99 40 98.9 _bin/cxx-opt+nopool/osh mut+alloc
258 231 27 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 56 34 73.1 osh-native-souffle mut+alloc
97 66 31 75.0 osh-native-souffle mut+alloc+free
170 151 19 49.4 osh-native-souffle mut+alloc+free+gc
167 140 27 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 1 1 1.4 dash -
6 4 1 3.0 bash -
7 2 5 3.3 zsh -
6 2 4 10.9 bumpleak/osh mut
7 4 2 12.4 _bin/cxx-opt+bumproot/osh mut
7 3 5 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 8 1 10.1 osh-native mut+alloc
9 7 2 10.2 osh-native mut+alloc+free
9 6 4 8.7 osh-native mut+alloc+free+gc
10 7 3 8.7 osh-native mut+alloc+free+gc+exit
12 5 7 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 2 9.6 osh-native-souffle mut+alloc
8 3 6 9.8 osh-native-souffle mut+alloc+free
9 4 5 8.1 osh-native-souffle mut+alloc+free+gc
9 3 6 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.6 dash -
29 28 1 2.9 bash -
23 16 7 3.4 zsh -
19 16 3 32.1 bumpleak/osh mut
27 24 2 32.9 _bin/cxx-opt+bumproot/osh mut
29 23 6 31.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.3 osh-native mut+alloc
39 29 10 26.5 osh-native mut+alloc+free
29 25 4 8.1 osh-native mut+alloc+free+gc
29 26 3 8.0 osh-native mut+alloc+free+gc+exit
54 35 20 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 16 14 26.0 osh-native-souffle mut+alloc
32 20 12 26.3 osh-native-souffle mut+alloc+free
23 22 1 7.6 osh-native-souffle mut+alloc+free+gc
23 18 5 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
74 72 2 3.0 bash -
168 115 53 57.2 bumpleak/osh mut
184 131 53 56.7 _bin/cxx-opt+bumproot/osh mut
200 142 58 58.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
222 147 76 48.9 osh-native mut+alloc
230 156 74 50.7 osh-native mut+alloc+free
186 146 40 8.8 osh-native mut+alloc+free+gc
189 141 48 8.8 osh-native mut+alloc+free+gc+exit
239 162 78 64.7 _bin/cxx-opt+nopool/osh mut+alloc
230 161 69 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
209 142 66 48.2 osh-native-souffle mut+alloc
216 147 68 50.3 osh-native-souffle mut+alloc+free
177 128 49 8.4 osh-native-souffle mut+alloc+free+gc
177 132 45 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 -
19 10 10 4.5 bash -
18 8 11 3.5 zsh -
19 7 12 11.7 bumpleak/osh mut
20 6 15 12.5 _bin/cxx-opt+bumproot/osh mut
22 9 14 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 9 13 11.1 osh-native mut+alloc
23 11 13 11.3 osh-native mut+alloc+free
23 13 10 9.2 osh-native mut+alloc+free+gc
24 15 9 9.2 osh-native mut+alloc+free+gc+exit
25 10 16 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 13 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 8 13 10.6 osh-native-souffle mut+alloc
23 9 14 10.7 osh-native-souffle mut+alloc+free
22 8 14 8.8 osh-native-souffle mut+alloc+free+gc
23 12 11 8.8 osh-native-souffle mut+alloc+free+gc+exit