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 40 6 14 12.1 18.0 476,742 1,282 6 409,294 5 204,647 osh-native
parse.configure-cpython 33 4 10 12.0 17.6 476,742 1,282 6 408,794 5 204,397 osh-native-souffle
parse.configure-coreutils 187 27 99 41.1 45.9 1,653,330 4,764 12 1,591,976 7 795,988 osh-native
parse.configure-coreutils 156 26 78 44.6 49.5 1,653,329 4,764 12 1,030,678 6 769,423 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,933 180 2 75,266 1 37,633 osh-native
parse.abuild 8 1 1 2.6 8.3 101,933 180 2 75,136 1 37,568 osh-native-souffle
ex.compute-fib 29 0 2 2.4 8.0 584,198 22,608 12 50,000 0 2,910 osh-native
ex.compute-fib 22 0 2 2.4 7.5 584,198 22,608 12 50,000 0 2,848 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.3 8.8 995,279 12,911 21 50,000 0 3,898 osh-native
ex.bashcomp-parse-help 179 0 4 10.3 8.5 995,278 12,911 21 50,000 0 3,838 osh-native-souffle
ex.abuild-print-help 24 1 2 2.8 9.0 116,348 270 3 85,502 1 42,751 osh-native
ex.abuild-print-help 22 1 2 2.8 8.4 116,348 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 19 4 3.0 bash -
106 61 51 3.4 zsh -
16 8 8 29.0 bumpleak/osh mut
20 16 4 30.3 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 22 7 25.2 osh-native mut+alloc
33 16 16 25.4 osh-native mut+alloc+free
40 36 4 18.0 osh-native mut+alloc+free+gc
39 39 0 18.2 osh-native mut+alloc+free+gc+exit
43 31 12 32.0 _bin/cxx-opt+nopool/osh mut+alloc
53 45 8 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.9 osh-native-souffle mut+alloc
29 12 16 25.3 osh-native-souffle mut+alloc+free
33 25 8 17.6 osh-native-souffle mut+alloc+free+gc
34 34 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
22 21 0 1.4 dash -
78 78 0 3.3 bash -
378 206 194 3.5 zsh -
50 34 15 85.0 bumpleak/osh mut
59 55 4 84.6 _bin/cxx-opt+bumproot/osh mut
71 63 8 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 66 31 73.4 osh-native mut+alloc
105 60 44 75.4 osh-native mut+alloc+free
187 154 32 45.9 osh-native mut+alloc+free+gc
178 150 28 46.1 osh-native mut+alloc+free+gc+exit
138 122 16 99.1 _bin/cxx-opt+nopool/osh mut+alloc
259 227 32 60.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 51 35 73.2 osh-native-souffle mut+alloc
95 51 43 75.0 osh-native-souffle mut+alloc+free
156 137 20 49.5 osh-native-souffle mut+alloc+free+gc
160 128 32 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 0 2 1.3 dash -
6 3 3 3.0 bash -
8 4 4 3.3 zsh -
6 6 0 12.1 bumpleak/osh mut
7 3 3 12.8 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 9 0 8.8 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.3 _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 8 0 8.3 osh-native-souffle mut+alloc+free+gc
8 8 0 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 10 0 1.4 dash -
28 28 0 3.0 bash -
23 19 5 3.1 zsh -
19 15 4 32.1 bumpleak/osh mut
26 19 7 33.1 _bin/cxx-opt+bumproot/osh mut
29 29 0 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.3 osh-native mut+alloc
39 23 15 26.6 osh-native mut+alloc+free
29 25 4 8.0 osh-native mut+alloc+free+gc
29 29 0 7.9 osh-native mut+alloc+free+gc+exit
55 34 21 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 30 7 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 19 12 25.8 osh-native-souffle mut+alloc
32 16 16 26.1 osh-native-souffle mut+alloc+free
22 17 4 7.5 osh-native-souffle mut+alloc+free+gc
22 19 4 7.3 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 61 11 3.1 bash -
169 116 52 55.3 bumpleak/osh mut
181 125 56 55.1 _bin/cxx-opt+bumproot/osh mut
196 144 52 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 123 91 47.0 osh-native mut+alloc
221 145 76 48.7 osh-native mut+alloc+free
184 136 48 8.8 osh-native mut+alloc+free+gc
183 124 60 8.8 osh-native mut+alloc+free+gc+exit
235 123 111 63.5 _bin/cxx-opt+nopool/osh mut+alloc
217 130 87 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 120 88 46.6 osh-native-souffle mut+alloc
213 137 76 48.3 osh-native-souffle mut+alloc+free
179 119 59 8.5 osh-native-souffle mut+alloc+free+gc
176 116 60 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 1 3.5 dash -
20 18 3 4.5 bash -
18 6 13 3.4 zsh -
19 12 8 12.0 bumpleak/osh mut
20 14 7 12.5 _bin/cxx-opt+bumproot/osh mut
21 13 9 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 6 16 11.0 osh-native mut+alloc
23 16 8 11.1 osh-native mut+alloc+free
24 18 6 9.0 osh-native mut+alloc+free+gc
23 14 10 9.2 osh-native mut+alloc+free+gc+exit
25 15 10 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 24 3 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 10 11 10.6 osh-native-souffle mut+alloc
22 8 15 10.7 osh-native-souffle mut+alloc+free
22 14 7 8.4 osh-native-souffle mut+alloc+free+gc
22 11 12 8.7 osh-native-souffle mut+alloc+free+gc+exit