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,752 1,282 6 406,326 5 203,163 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,752 1,282 6 406,196 5 203,098 osh-native-souffle
parse.configure-coreutils 142 22 57 44.5 49.7 1,653,340 4,764 12 1,025,522 6 764,304 osh-native
parse.configure-coreutils 138 22 58 45.9 51.0 1,653,339 4,764 12 1,063,852 6 792,364 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,943 180 2 75,026 1 37,513 osh-native
parse.abuild 9 1 2 2.4 7.9 101,943 180 3 87,088 1 43,544 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.1 579,607 22,608 12 50,000 0 2,917 osh-native
ex.compute-fib 21 0 1 2.2 7.6 579,607 22,608 12 50,000 0 2,856 osh-native-souffle
ex.bashcomp-parse-help 179 0 3 10.3 8.7 995,289 15,258 21 50,000 0 3,899 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.3 995,288 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,319 277 3 85,244 1 42,622 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,319 277 3 85,120 1 42,560 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 -
24 24 0 3.0 bash -
105 49 62 3.4 zsh -
16 10 6 27.9 bumpleak/osh mut
19 15 4 30.3 _bin/cxx-opt+bumproot/osh mut
22 22 0 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 25 4 25.2 osh-native mut+alloc
31 22 9 25.6 osh-native mut+alloc+free
35 30 4 18.1 osh-native mut+alloc+free+gc
36 32 4 18.0 osh-native mut+alloc+free+gc+exit
43 23 20 32.1 _bin/cxx-opt+nopool/osh mut+alloc
48 36 12 22.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 25.0 osh-native-souffle mut+alloc
29 20 8 25.4 osh-native-souffle mut+alloc+free
32 16 16 17.4 osh-native-souffle mut+alloc+free+gc
34 26 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 18 4 1.6 dash -
78 78 0 3.0 bash -
377 202 196 3.4 zsh -
48 44 4 84.1 bumpleak/osh mut
60 56 4 84.9 _bin/cxx-opt+bumproot/osh mut
69 61 8 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 72 24 73.6 osh-native mut+alloc
104 92 12 75.2 osh-native mut+alloc+free
142 117 24 49.7 osh-native mut+alloc+free+gc
148 128 20 50.4 osh-native mut+alloc+free+gc+exit
137 93 44 99.6 _bin/cxx-opt+nopool/osh mut+alloc
203 175 28 68.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 64 24 73.1 osh-native-souffle mut+alloc
96 60 36 74.8 osh-native-souffle mut+alloc+free
138 109 28 51.0 osh-native-souffle mut+alloc+free+gc
141 117 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 2 0 1.4 dash -
6 6 0 2.9 bash -
8 8 0 3.1 zsh -
6 6 0 10.6 bumpleak/osh mut
6 3 3 12.3 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 0 8 10.0 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 3 6 7.9 osh-native-souffle mut+alloc+free+gc
9 9 0 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 -
29 29 0 2.8 bash -
24 20 4 3.3 zsh -
18 18 0 30.9 bumpleak/osh mut
26 26 0 31.6 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 36 0 26.3 osh-native mut+alloc
37 26 11 26.6 osh-native mut+alloc+free
28 23 4 8.1 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 45 8 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 23 8 26.0 osh-native-souffle mut+alloc
31 22 9 26.2 osh-native-souffle mut+alloc+free
21 21 0 7.6 osh-native-souffle mut+alloc+free+gc
22 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 64 8 3.1 bash -
172 116 56 55.2 bumpleak/osh mut
181 113 68 55.8 _bin/cxx-opt+bumproot/osh mut
193 133 60 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 138 71 47.4 osh-native mut+alloc
217 158 59 49.1 osh-native mut+alloc+free
179 101 77 8.7 osh-native mut+alloc+free+gc
181 124 56 8.7 osh-native mut+alloc+free+gc+exit
234 141 93 63.1 _bin/cxx-opt+nopool/osh mut+alloc
209 153 56 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 134 69 47.0 osh-native-souffle mut+alloc
211 147 64 48.6 osh-native-souffle mut+alloc+free
175 119 56 8.3 osh-native-souffle mut+alloc+free+gc
173 97 77 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.5 dash -
20 12 8 4.5 bash -
18 11 8 3.4 zsh -
18 12 6 11.9 bumpleak/osh mut
21 11 10 13.4 _bin/cxx-opt+bumproot/osh mut
20 19 1 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 3 11.1 osh-native mut+alloc
22 13 9 11.1 osh-native mut+alloc+free
22 17 5 9.0 osh-native mut+alloc+free+gc
22 17 6 9.0 osh-native mut+alloc+free+gc+exit
25 16 9 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 19 7 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 15 6 10.7 osh-native-souffle mut+alloc
22 16 6 10.7 osh-native-souffle mut+alloc+free
21 16 6 8.7 osh-native-souffle mut+alloc+free+gc
22 9 13 8.7 osh-native-souffle mut+alloc+free+gc+exit