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 4 11 12.0 17.8 476,752 1,282 6 406,326 5 203,163 osh-native
parse.configure-cpython 33 3 10 12.0 17.6 476,752 1,282 6 406,196 5 203,098 osh-native-souffle
parse.configure-coreutils 152 24 67 44.5 49.7 1,653,340 4,764 12 1,025,522 6 764,304 osh-native
parse.configure-coreutils 144 26 64 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.5 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 2 2.2 8.0 579,607 22,608 12 50,000 0 2,917 osh-native
ex.compute-fib 22 0 1 2.2 7.6 579,607 22,608 12 50,000 0 2,856 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.7 995,289 15,258 21 50,000 0 3,899 osh-native
ex.bashcomp-parse-help 177 0 3 10.3 8.3 995,288 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.2 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.6 dash -
23 23 0 2.9 bash -
106 58 54 3.4 zsh -
16 12 4 29.0 bumpleak/osh mut
20 8 12 30.0 _bin/cxx-opt+bumproot/osh mut
22 17 4 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 29 0 25.2 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
37 33 4 17.8 osh-native mut+alloc+free+gc
37 20 16 18.0 osh-native mut+alloc+free+gc+exit
43 27 16 33.3 _bin/cxx-opt+nopool/osh mut+alloc
48 28 20 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 8 19 24.9 osh-native-souffle mut+alloc
29 18 11 25.3 osh-native-souffle mut+alloc+free
33 15 18 17.6 osh-native-souffle mut+alloc+free+gc
33 26 7 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 21 0 1.4 dash -
78 78 0 3.0 bash -
378 202 198 3.5 zsh -
48 36 12 84.0 bumpleak/osh mut
59 47 12 84.6 _bin/cxx-opt+bumproot/osh mut
69 60 8 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 74 23 73.5 osh-native mut+alloc
106 82 23 75.4 osh-native mut+alloc+free
152 140 12 49.7 osh-native mut+alloc+free+gc
163 147 16 50.5 osh-native mut+alloc+free+gc+exit
138 98 41 97.5 _bin/cxx-opt+nopool/osh mut+alloc
213 180 32 68.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 59 31 73.1 osh-native-souffle mut+alloc
99 78 20 74.9 osh-native-souffle mut+alloc+free
144 131 12 51.0 osh-native-souffle mut+alloc+free+gc
140 120 20 49.9 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 7 3.4 zsh -
6 6 0 12.2 bumpleak/osh mut
7 0 7 11.6 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.0 osh-native mut+alloc
8 0 8 10.2 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
9 4 4 9.8 osh-native-souffle mut+alloc+free
9 9 0 7.9 osh-native-souffle mut+alloc+free+gc
9 3 6 7.9 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 3.0 bash -
24 19 4 3.3 zsh -
18 18 0 31.3 bumpleak/osh mut
26 22 4 32.3 _bin/cxx-opt+bumproot/osh mut
28 27 0 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 12 24 26.3 osh-native mut+alloc
38 26 11 26.6 osh-native mut+alloc+free
28 23 4 8.0 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 35 19 36.3 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 15 15 26.1 osh-native-souffle mut+alloc
31 23 8 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.6 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
74 66 8 3.1 bash -
168 120 48 55.8 bumpleak/osh mut
181 136 44 54.6 _bin/cxx-opt+bumproot/osh mut
195 117 77 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 136 76 47.2 osh-native mut+alloc
219 135 83 49.1 osh-native mut+alloc+free
182 125 56 8.7 osh-native mut+alloc+free+gc
187 115 72 8.9 osh-native mut+alloc+free+gc+exit
236 148 88 63.7 _bin/cxx-opt+nopool/osh mut+alloc
212 168 44 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 135 71 46.9 osh-native-souffle mut+alloc
212 140 72 48.6 osh-native-souffle mut+alloc+free
177 137 40 8.3 osh-native-souffle mut+alloc+free+gc
176 132 44 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 6 4 3.4 dash -
20 13 7 4.5 bash -
18 7 12 3.4 zsh -
21 19 2 13.0 bumpleak/osh mut
21 11 10 13.2 _bin/cxx-opt+bumproot/osh mut
20 17 3 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 10 10.9 osh-native mut+alloc
23 18 6 11.0 osh-native mut+alloc+free
23 20 3 9.2 osh-native mut+alloc+free+gc
23 11 13 9.0 osh-native mut+alloc+free+gc+exit
24 15 10 12.9 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 16 4 10.6 osh-native-souffle mut+alloc
21 15 6 10.7 osh-native-souffle mut+alloc+free
21 15 7 8.7 osh-native-souffle mut+alloc+free+gc
22 15 8 8.7 osh-native-souffle mut+alloc+free+gc+exit