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 34 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.3 476,752 1,282 6 406,196 5 203,098 osh-native-souffle
parse.configure-coreutils 143 23 58 44.5 50.0 1,653,340 4,764 12 1,025,522 6 764,304 osh-native
parse.configure-coreutils 135 23 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 27 0 2 2.2 7.9 579,607 22,608 12 50,000 0 2,917 osh-native
ex.compute-fib 21 0 1 2.2 7.7 579,607 22,608 12 50,000 0 2,856 osh-native-souffle
ex.bashcomp-parse-help 181 0 3 10.3 8.7 995,289 15,258 21 50,000 0 3,899 osh-native
ex.bashcomp-parse-help 176 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.6 dash -
24 20 4 3.1 bash -
106 65 48 3.3 zsh -
16 8 8 29.7 bumpleak/osh mut
19 19 0 30.0 _bin/cxx-opt+bumproot/osh mut
22 18 4 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 8 25.2 osh-native mut+alloc
31 26 4 25.7 osh-native mut+alloc+free
34 30 4 18.1 osh-native mut+alloc+free+gc
35 31 4 18.0 osh-native mut+alloc+free+gc+exit
44 39 4 33.3 _bin/cxx-opt+nopool/osh mut+alloc
47 27 20 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.9 osh-native-souffle mut+alloc
28 20 8 25.3 osh-native-souffle mut+alloc+free
32 28 4 17.3 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
22 18 4 1.6 dash -
77 77 0 3.3 bash -
373 227 166 3.5 zsh -
49 44 4 86.1 bumpleak/osh mut
60 52 8 85.6 _bin/cxx-opt+bumproot/osh mut
70 54 15 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 60 40 73.4 osh-native mut+alloc
105 66 39 75.5 osh-native mut+alloc+free
143 123 20 50.0 osh-native mut+alloc+free+gc
149 113 36 50.4 osh-native mut+alloc+free+gc+exit
143 79 63 99.7 _bin/cxx-opt+nopool/osh mut+alloc
203 183 20 67.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 56 32 73.1 osh-native-souffle mut+alloc
96 68 28 75.0 osh-native-souffle mut+alloc+free
135 102 33 51.0 osh-native-souffle mut+alloc+free+gc
142 126 16 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 4 4 3.4 zsh -
6 3 3 10.9 bumpleak/osh mut
6 6 0 12.5 _bin/cxx-opt+bumproot/osh mut
7 4 4 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
8 8 0 10.2 osh-native mut+alloc+free
9 4 4 8.7 osh-native mut+alloc+free+gc
9 6 3 8.8 osh-native mut+alloc+free+gc+exit
11 7 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 0 11 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 7 0 9.7 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 9 0 7.9 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
10 7 3 1.4 dash -
28 28 0 2.9 bash -
23 20 4 3.1 zsh -
18 15 4 32.4 bumpleak/osh mut
29 22 7 32.5 _bin/cxx-opt+bumproot/osh mut
27 23 4 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
35 27 8 26.2 osh-native mut+alloc
40 32 8 26.5 osh-native mut+alloc+free
27 27 0 7.9 osh-native mut+alloc+free+gc
27 27 0 8.0 osh-native mut+alloc+free+gc+exit
54 41 12 35.9 _bin/cxx-opt+nopool/osh mut+alloc
36 36 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 25 4 26.1 osh-native-souffle mut+alloc
31 23 8 26.3 osh-native-souffle mut+alloc+free
21 14 7 7.7 osh-native-souffle mut+alloc+free+gc
21 17 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
73 69 4 3.1 bash -
168 88 80 54.5 bumpleak/osh mut
183 97 85 55.3 _bin/cxx-opt+bumproot/osh mut
194 125 69 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
220 132 88 47.4 osh-native mut+alloc
218 154 63 49.0 osh-native mut+alloc+free
181 114 67 8.7 osh-native mut+alloc+free+gc
184 144 40 8.9 osh-native mut+alloc+free+gc+exit
234 182 51 64.6 _bin/cxx-opt+nopool/osh mut+alloc
211 159 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 153 51 47.0 osh-native-souffle mut+alloc
213 104 108 48.7 osh-native-souffle mut+alloc+free
176 127 48 8.3 osh-native-souffle mut+alloc+free+gc
174 119 55 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 15 5 4.5 bash -
18 6 13 3.5 zsh -
18 16 1 13.1 bumpleak/osh mut
21 18 3 13.3 _bin/cxx-opt+bumproot/osh mut
20 19 1 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 6 11.0 osh-native mut+alloc
22 12 11 10.9 osh-native mut+alloc+free
22 20 3 9.0 osh-native mut+alloc+free+gc
22 17 6 9.0 osh-native mut+alloc+free+gc+exit
25 23 2 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 12 9 10.6 osh-native-souffle mut+alloc
21 6 16 10.6 osh-native-souffle mut+alloc+free
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit