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.0 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 39 7 14 12.0 17.7 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 166 30 77 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 173 29 92 44.5 49.5 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 2 2.1 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.8 8.9 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 178 0 4 10.8 8.4 1,006,004 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.2 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,318 277 3 85,124 1 42,562 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 6 0 1.4 dash -
24 23 0 3.0 bash -
106 64 47 3.3 zsh -
16 12 4 29.2 bumpleak/osh mut
20 16 4 29.8 _bin/cxx-opt+bumproot/osh mut
23 19 4 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.3 osh-native mut+alloc
32 16 16 25.7 osh-native mut+alloc+free
37 28 8 17.8 osh-native mut+alloc+free+gc
37 33 4 18.2 osh-native mut+alloc+free+gc+exit
44 28 16 31.8 _bin/cxx-opt+nopool/osh mut+alloc
51 46 4 22.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 4 22 24.9 osh-native-souffle mut+alloc
30 15 15 25.3 osh-native-souffle mut+alloc+free
39 39 0 17.7 osh-native-souffle mut+alloc+free+gc
36 20 16 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 78 0 3.3 bash -
384 205 200 3.7 zsh -
48 32 16 85.8 bumpleak/osh mut
60 45 15 84.4 _bin/cxx-opt+bumproot/osh mut
70 50 19 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 63 35 73.7 osh-native mut+alloc
107 79 28 75.5 osh-native mut+alloc+free
166 134 32 49.7 osh-native mut+alloc+free+gc
181 161 20 50.5 osh-native mut+alloc+free+gc+exit
140 92 48 97.7 _bin/cxx-opt+nopool/osh mut+alloc
232 203 28 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 56 32 73.1 osh-native-souffle mut+alloc
98 62 35 75.0 osh-native-souffle mut+alloc+free
173 153 20 49.5 osh-native-souffle mut+alloc+free+gc
166 141 24 49.9 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 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 12.2 bumpleak/osh mut
7 4 4 11.5 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 0 9 10.1 osh-native mut+alloc+free
9 5 5 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
15 14 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.8 osh-native-souffle mut+alloc
8 0 8 9.8 osh-native-souffle mut+alloc+free
9 9 0 8.0 osh-native-souffle mut+alloc+free+gc
10 7 3 8.0 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 21 7 3.0 bash -
24 20 4 3.3 zsh -
19 14 5 31.4 bumpleak/osh mut
27 27 0 33.1 _bin/cxx-opt+bumproot/osh mut
29 20 8 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 33 4 26.5 osh-native mut+alloc
39 31 8 26.6 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
29 21 7 8.0 osh-native mut+alloc+free+gc+exit
54 33 20 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 25.8 osh-native-souffle mut+alloc
32 23 9 26.1 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 15 7 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
74 69 4 3.1 bash -
169 122 47 56.2 bumpleak/osh mut
185 137 48 55.9 _bin/cxx-opt+bumproot/osh mut
200 151 48 57.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 115 99 48.0 osh-native mut+alloc
224 160 64 50.0 osh-native mut+alloc+free
184 124 60 8.9 osh-native mut+alloc+free+gc
185 157 28 8.8 osh-native mut+alloc+free+gc+exit
240 152 88 63.8 _bin/cxx-opt+nopool/osh mut+alloc
233 161 72 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
208 152 56 47.8 osh-native-souffle mut+alloc
217 144 72 49.3 osh-native-souffle mut+alloc+free
178 122 55 8.4 osh-native-souffle mut+alloc+free+gc
180 128 52 8.5 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.5 dash -
20 12 8 4.5 bash -
18 15 4 3.5 zsh -
19 9 10 11.5 bumpleak/osh mut
21 16 6 13.4 _bin/cxx-opt+bumproot/osh mut
20 15 6 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 15 8 11.0 osh-native mut+alloc
23 13 11 11.1 osh-native mut+alloc+free
23 18 5 9.2 osh-native mut+alloc+free+gc
24 14 10 9.2 osh-native mut+alloc+free+gc+exit
25 16 9 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 20 6 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 11 9 10.5 osh-native-souffle mut+alloc
22 21 1 10.6 osh-native-souffle mut+alloc+free
21 20 2 8.7 osh-native-souffle mut+alloc+free+gc
22 17 5 8.5 osh-native-souffle mut+alloc+free+gc+exit