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 5 11 12.0 17.8 476,762 1,282 6 406,610 5 203,305 osh-native
parse.configure-cpython 34 5 11 12.0 17.7 476,762 1,282 6 406,326 5 203,163 osh-native-souffle
parse.configure-coreutils 165 26 78 44.5 49.7 1,653,350 4,764 12 1,025,532 6 764,309 osh-native
parse.configure-coreutils 167 28 89 44.5 49.4 1,653,349 4,764 12 1,025,522 6 764,304 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,953 180 2 75,036 1 37,518 osh-native
parse.abuild 9 1 1 2.6 8.4 101,953 180 2 75,026 1 37,513 osh-native-souffle
ex.compute-fib 29 0 1 2.2 8.0 579,717 22,608 12 50,000 0 2,922 osh-native
ex.compute-fib 22 0 2 2.2 7.6 579,717 22,608 12 50,000 0 2,917 osh-native-souffle
ex.bashcomp-parse-help 186 0 4 11.1 8.9 1,021,032 15,258 22 50,000 0 3,911 osh-native
ex.bashcomp-parse-help 176 0 4 11.1 8.4 1,021,031 15,258 22 50,000 0 3,916 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,336 277 3 85,254 1 42,627 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,336 277 3 85,244 1 42,622 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 -
23 22 1 3.1 bash -
101 52 56 3.4 zsh -
17 15 2 29.2 bumpleak/osh mut
20 17 3 29.9 _bin/cxx-opt+bumproot/osh mut
22 17 5 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.3 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
37 29 8 17.8 osh-native mut+alloc+free+gc
39 25 15 18.1 osh-native mut+alloc+free+gc+exit
42 23 19 32.4 _bin/cxx-opt+nopool/osh mut+alloc
52 47 5 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 12 25.0 osh-native-souffle mut+alloc
29 22 6 25.3 osh-native-souffle mut+alloc+free
34 25 9 17.7 osh-native-souffle mut+alloc+free+gc
37 29 8 17.8 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 77 1 3.1 bash -
369 198 194 3.5 zsh -
50 38 12 85.1 bumpleak/osh mut
60 51 9 86.1 _bin/cxx-opt+bumproot/osh mut
71 64 7 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 66 30 73.5 osh-native mut+alloc
105 72 34 75.4 osh-native mut+alloc+free
165 143 22 49.7 osh-native mut+alloc+free+gc
168 143 25 50.6 osh-native mut+alloc+free+gc+exit
139 94 46 98.8 _bin/cxx-opt+nopool/osh mut+alloc
254 223 31 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 60 27 73.3 osh-native-souffle mut+alloc
98 62 35 75.1 osh-native-souffle mut+alloc+free
167 144 23 49.4 osh-native-souffle mut+alloc+free+gc
168 144 24 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 0 2 1.4 dash -
6 5 1 3.0 bash -
7 4 3 3.1 zsh -
6 4 2 10.7 bumpleak/osh mut
6 4 3 12.3 _bin/cxx-opt+bumproot/osh mut
7 4 3 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 10.0 osh-native mut+alloc
9 5 4 10.4 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 7 2 8.5 osh-native mut+alloc+free+gc+exit
12 9 3 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.7 osh-native-souffle mut+alloc
8 3 5 9.8 osh-native-souffle mut+alloc+free
9 5 4 8.4 osh-native-souffle mut+alloc+free+gc
9 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.4 dash -
28 27 1 3.0 bash -
23 17 6 3.3 zsh -
18 14 4 31.2 bumpleak/osh mut
26 21 5 32.5 _bin/cxx-opt+bumproot/osh mut
29 22 7 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 13 26.5 osh-native mut+alloc
39 26 12 26.6 osh-native mut+alloc+free
29 27 2 8.0 osh-native mut+alloc+free+gc
29 24 5 7.9 osh-native mut+alloc+free+gc+exit
54 38 16 36.1 _bin/cxx-opt+nopool/osh mut+alloc
38 36 2 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
31 23 8 26.2 osh-native-souffle mut+alloc+free
22 21 1 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 71 2 3.1 bash -
168 113 55 57.1 bumpleak/osh mut
182 135 47 58.0 _bin/cxx-opt+bumproot/osh mut
196 141 55 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 135 80 49.0 osh-native mut+alloc
222 157 65 50.8 osh-native mut+alloc+free
186 121 65 8.9 osh-native mut+alloc+free+gc
187 135 52 8.9 osh-native mut+alloc+free+gc+exit
236 162 75 64.7 _bin/cxx-opt+nopool/osh mut+alloc
219 153 66 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 131 74 48.6 osh-native-souffle mut+alloc
213 133 80 50.4 osh-native-souffle mut+alloc+free
176 125 51 8.4 osh-native-souffle mut+alloc+free+gc
176 123 53 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 2 8 3.4 dash -
19 11 9 4.3 bash -
17 8 10 3.4 zsh -
18 7 11 11.3 bumpleak/osh mut
21 9 12 13.3 _bin/cxx-opt+bumproot/osh mut
20 11 10 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.1 osh-native mut+alloc
23 10 13 11.1 osh-native mut+alloc+free
23 11 12 9.0 osh-native mut+alloc+free+gc
23 10 14 9.2 osh-native mut+alloc+free+gc+exit
25 13 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 13 13 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 12 10.6 osh-native-souffle mut+alloc
21 8 14 10.6 osh-native-souffle mut+alloc+free
21 7 15 8.7 osh-native-souffle mut+alloc+free+gc
22 12 11 8.7 osh-native-souffle mut+alloc+free+gc+exit