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.1 18.0 476,736 1,282 6 409,282 5 204,641 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,736 1,282 6 408,782 5 204,391 osh-native-souffle
parse.configure-coreutils 165 24 80 41.1 45.9 1,653,324 4,764 12 1,591,964 7 795,982 osh-native
parse.configure-coreutils 143 27 63 44.6 49.8 1,653,323 4,764 12 1,030,666 6 769,417 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,927 180 2 75,254 1 37,627 osh-native
parse.abuild 9 1 1 2.6 8.1 101,927 180 2 75,124 1 37,562 osh-native-souffle
ex.compute-fib 29 0 1 2.4 7.9 584,192 22,608 12 50,000 0 2,904 osh-native
ex.compute-fib 24 0 2 2.4 7.6 584,192 22,608 12 50,000 0 2,842 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.3 8.8 995,273 12,911 21 50,000 0 3,892 osh-native
ex.bashcomp-parse-help 176 0 4 10.3 8.4 995,272 12,911 21 50,000 0 3,832 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 8.9 116,342 270 3 85,490 1 42,745 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,342 270 3 85,366 1 42,683 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 7 0 1.6 dash -
23 23 0 3.1 bash -
104 67 43 3.4 zsh -
16 12 4 29.8 bumpleak/osh mut
20 19 0 30.3 _bin/cxx-opt+bumproot/osh mut
22 22 0 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 8 25.2 osh-native mut+alloc
32 16 16 25.7 osh-native mut+alloc+free
35 27 8 18.0 osh-native mut+alloc+free+gc
37 26 11 18.1 osh-native mut+alloc+free+gc+exit
43 19 23 32.0 _bin/cxx-opt+nopool/osh mut+alloc
50 46 4 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
28 12 16 24.8 osh-native-souffle mut+alloc
29 21 8 25.3 osh-native-souffle mut+alloc+free
32 28 4 17.4 osh-native-souffle mut+alloc+free+gc
33 29 4 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
21 21 0 1.6 dash -
78 78 0 3.3 bash -
377 219 179 3.5 zsh -
49 38 11 84.1 bumpleak/osh mut
60 55 4 84.4 _bin/cxx-opt+bumproot/osh mut
70 49 20 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 65 33 73.6 osh-native mut+alloc
108 72 36 75.4 osh-native mut+alloc+free
165 149 16 45.9 osh-native mut+alloc+free+gc
167 150 16 46.0 osh-native mut+alloc+free+gc+exit
139 102 37 98.3 _bin/cxx-opt+nopool/osh mut+alloc
246 226 20 60.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 61 28 73.2 osh-native-souffle mut+alloc
97 61 36 75.0 osh-native-souffle mut+alloc+free
143 114 29 49.8 osh-native-souffle mut+alloc+free+gc
148 119 28 50.3 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 0 2 1.4 dash -
6 6 0 3.0 bash -
8 0 8 3.3 zsh -
6 3 3 11.5 bumpleak/osh mut
7 7 0 10.8 _bin/cxx-opt+bumproot/osh mut
7 3 3 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 0 8 10.1 osh-native mut+alloc
9 3 6 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
10 3 6 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.6 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 8 0 9.7 osh-native-souffle mut+alloc+free
9 3 6 8.1 osh-native-souffle mut+alloc+free+gc
9 4 4 8.4 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 24 4 2.9 bash -
24 16 8 3.1 zsh -
19 19 0 31.4 bumpleak/osh mut
26 21 4 33.4 _bin/cxx-opt+bumproot/osh mut
29 25 4 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.3 osh-native mut+alloc
38 31 8 26.7 osh-native mut+alloc+free
29 24 4 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
56 24 31 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 9 26.0 osh-native-souffle mut+alloc
32 20 12 26.1 osh-native-souffle mut+alloc+free
24 19 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
72 72 0 3.1 bash -
167 111 56 54.5 bumpleak/osh mut
182 125 56 54.5 _bin/cxx-opt+bumproot/osh mut
195 115 79 55.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 127 83 47.1 osh-native mut+alloc
221 138 83 48.8 osh-native mut+alloc+free
182 133 49 8.8 osh-native mut+alloc+free+gc
182 117 65 8.8 osh-native mut+alloc+free+gc+exit
233 116 116 64.0 _bin/cxx-opt+nopool/osh mut+alloc
209 137 72 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 119 84 46.6 osh-native-souffle mut+alloc
212 148 64 48.4 osh-native-souffle mut+alloc+free
176 108 68 8.4 osh-native-souffle mut+alloc+free+gc
175 115 59 8.1 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.4 dash -
21 17 3 4.5 bash -
18 5 13 3.5 zsh -
20 10 11 12.9 bumpleak/osh mut
20 14 6 13.6 _bin/cxx-opt+bumproot/osh mut
20 17 3 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 11.0 osh-native mut+alloc
23 11 12 11.1 osh-native mut+alloc+free
23 20 3 8.9 osh-native mut+alloc+free+gc
23 20 3 9.0 osh-native mut+alloc+free+gc+exit
25 12 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 21 5 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 21 0 10.4 osh-native-souffle mut+alloc
21 18 4 10.7 osh-native-souffle mut+alloc+free
21 14 8 8.5 osh-native-souffle mut+alloc+free+gc
22 15 8 8.7 osh-native-souffle mut+alloc+free+gc+exit