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 35 3 9 12.0 18.1 476,745 1,282 6 406,318 5 203,159 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,745 1,282 6 406,188 5 203,094 osh-native-souffle
parse.configure-coreutils 151 25 64 44.5 49.6 1,653,333 4,764 12 1,025,514 6 764,300 osh-native
parse.configure-coreutils 143 24 63 45.9 50.9 1,653,332 4,764 12 1,063,844 6 792,360 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,936 180 2 75,018 1 37,509 osh-native
parse.abuild 9 1 2 2.4 7.9 101,936 180 3 87,080 1 43,540 osh-native-souffle
ex.compute-fib 28 0 1 2.1 7.9 579,600 22,608 12 50,000 0 2,913 osh-native
ex.compute-fib 22 0 1 2.1 7.7 579,600 22,608 12 50,000 0 2,851 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.3 8.8 995,282 15,258 21 50,000 0 3,895 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.3 995,281 15,258 21 50,000 0 3,840 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,312 277 3 85,236 1 42,618 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 116,312 277 3 85,112 1 42,556 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 -
23 19 4 3.0 bash -
105 64 49 3.4 zsh -
16 12 4 28.5 bumpleak/osh mut
20 16 4 30.2 _bin/cxx-opt+bumproot/osh mut
22 18 4 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 8 25.2 osh-native mut+alloc
32 31 0 25.6 osh-native mut+alloc+free
35 23 12 18.1 osh-native mut+alloc+free+gc
36 28 8 18.1 osh-native mut+alloc+free+gc+exit
43 23 20 33.2 _bin/cxx-opt+nopool/osh mut+alloc
47 35 12 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 22 4 24.9 osh-native-souffle mut+alloc
29 24 4 25.3 osh-native-souffle mut+alloc+free
32 24 8 17.6 osh-native-souffle mut+alloc+free+gc
33 22 11 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 21 0 1.6 dash -
77 73 4 3.1 bash -
378 212 188 3.5 zsh -
49 40 8 85.8 bumpleak/osh mut
59 55 4 85.6 _bin/cxx-opt+bumproot/osh mut
72 59 12 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 55 43 73.4 osh-native mut+alloc
106 66 39 75.4 osh-native mut+alloc+free
151 127 24 49.6 osh-native mut+alloc+free+gc
153 132 20 50.3 osh-native mut+alloc+free+gc+exit
139 94 45 98.1 _bin/cxx-opt+nopool/osh mut+alloc
215 187 28 67.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 48 40 73.2 osh-native-souffle mut+alloc
97 76 20 75.0 osh-native-souffle mut+alloc+free
143 99 44 50.9 osh-native-souffle mut+alloc+free+gc
144 116 28 51.5 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 6 0 3.0 bash -
8 0 8 3.4 zsh -
6 0 6 12.0 bumpleak/osh mut
7 7 0 11.1 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
8 4 4 10.2 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
11 6 6 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 4 4 7.9 osh-native-souffle mut+alloc+free+gc
9 9 0 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
10 10 0 1.4 dash -
28 28 0 2.9 bash -
24 23 0 3.3 zsh -
18 14 5 32.4 bumpleak/osh mut
26 21 4 32.7 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.3 osh-native mut+alloc
37 25 12 26.6 osh-native mut+alloc+free
28 23 4 7.9 osh-native mut+alloc+free+gc
28 23 5 7.9 osh-native mut+alloc+free+gc+exit
54 46 8 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 8 25.8 osh-native-souffle mut+alloc
32 12 20 26.3 osh-native-souffle mut+alloc+free
22 22 0 7.7 osh-native-souffle mut+alloc+free+gc
21 18 4 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
72 72 0 3.1 bash -
168 104 64 54.6 bumpleak/osh mut
182 123 59 55.6 _bin/cxx-opt+bumproot/osh mut
195 122 73 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 145 68 47.4 osh-native mut+alloc
218 143 75 49.1 osh-native mut+alloc+free
182 110 71 8.8 osh-native mut+alloc+free+gc
182 134 47 8.7 osh-native mut+alloc+free+gc+exit
239 155 83 63.7 _bin/cxx-opt+nopool/osh mut+alloc
211 158 53 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 128 76 47.0 osh-native-souffle mut+alloc
211 143 68 48.7 osh-native-souffle mut+alloc+free
175 130 45 8.3 osh-native-souffle mut+alloc+free+gc
175 115 59 8.5 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 9 1 3.5 dash -
20 16 4 4.3 bash -
18 5 13 3.4 zsh -
20 13 7 12.9 bumpleak/osh mut
19 16 3 12.2 _bin/cxx-opt+bumproot/osh mut
20 13 7 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 3 11.0 osh-native mut+alloc
22 12 11 11.1 osh-native mut+alloc+free
22 10 12 9.0 osh-native mut+alloc+free+gc
23 20 3 9.2 osh-native mut+alloc+free+gc+exit
24 21 4 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 18 7 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 11 8 10.6 osh-native-souffle mut+alloc
21 15 6 10.7 osh-native-souffle mut+alloc+free
21 15 7 8.8 osh-native-souffle mut+alloc+free+gc
21 14 8 8.7 osh-native-souffle mut+alloc+free+gc+exit