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,745 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 33 4 9 12.0 17.6 476,745 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 152 20 68 41.1 45.9 1,653,333 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 137 22 59 44.6 49.5 1,653,332 4,764 12 1,030,678 6 769,423 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,936 180 2 75,266 1 37,633 osh-native
parse.abuild 8 1 1 2.6 8.1 101,936 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 28 0 1 2.4 7.9 584,201 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,201 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 180 0 4 10.3 8.8 995,282 12,911 21 50,000 0 3,898 osh-native
ex.bashcomp-parse-help 174 0 3 10.3 8.4 995,281 12,911 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,351 270 3 85,502 1 42,751 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 116,351 270 3 85,378 1 42,689 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.4 dash -
23 23 0 3.1 bash -
105 64 47 3.5 zsh -
16 16 0 29.3 bumpleak/osh mut
20 12 8 29.8 _bin/cxx-opt+bumproot/osh mut
23 11 11 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 8 21 25.2 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
37 25 11 18.0 osh-native mut+alloc+free+gc
38 26 11 18.1 osh-native mut+alloc+free+gc+exit
44 28 16 33.4 _bin/cxx-opt+nopool/osh mut+alloc
52 44 8 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 18 9 24.9 osh-native-souffle mut+alloc
30 15 15 25.3 osh-native-souffle mut+alloc+free
33 25 7 17.6 osh-native-souffle mut+alloc+free+gc
34 26 8 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 74 4 3.1 bash -
376 207 190 3.5 zsh -
48 43 4 85.2 bumpleak/osh mut
61 40 20 85.5 _bin/cxx-opt+bumproot/osh mut
69 57 12 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 76 20 73.4 osh-native mut+alloc
104 52 52 75.4 osh-native mut+alloc+free
152 135 16 45.9 osh-native mut+alloc+free+gc
159 142 16 46.1 osh-native mut+alloc+free+gc+exit
139 98 41 99.4 _bin/cxx-opt+nopool/osh mut+alloc
224 192 32 61.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 48 40 73.2 osh-native-souffle mut+alloc
97 65 32 75.0 osh-native-souffle mut+alloc+free
137 113 24 49.5 osh-native-souffle mut+alloc+free+gc
152 136 16 50.2 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.3 zsh -
6 3 3 10.8 bumpleak/osh mut
6 6 0 12.3 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
10 10 0 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
8 6 3 8.1 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 29 0 2.9 bash -
23 20 4 3.1 zsh -
18 11 7 32.8 bumpleak/osh mut
25 21 4 32.1 _bin/cxx-opt+bumproot/osh mut
28 27 0 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.5 osh-native mut+alloc
37 22 15 26.6 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
53 33 20 36.4 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 13 26.1 osh-native-souffle mut+alloc
31 22 9 26.2 osh-native-souffle mut+alloc+free
22 18 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
73 69 4 3.3 bash -
167 92 76 55.4 bumpleak/osh mut
182 126 55 56.2 _bin/cxx-opt+bumproot/osh mut
191 131 60 55.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 144 72 47.0 osh-native mut+alloc
217 128 88 48.8 osh-native mut+alloc+free
180 120 60 8.8 osh-native mut+alloc+free+gc
183 111 71 8.8 osh-native mut+alloc+free+gc+exit
230 149 81 63.6 _bin/cxx-opt+nopool/osh mut+alloc
210 165 44 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 108 96 46.6 osh-native-souffle mut+alloc
213 145 68 48.2 osh-native-souffle mut+alloc+free
174 113 61 8.4 osh-native-souffle mut+alloc+free+gc
175 126 49 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 9 1 3.5 dash -
20 17 3 4.5 bash -
17 13 6 3.4 zsh -
20 11 9 13.0 bumpleak/osh mut
19 6 14 11.9 _bin/cxx-opt+bumproot/osh mut
21 13 9 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 20 2 11.1 osh-native mut+alloc
23 12 11 11.1 osh-native mut+alloc+free
23 16 7 9.0 osh-native mut+alloc+free+gc
23 15 9 9.0 osh-native mut+alloc+free+gc+exit
25 23 3 12.4 _bin/cxx-opt+nopool/osh mut+alloc
26 18 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 14 6 10.6 osh-native-souffle mut+alloc
22 10 12 10.6 osh-native-souffle mut+alloc+free
21 14 8 8.8 osh-native-souffle mut+alloc+free+gc
22 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit