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.1 476,737 1,282 6 409,280 5 204,640 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,737 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 156 21 72 41.1 45.9 1,653,325 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 139 23 61 44.6 49.5 1,653,324 4,764 12 1,030,664 6 769,416 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 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 28 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.7 584,193 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.3 8.7 995,274 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 176 0 3 10.3 8.4 995,273 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,343 270 3 85,488 1 42,744 osh-native
ex.abuild-print-help 21 1 2 2.8 8.4 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 -
23 19 4 2.9 bash -
104 64 47 3.5 zsh -
16 12 4 29.4 bumpleak/osh mut
20 12 8 30.2 _bin/cxx-opt+bumproot/osh mut
22 15 7 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 4 25 25.2 osh-native mut+alloc
31 23 8 25.4 osh-native mut+alloc+free
35 27 8 18.1 osh-native mut+alloc+free+gc
35 31 4 18.1 osh-native mut+alloc+free+gc+exit
43 27 16 32.8 _bin/cxx-opt+nopool/osh mut+alloc
49 45 4 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.8 osh-native-souffle mut+alloc
29 20 8 25.3 osh-native-souffle mut+alloc+free
32 16 16 17.7 osh-native-souffle mut+alloc+free+gc
33 33 0 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
21 21 0 1.4 dash -
79 79 0 3.3 bash -
376 195 202 3.5 zsh -
48 44 4 85.6 bumpleak/osh mut
59 46 13 85.7 _bin/cxx-opt+bumproot/osh mut
71 62 8 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 64 32 73.4 osh-native mut+alloc
105 84 20 75.4 osh-native mut+alloc+free
156 131 24 45.9 osh-native mut+alloc+free+gc
163 151 12 46.1 osh-native mut+alloc+free+gc+exit
137 96 40 97.6 _bin/cxx-opt+nopool/osh mut+alloc
217 201 16 62.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 71 16 73.2 osh-native-souffle mut+alloc
97 58 39 75.0 osh-native-souffle mut+alloc+free
139 127 12 49.5 osh-native-souffle mut+alloc+free+gc
143 127 16 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.3 dash -
6 6 0 3.0 bash -
8 4 4 3.4 zsh -
6 0 6 11.8 bumpleak/osh mut
7 0 7 12.0 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 0 9 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 6 3 8.8 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.8 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
8 8 0 8.3 osh-native-souffle mut+alloc+free+gc
8 4 4 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 -
28 28 0 2.9 bash -
24 20 4 3.1 zsh -
18 15 4 32.0 bumpleak/osh mut
26 22 4 33.2 _bin/cxx-opt+bumproot/osh mut
29 16 12 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
38 21 17 26.9 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 34 19 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 30 7 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 25.7 osh-native-souffle mut+alloc
33 24 8 26.3 osh-native-souffle mut+alloc+free
22 22 0 7.7 osh-native-souffle mut+alloc+free+gc
22 18 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
74 70 4 3.0 bash -
167 91 76 55.7 bumpleak/osh mut
180 116 64 55.6 _bin/cxx-opt+bumproot/osh mut
194 115 79 56.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 132 80 47.0 osh-native mut+alloc
219 151 68 48.6 osh-native mut+alloc+free
180 124 56 8.7 osh-native mut+alloc+free+gc
183 99 83 8.8 osh-native mut+alloc+free+gc+exit
231 146 85 64.0 _bin/cxx-opt+nopool/osh mut+alloc
211 159 52 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 127 79 46.6 osh-native-souffle mut+alloc
212 156 56 48.4 osh-native-souffle mut+alloc+free
176 124 52 8.4 osh-native-souffle mut+alloc+free+gc
175 104 72 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 8 2 3.5 dash -
20 18 3 4.5 bash -
18 8 11 3.4 zsh -
19 6 13 12.2 bumpleak/osh mut
19 11 8 13.7 _bin/cxx-opt+bumproot/osh mut
21 19 2 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 17 5 11.0 osh-native mut+alloc
22 11 11 11.1 osh-native mut+alloc+free
22 21 2 9.0 osh-native mut+alloc+free+gc
23 18 5 9.0 osh-native mut+alloc+free+gc+exit
25 24 2 12.4 _bin/cxx-opt+nopool/osh mut+alloc
25 17 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 16 6 10.6 osh-native-souffle mut+alloc
21 12 10 10.7 osh-native-souffle mut+alloc+free
21 11 10 8.4 osh-native-souffle mut+alloc+free+gc
22 14 9 8.7 osh-native-souffle mut+alloc+free+gc+exit