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 39 5 12 12.1 17.7 476,744 1,282 6 409,298 5 204,649 osh-native
parse.configure-cpython 34 4 11 12.0 17.4 476,744 1,282 6 408,798 5 204,399 osh-native-souffle
parse.configure-coreutils 182 28 95 41.1 45.8 1,653,332 4,764 12 1,591,980 7 795,990 osh-native
parse.configure-coreutils 159 25 80 44.6 49.8 1,653,331 4,764 12 1,030,682 6 769,425 osh-native-souffle
parse.abuild 10 1 1 2.6 8.5 101,935 180 2 75,270 1 37,635 osh-native
parse.abuild 8 1 1 2.6 8.3 101,935 180 2 75,140 1 37,570 osh-native-souffle
ex.compute-fib 28 0 2 2.1 7.9 579,599 22,608 12 50,000 0 2,912 osh-native
ex.compute-fib 22 0 2 2.1 7.5 579,599 22,608 12 50,000 0 2,850 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.9 995,281 15,258 21 50,000 0 3,895 osh-native
ex.bashcomp-parse-help 177 0 4 10.3 8.5 995,280 15,258 21 50,000 0 3,840 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,311 277 3 85,506 1 42,753 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,311 277 3 85,382 1 42,691 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 3.0 bash -
106 45 68 3.4 zsh -
16 12 4 28.8 bumpleak/osh mut
20 20 0 28.9 _bin/cxx-opt+bumproot/osh mut
23 13 9 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
32 22 9 25.6 osh-native mut+alloc+free
39 31 8 17.7 osh-native mut+alloc+free+gc
40 28 12 18.0 osh-native mut+alloc+free+gc+exit
43 28 16 32.1 _bin/cxx-opt+nopool/osh mut+alloc
54 46 8 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 13 13 24.9 osh-native-souffle mut+alloc
29 25 4 25.3 osh-native-souffle mut+alloc+free
34 23 11 17.4 osh-native-souffle mut+alloc+free+gc
36 28 8 18.0 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.3 bash -
383 218 187 3.5 zsh -
49 34 15 84.3 bumpleak/osh mut
59 55 4 84.6 _bin/cxx-opt+bumproot/osh mut
70 65 4 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 74 23 73.6 osh-native mut+alloc
106 74 31 75.4 osh-native mut+alloc+free
182 170 12 45.8 osh-native mut+alloc+free+gc
187 159 28 46.0 osh-native mut+alloc+free+gc+exit
139 103 36 99.2 _bin/cxx-opt+nopool/osh mut+alloc
255 231 24 60.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 68 20 73.2 osh-native-souffle mut+alloc
97 65 32 75.0 osh-native-souffle mut+alloc+free
159 143 16 49.8 osh-native-souffle mut+alloc+free+gc
161 129 32 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 0 6 11.3 bumpleak/osh mut
6 6 0 12.3 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 0 8 10.0 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
10 5 5 8.5 osh-native mut+alloc+free+gc
10 6 3 8.8 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
8 4 4 8.3 osh-native-souffle mut+alloc+free+gc
9 4 4 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 7 3 1.4 dash -
29 21 7 3.0 bash -
23 23 0 3.4 zsh -
19 9 9 32.2 bumpleak/osh mut
26 22 4 32.1 _bin/cxx-opt+bumproot/osh mut
28 23 4 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.0 osh-native mut+alloc
38 26 11 26.1 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 18 10 7.7 osh-native mut+alloc+free+gc+exit
54 38 15 35.7 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 25.4 osh-native-souffle mut+alloc
31 12 19 25.8 osh-native-souffle mut+alloc+free
22 18 4 7.5 osh-native-souffle mut+alloc+free+gc
22 22 0 7.7 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 73 0 3.0 bash -
167 92 76 54.3 bumpleak/osh mut
181 132 48 55.1 _bin/cxx-opt+bumproot/osh mut
195 130 65 57.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 144 68 47.1 osh-native mut+alloc
219 158 61 48.9 osh-native mut+alloc+free
182 119 63 8.9 osh-native mut+alloc+free+gc
183 130 53 8.9 osh-native mut+alloc+free+gc+exit
236 160 76 62.7 _bin/cxx-opt+nopool/osh mut+alloc
214 161 52 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 127 79 46.6 osh-native-souffle mut+alloc
211 139 72 48.3 osh-native-souffle mut+alloc+free
177 144 32 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 7 3 3.4 dash -
21 14 8 4.3 bash -
19 7 12 3.5 zsh -
18 7 12 13.1 bumpleak/osh mut
20 17 3 14.0 _bin/cxx-opt+bumproot/osh mut
20 13 7 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 10.9 osh-native mut+alloc
23 6 17 10.9 osh-native mut+alloc+free
23 15 8 9.0 osh-native mut+alloc+free+gc
23 11 13 9.0 osh-native mut+alloc+free+gc+exit
25 18 7 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 23 3 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 13 8 10.6 osh-native-souffle mut+alloc
22 11 11 10.7 osh-native-souffle mut+alloc+free
21 6 15 8.7 osh-native-souffle mut+alloc+free+gc
22 14 8 8.5 osh-native-souffle mut+alloc+free+gc+exit