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 4 10 12.0 17.8 476,676 1,282 6 408,786 5 204,393 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,676 1,282 6 408,656 5 204,328 osh-native-souffle
parse.configure-coreutils 147 24 62 46.1 51.7 1,653,264 4,764 12 1,069,152 6 798,657 osh-native
parse.configure-coreutils 139 18 63 41.1 45.4 1,653,263 4,764 12 1,591,708 7 795,854 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,867 180 2 75,128 1 37,564 osh-native
parse.abuild 9 1 2 2.4 7.7 101,867 180 3 87,224 1 43,612 osh-native-souffle
ex.compute-fib 28 0 2 2.4 7.9 584,135 22,608 12 50,000 0 2,842 osh-native
ex.compute-fib 21 0 1 2.4 7.5 584,135 22,608 12 50,000 0 2,780 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 10.3 8.8 995,209 12,911 21 50,000 0 3,824 osh-native
ex.bashcomp-parse-help 173 0 3 10.3 8.3 995,208 12,911 21 50,000 0 3,771 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,282 270 3 85,364 1 42,682 osh-native
ex.abuild-print-help 20 1 2 2.8 8.5 116,282 270 3 85,240 1 42,620 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.6 dash -
23 23 0 3.1 bash -
102 56 52 3.4 zsh -
16 16 0 29.5 bumpleak/osh mut
18 14 4 28.8 _bin/cxx-opt+bumproot/osh mut
22 11 11 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.2 osh-native mut+alloc
31 31 0 25.6 osh-native mut+alloc+free
35 27 8 17.8 osh-native mut+alloc+free+gc
36 20 16 18.1 osh-native mut+alloc+free+gc+exit
42 38 4 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 38 8 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.8 osh-native-souffle mut+alloc
28 20 8 25.3 osh-native-souffle mut+alloc+free
32 20 12 17.7 osh-native-souffle mut+alloc+free+gc
33 32 0 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.1 bash -
371 202 189 3.7 zsh -
49 37 12 85.0 bumpleak/osh mut
58 50 8 85.9 _bin/cxx-opt+bumproot/osh mut
69 57 12 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 71 24 73.6 osh-native mut+alloc
104 68 36 75.4 osh-native mut+alloc+free
147 123 24 51.7 osh-native mut+alloc+free+gc
151 126 24 52.4 osh-native mut+alloc+free+gc+exit
138 85 53 98.5 _bin/cxx-opt+nopool/osh mut+alloc
204 176 28 72.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 47 40 73.0 osh-native-souffle mut+alloc
95 51 43 75.0 osh-native-souffle mut+alloc+free
139 126 12 45.4 osh-native-souffle mut+alloc+free+gc
138 121 16 52.0 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 2.9 bash -
8 8 0 3.3 zsh -
6 6 0 11.6 bumpleak/osh mut
7 7 0 11.9 _bin/cxx-opt+bumproot/osh mut
7 7 0 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 4 4 8.5 osh-native mut+alloc+free+gc+exit
11 4 7 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 4 9.7 osh-native-souffle mut+alloc
7 7 0 9.6 osh-native-souffle mut+alloc+free
9 9 0 7.7 osh-native-souffle mut+alloc+free+gc
8 8 0 8.3 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 20 8 2.9 bash -
23 19 4 3.3 zsh -
18 9 9 32.0 bumpleak/osh mut
25 25 0 32.7 _bin/cxx-opt+bumproot/osh mut
27 27 0 31.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 27 8 26.2 osh-native mut+alloc
37 29 8 26.5 osh-native mut+alloc+free
28 27 0 7.9 osh-native mut+alloc+free+gc
27 23 4 7.9 osh-native mut+alloc+free+gc+exit
53 49 4 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 36 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 17 12 26.0 osh-native-souffle mut+alloc
31 23 8 26.1 osh-native-souffle mut+alloc+free
21 20 0 7.5 osh-native-souffle mut+alloc+free+gc
20 20 0 7.5 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 68 4 3.0 bash -
168 112 56 55.2 bumpleak/osh mut
179 118 61 55.0 _bin/cxx-opt+bumproot/osh mut
193 124 68 55.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 150 59 47.0 osh-native mut+alloc
214 131 83 48.7 osh-native mut+alloc+free
181 149 31 8.8 osh-native mut+alloc+free+gc
190 116 72 8.7 osh-native mut+alloc+free+gc+exit
231 146 85 63.0 _bin/cxx-opt+nopool/osh mut+alloc
208 143 64 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 132 72 46.6 osh-native-souffle mut+alloc
207 135 72 48.3 osh-native-souffle mut+alloc+free
173 117 56 8.3 osh-native-souffle mut+alloc+free+gc
174 95 79 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 8 1 3.4 dash -
20 17 3 4.3 bash -
18 9 9 3.4 zsh -
18 15 3 13.2 bumpleak/osh mut
19 13 6 13.7 _bin/cxx-opt+bumproot/osh mut
21 7 14 13.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 7 10.9 osh-native mut+alloc
22 16 7 11.0 osh-native mut+alloc+free
22 18 4 9.0 osh-native mut+alloc+free+gc
23 13 10 9.0 osh-native mut+alloc+free+gc+exit
24 16 9 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 15 10 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 13 7 10.5 osh-native-souffle mut+alloc
20 11 10 10.7 osh-native-souffle mut+alloc+free
20 14 6 8.5 osh-native-souffle mut+alloc+free+gc
21 13 9 8.7 osh-native-souffle mut+alloc+free+gc+exit