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 4 10 12.0 17.6 476,736 1,282 6 408,782 5 204,391 osh-native-souffle
parse.configure-coreutils 150 20 66 41.1 45.9 1,653,324 4,764 12 1,591,964 7 795,982 osh-native
parse.configure-coreutils 136 22 60 44.6 49.7 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 8 1 2 2.6 8.3 101,927 180 2 75,124 1 37,562 osh-native-souffle
ex.compute-fib 28 0 1 2.4 7.9 584,192 22,608 12 50,000 0 2,904 osh-native
ex.compute-fib 22 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 173 0 4 10.3 8.1 995,272 12,911 21 50,000 0 3,832 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.8 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
6 6 0 1.6 dash -
23 19 4 3.1 bash -
105 58 52 3.4 zsh -
16 8 8 29.4 bumpleak/osh mut
18 18 0 29.5 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 11 18 25.3 osh-native mut+alloc
31 15 15 25.6 osh-native mut+alloc+free
35 31 4 18.0 osh-native mut+alloc+free+gc
37 26 11 18.1 osh-native mut+alloc+free+gc+exit
43 16 27 32.4 _bin/cxx-opt+nopool/osh mut+alloc
49 40 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.8 osh-native-souffle mut+alloc
28 24 4 25.2 osh-native-souffle mut+alloc+free
32 32 0 17.6 osh-native-souffle mut+alloc+free+gc
35 19 15 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 -
78 73 4 3.3 bash -
377 208 192 3.4 zsh -
49 40 8 84.1 bumpleak/osh mut
59 47 12 85.5 _bin/cxx-opt+bumproot/osh mut
69 53 16 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 60 36 73.6 osh-native mut+alloc
105 81 24 75.1 osh-native mut+alloc+free
150 126 24 45.9 osh-native mut+alloc+free+gc
155 143 12 46.1 osh-native mut+alloc+free+gc+exit
137 109 28 97.7 _bin/cxx-opt+nopool/osh mut+alloc
218 185 32 60.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 61 25 73.2 osh-native-souffle mut+alloc
96 44 52 75.0 osh-native-souffle mut+alloc+free
136 116 20 49.7 osh-native-souffle mut+alloc+free+gc
142 130 12 50.4 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 3 3 3.0 bash -
8 8 0 3.4 zsh -
6 6 0 12.3 bumpleak/osh mut
7 3 3 11.3 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.8 osh-native mut+alloc+free+gc+exit
11 8 4 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.8 osh-native-souffle mut+alloc
8 8 0 9.7 osh-native-souffle mut+alloc+free
8 4 4 8.3 osh-native-souffle mut+alloc+free+gc
8 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 7 3 1.4 dash -
28 28 0 2.9 bash -
24 16 8 3.3 zsh -
18 11 7 30.9 bumpleak/osh mut
25 25 0 32.4 _bin/cxx-opt+bumproot/osh mut
28 27 0 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.3 osh-native mut+alloc
37 26 11 26.6 osh-native mut+alloc+free
28 20 8 7.9 osh-native mut+alloc+free+gc
28 28 0 8.1 osh-native mut+alloc+free+gc+exit
55 43 12 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 38 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 25.8 osh-native-souffle mut+alloc
31 15 15 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
22 21 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
73 73 0 3.0 bash -
166 79 87 54.8 bumpleak/osh mut
181 141 40 55.5 _bin/cxx-opt+bumproot/osh mut
193 128 64 55.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 131 79 46.9 osh-native mut+alloc
218 130 87 48.8 osh-native mut+alloc+free
182 125 56 8.8 osh-native mut+alloc+free+gc
183 146 37 8.8 osh-native mut+alloc+free+gc+exit
232 148 84 63.8 _bin/cxx-opt+nopool/osh mut+alloc
208 152 56 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 122 81 46.7 osh-native-souffle mut+alloc
209 164 44 48.3 osh-native-souffle mut+alloc+free
173 113 60 8.1 osh-native-souffle mut+alloc+free+gc
175 147 28 8.4 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 2 3.5 dash -
20 6 14 4.3 bash -
18 17 1 3.4 zsh -
18 12 7 11.9 bumpleak/osh mut
21 8 13 13.6 _bin/cxx-opt+bumproot/osh mut
21 15 7 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 14 11.0 osh-native mut+alloc
22 10 12 11.3 osh-native mut+alloc+free
22 20 2 8.8 osh-native mut+alloc+free+gc
22 17 6 9.0 osh-native mut+alloc+free+gc+exit
25 19 7 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 5 15 10.5 osh-native-souffle mut+alloc
21 18 3 10.7 osh-native-souffle mut+alloc+free
21 20 1 8.5 osh-native-souffle mut+alloc+free+gc
22 12 9 8.5 osh-native-souffle mut+alloc+free+gc+exit