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 4 10 12.0 17.8 476,755 1,282 6 406,612 5 203,306 osh-native
parse.configure-cpython 33 4 10 12.0 17.7 476,755 1,282 6 406,208 5 203,104 osh-native-souffle
parse.configure-coreutils 150 24 65 44.5 49.8 1,653,343 4,764 12 1,025,534 6 764,310 osh-native
parse.configure-coreutils 137 23 61 44.5 49.4 1,653,342 4,764 12 1,025,404 6 764,245 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,946 180 2 75,038 1 37,519 osh-native
parse.abuild 9 1 2 2.4 8.0 101,946 180 3 87,100 1 43,550 osh-native-souffle
ex.compute-fib 28 0 2 2.1 8.0 579,610 22,608 12 50,000 0 2,923 osh-native
ex.compute-fib 22 0 1 2.1 7.3 579,610 22,608 12 50,000 0 2,862 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 10.3 8.9 995,292 15,258 21 50,000 0 3,905 osh-native
ex.bashcomp-parse-help 173 0 3 10.3 8.1 995,291 15,258 21 50,000 0 3,848 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,322 277 3 85,256 1 42,628 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,322 277 3 85,132 1 42,566 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 23 0 2.9 bash -
105 56 56 3.3 zsh -
16 8 8 29.3 bumpleak/osh mut
19 15 4 29.0 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 26 4 25.0 osh-native mut+alloc
31 23 8 25.7 osh-native mut+alloc+free
36 28 8 17.8 osh-native mut+alloc+free+gc
36 32 4 18.1 osh-native mut+alloc+free+gc+exit
44 24 20 32.0 _bin/cxx-opt+nopool/osh mut+alloc
48 43 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 7 18 24.8 osh-native-souffle mut+alloc
28 16 12 25.2 osh-native-souffle mut+alloc+free
33 24 8 17.7 osh-native-souffle mut+alloc+free+gc
33 25 8 17.6 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
22 17 4 1.4 dash -
77 77 0 3.3 bash -
379 219 182 3.5 zsh -
49 41 8 85.2 bumpleak/osh mut
58 54 4 84.9 _bin/cxx-opt+bumproot/osh mut
73 54 19 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 72 24 73.4 osh-native mut+alloc
105 60 44 75.5 osh-native mut+alloc+free
150 130 20 49.8 osh-native mut+alloc+free+gc
153 133 20 50.3 osh-native mut+alloc+free+gc+exit
139 91 47 97.7 _bin/cxx-opt+nopool/osh mut+alloc
207 167 40 68.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 54 33 73.1 osh-native-souffle mut+alloc
96 60 36 75.0 osh-native-souffle mut+alloc+free
137 113 24 49.4 osh-native-souffle mut+alloc+free+gc
140 104 36 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.4 dash -
6 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 10.7 bumpleak/osh mut
6 6 0 10.8 _bin/cxx-opt+bumproot/osh mut
8 0 8 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 0 8 9.8 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
9 5 5 8.4 osh-native mut+alloc+free+gc+exit
12 11 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 4 4 8.0 osh-native-souffle mut+alloc+free+gc
9 3 6 8.0 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
11 10 0 1.3 dash -
29 25 4 3.0 bash -
24 16 8 3.3 zsh -
18 7 11 30.9 bumpleak/osh mut
26 22 4 32.7 _bin/cxx-opt+bumproot/osh mut
29 18 11 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
37 24 12 26.5 osh-native mut+alloc+free
28 27 0 8.0 osh-native mut+alloc+free+gc
27 27 0 8.1 osh-native mut+alloc+free+gc+exit
55 39 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 33 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 26.0 osh-native-souffle mut+alloc
31 31 0 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.3 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 69 4 3.0 bash -
167 105 61 55.0 bumpleak/osh mut
182 125 56 56.0 _bin/cxx-opt+bumproot/osh mut
197 128 68 56.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 127 83 47.3 osh-native mut+alloc
215 131 84 49.0 osh-native mut+alloc+free
181 125 56 8.9 osh-native mut+alloc+free+gc
182 105 77 8.9 osh-native mut+alloc+free+gc+exit
233 149 84 63.0 _bin/cxx-opt+nopool/osh mut+alloc
210 169 40 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 116 88 47.0 osh-native-souffle mut+alloc
209 122 87 48.6 osh-native-souffle mut+alloc+free
173 114 59 8.1 osh-native-souffle mut+alloc+free+gc
174 107 67 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 7 3 3.4 dash -
20 16 4 4.5 bash -
18 13 5 3.4 zsh -
19 7 12 12.1 bumpleak/osh mut
20 12 8 12.9 _bin/cxx-opt+bumproot/osh mut
21 11 12 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 6 11.0 osh-native mut+alloc
22 20 3 11.3 osh-native mut+alloc+free
22 20 2 9.2 osh-native mut+alloc+free+gc
23 17 7 8.9 osh-native mut+alloc+free+gc+exit
24 17 8 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 12 14 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 15 5 10.5 osh-native-souffle mut+alloc
21 15 7 10.7 osh-native-souffle mut+alloc+free
21 21 0 8.7 osh-native-souffle mut+alloc+free+gc
21 12 9 8.8 osh-native-souffle mut+alloc+free+gc+exit