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 10 12.1 18.0 476,737 1,282 6 409,280 5 204,640 osh-native
parse.configure-cpython 33 4 10 12.0 17.8 476,737 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 171 26 86 41.1 45.8 1,653,325 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 156 28 78 44.6 49.7 1,653,324 4,764 12 1,030,664 6 769,416 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,928 180 2 75,252 1 37,626 osh-native
parse.abuild 8 1 1 2.6 8.3 101,928 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 29 0 1 2.4 8.0 584,193 22,608 12 50,000 0 2,903 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,193 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.3 8.7 995,274 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 177 0 4 10.3 8.4 995,273 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,343 270 3 85,488 1 42,744 osh-native
ex.abuild-print-help 22 1 2 2.8 8.5 116,343 270 3 85,364 1 42,682 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 -
24 23 0 2.9 bash -
106 73 40 3.4 zsh -
16 16 0 29.2 bumpleak/osh mut
20 16 4 28.7 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 8 25.0 osh-native mut+alloc
32 24 8 25.4 osh-native mut+alloc+free
37 29 8 18.0 osh-native mut+alloc+free+gc
40 24 16 18.2 osh-native mut+alloc+free+gc+exit
43 27 16 32.8 _bin/cxx-opt+nopool/osh mut+alloc
53 38 15 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 20 8 24.9 osh-native-souffle mut+alloc
29 8 21 25.3 osh-native-souffle mut+alloc+free
33 21 12 17.8 osh-native-souffle mut+alloc+free+gc
34 30 4 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 21 0 1.4 dash -
78 75 4 3.0 bash -
384 239 167 3.3 zsh -
48 36 12 85.7 bumpleak/osh mut
60 40 20 85.2 _bin/cxx-opt+bumproot/osh mut
71 51 20 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 73 24 73.4 osh-native mut+alloc
105 76 28 75.3 osh-native mut+alloc+free
171 163 8 45.8 osh-native mut+alloc+free+gc
181 161 20 46.1 osh-native mut+alloc+free+gc+exit
138 110 28 98.1 _bin/cxx-opt+nopool/osh mut+alloc
259 215 44 60.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 58 29 73.3 osh-native-souffle mut+alloc
95 55 39 75.0 osh-native-souffle mut+alloc+free
156 128 28 49.7 osh-native-souffle mut+alloc+free+gc
160 131 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 2 0 1.4 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 11.8 bumpleak/osh mut
7 3 3 10.9 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 0 9 10.1 osh-native mut+alloc+free
9 5 5 8.7 osh-native mut+alloc+free+gc
10 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 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.8 osh-native-souffle mut+alloc+free
8 4 4 8.3 osh-native-souffle mut+alloc+free+gc
9 9 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 24 4 2.9 bash -
24 16 8 3.1 zsh -
19 15 4 32.8 bumpleak/osh mut
26 17 9 32.6 _bin/cxx-opt+bumproot/osh mut
28 28 0 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.2 osh-native mut+alloc
38 23 15 26.6 osh-native mut+alloc+free
29 24 4 8.0 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 39 15 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 4 26 26.0 osh-native-souffle mut+alloc
32 20 12 26.3 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
21 18 4 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
74 65 8 3.1 bash -
168 112 56 54.8 bumpleak/osh mut
181 128 52 56.2 _bin/cxx-opt+bumproot/osh mut
195 135 59 55.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 155 56 47.1 osh-native mut+alloc
221 136 84 48.7 osh-native mut+alloc+free
183 134 49 8.7 osh-native mut+alloc+free+gc
183 135 48 8.7 osh-native mut+alloc+free+gc+exit
234 169 64 64.1 _bin/cxx-opt+nopool/osh mut+alloc
212 160 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 124 80 46.7 osh-native-souffle mut+alloc
214 143 71 48.3 osh-native-souffle mut+alloc+free
177 138 39 8.4 osh-native-souffle mut+alloc+free+gc
176 136 40 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 4 6 3.4 dash -
20 10 10 4.5 bash -
18 12 7 3.4 zsh -
21 7 14 12.6 bumpleak/osh mut
19 18 2 12.0 _bin/cxx-opt+bumproot/osh mut
23 13 10 13.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.0 osh-native mut+alloc
23 11 12 10.9 osh-native mut+alloc+free
23 16 7 9.0 osh-native mut+alloc+free+gc
23 14 10 9.0 osh-native mut+alloc+free+gc+exit
25 22 4 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 18 9 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 10 10.6 osh-native-souffle mut+alloc
22 14 9 10.6 osh-native-souffle mut+alloc+free
22 11 11 8.5 osh-native-souffle mut+alloc+free+gc
22 20 3 8.7 osh-native-souffle mut+alloc+free+gc+exit