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 36 4 10 12.1 18.1 476,735 1,282 6 409,276 5 204,638 osh-native
parse.configure-cpython 33 4 10 12.0 17.7 476,735 1,282 6 408,776 5 204,388 osh-native-souffle
parse.configure-coreutils 157 21 72 41.1 45.9 1,653,323 4,764 12 1,591,958 7 795,979 osh-native
parse.configure-coreutils 141 24 65 44.6 49.7 1,653,322 4,764 12 1,030,660 6 769,414 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,926 180 2 75,248 1 37,624 osh-native
parse.abuild 8 1 1 2.6 8.1 101,926 180 2 75,118 1 37,559 osh-native-souffle
ex.compute-fib 28 0 2 2.4 7.9 584,191 22,608 12 50,000 0 2,901 osh-native
ex.compute-fib 23 0 2 2.4 7.6 584,191 22,608 12 50,000 0 2,839 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.3 8.7 995,272 12,911 21 50,000 0 3,889 osh-native
ex.bashcomp-parse-help 177 0 4 10.3 8.4 995,271 12,911 21 50,000 0 3,829 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,341 270 3 85,484 1 42,742 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,341 270 3 85,360 1 42,680 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 -
105 69 42 3.4 zsh -
16 8 8 29.1 bumpleak/osh mut
20 16 4 28.5 _bin/cxx-opt+bumproot/osh mut
23 7 15 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 25.2 osh-native mut+alloc
31 19 12 25.7 osh-native mut+alloc+free
36 32 4 18.1 osh-native mut+alloc+free+gc
36 25 11 18.1 osh-native mut+alloc+free+gc+exit
42 27 15 32.1 _bin/cxx-opt+nopool/osh mut+alloc
48 36 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.9 osh-native-souffle mut+alloc
28 20 8 25.3 osh-native-souffle mut+alloc+free
33 25 8 17.7 osh-native-souffle mut+alloc+free+gc
34 29 4 17.8 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.6 dash -
78 77 0 3.1 bash -
377 221 176 3.7 zsh -
48 40 8 85.9 bumpleak/osh mut
60 60 0 86.3 _bin/cxx-opt+bumproot/osh mut
70 66 4 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 68 28 73.4 osh-native mut+alloc
105 73 32 75.4 osh-native mut+alloc+free
157 144 12 45.9 osh-native mut+alloc+free+gc
162 137 24 46.0 osh-native mut+alloc+free+gc+exit
137 84 52 97.7 _bin/cxx-opt+nopool/osh mut+alloc
220 192 28 61.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 59 28 73.2 osh-native-souffle mut+alloc
96 60 36 75.0 osh-native-souffle mut+alloc+free
141 113 28 49.7 osh-native-souffle mut+alloc+free+gc
147 123 24 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 3 3 3.0 bash -
8 0 7 3.3 zsh -
6 6 0 11.3 bumpleak/osh mut
6 6 0 11.0 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.7 osh-native-souffle mut+alloc
8 0 8 9.7 osh-native-souffle mut+alloc+free
8 4 4 8.1 osh-native-souffle mut+alloc+free+gc
8 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
11 10 0 1.4 dash -
29 28 0 2.9 bash -
24 8 16 3.4 zsh -
19 14 5 32.2 bumpleak/osh mut
26 22 4 32.3 _bin/cxx-opt+bumproot/osh mut
28 20 8 31.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.3 osh-native mut+alloc
38 23 15 26.7 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
55 35 19 36.0 _bin/cxx-opt+nopool/osh mut+alloc
38 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 26.1 osh-native-souffle mut+alloc
33 12 20 26.5 osh-native-souffle mut+alloc+free
23 19 4 7.6 osh-native-souffle mut+alloc+free+gc
22 17 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
73 69 4 3.1 bash -
168 127 40 54.8 bumpleak/osh mut
181 101 80 54.5 _bin/cxx-opt+bumproot/osh mut
194 117 77 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 128 84 47.1 osh-native mut+alloc
218 129 89 48.7 osh-native mut+alloc+free
180 124 56 8.7 osh-native mut+alloc+free+gc
182 133 48 8.8 osh-native mut+alloc+free+gc+exit
234 141 93 62.8 _bin/cxx-opt+nopool/osh mut+alloc
209 162 47 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 115 91 46.7 osh-native-souffle mut+alloc
212 160 52 48.3 osh-native-souffle mut+alloc+free
177 120 56 8.4 osh-native-souffle mut+alloc+free+gc
176 128 48 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 7 3 3.4 dash -
20 16 4 4.3 bash -
18 11 8 3.4 zsh -
18 10 9 11.3 bumpleak/osh mut
21 15 7 13.1 _bin/cxx-opt+bumproot/osh mut
20 12 9 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 14 8 11.0 osh-native mut+alloc
23 7 16 11.1 osh-native mut+alloc+free
23 16 7 9.0 osh-native mut+alloc+free+gc
23 16 7 8.9 osh-native mut+alloc+free+gc+exit
24 17 8 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 23 3 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 19 2 10.6 osh-native-souffle mut+alloc
22 12 11 10.7 osh-native-souffle mut+alloc+free
21 13 9 8.7 osh-native-souffle mut+alloc+free+gc
23 15 8 8.4 osh-native-souffle mut+alloc+free+gc+exit