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 41 6 13 12.1 18.0 476,735 1,282 6 409,276 5 204,638 osh-native
parse.configure-cpython 39 7 15 12.0 17.6 476,735 1,282 6 408,776 5 204,388 osh-native-souffle
parse.configure-coreutils 196 30 104 41.1 45.9 1,653,323 4,764 12 1,591,958 7 795,979 osh-native
parse.configure-coreutils 173 30 93 44.6 49.5 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 9 1 1 2.6 8.1 101,926 180 2 75,118 1 37,559 osh-native-souffle
ex.compute-fib 29 0 1 2.4 8.0 584,191 22,608 12 50,000 0 2,901 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,191 22,608 12 50,000 0 2,839 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.3 8.5 995,272 12,911 21 50,000 0 3,889 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.4 995,271 12,911 21 50,000 0 3,829 osh-native-souffle
ex.abuild-print-help 29 1 3 2.8 9.0 116,341 270 3 85,484 1 42,742 osh-native
ex.abuild-print-help 31 1 3 2.8 8.4 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 -
24 24 0 3.0 bash -
106 66 47 3.4 zsh -
16 16 0 29.0 bumpleak/osh mut
21 12 8 28.7 _bin/cxx-opt+bumproot/osh mut
23 14 9 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
34 11 22 25.7 osh-native mut+alloc+free
41 24 16 18.0 osh-native mut+alloc+free+gc
44 32 12 18.1 osh-native mut+alloc+free+gc+exit
43 27 16 32.2 _bin/cxx-opt+nopool/osh mut+alloc
58 46 12 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
28 19 8 24.9 osh-native-souffle mut+alloc
30 26 4 25.3 osh-native-souffle mut+alloc+free
39 31 8 17.6 osh-native-souffle mut+alloc+free+gc
41 37 4 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 18 4 1.6 dash -
78 78 0 3.1 bash -
380 204 195 3.5 zsh -
50 42 8 84.8 bumpleak/osh mut
68 64 4 85.9 _bin/cxx-opt+bumproot/osh mut
71 47 23 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 77 20 73.4 osh-native mut+alloc
107 66 41 75.4 osh-native mut+alloc+free
196 164 32 45.9 osh-native mut+alloc+free+gc
197 165 32 46.0 osh-native mut+alloc+free+gc+exit
140 93 47 98.7 _bin/cxx-opt+nopool/osh mut+alloc
278 266 12 60.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 70 19 73.2 osh-native-souffle mut+alloc
96 60 36 75.0 osh-native-souffle mut+alloc+free
173 153 20 49.5 osh-native-souffle mut+alloc+free+gc
167 143 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.3 dash -
6 6 0 3.0 bash -
8 4 4 3.1 zsh -
6 0 6 12.0 bumpleak/osh mut
8 7 0 12.1 _bin/cxx-opt+bumproot/osh mut
8 4 4 10.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
10 7 3 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.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 0 8 9.8 osh-native-souffle mut+alloc+free
9 9 0 8.1 osh-native-souffle mut+alloc+free+gc
9 9 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
11 10 0 1.4 dash -
29 29 0 3.0 bash -
24 16 8 3.1 zsh -
20 15 4 32.5 bumpleak/osh mut
25 21 4 32.0 _bin/cxx-opt+bumproot/osh mut
28 27 0 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.5 osh-native mut+alloc
39 30 9 26.6 osh-native mut+alloc+free
29 28 0 8.0 osh-native mut+alloc+free+gc
29 25 4 8.0 osh-native mut+alloc+free+gc+exit
54 33 21 36.2 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 19 11 25.8 osh-native-souffle mut+alloc
32 20 12 26.3 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 21 0 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 -
170 127 44 54.6 bumpleak/osh mut
182 126 55 55.7 _bin/cxx-opt+bumproot/osh mut
196 128 68 55.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 145 67 47.0 osh-native mut+alloc
226 161 64 48.7 osh-native mut+alloc+free
184 143 41 8.5 osh-native mut+alloc+free+gc
184 96 88 8.8 osh-native mut+alloc+free+gc+exit
234 163 71 63.9 _bin/cxx-opt+nopool/osh mut+alloc
215 151 64 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
202 109 93 46.6 osh-native-souffle mut+alloc
210 131 79 48.3 osh-native-souffle mut+alloc+free
174 141 32 8.4 osh-native-souffle mut+alloc+free+gc
175 103 71 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 14 7 4.3 bash -
18 9 10 3.4 zsh -
18 16 3 11.3 bumpleak/osh mut
21 17 4 13.2 _bin/cxx-opt+bumproot/osh mut
21 10 11 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 6 15 11.0 osh-native mut+alloc
23 15 9 11.0 osh-native mut+alloc+free
29 15 15 9.0 osh-native mut+alloc+free+gc
23 21 3 8.9 osh-native mut+alloc+free+gc+exit
25 16 9 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 16 9 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 19 2 10.6 osh-native-souffle mut+alloc
22 17 5 10.6 osh-native-souffle mut+alloc+free
31 20 12 8.4 osh-native-souffle mut+alloc+free+gc
22 11 12 8.5 osh-native-souffle mut+alloc+free+gc+exit