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.0 18.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 10 12.0 17.8 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 155 24 67 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 163 27 79 44.5 49.3 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 7.9 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 2 2.1 7.9 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.1 7.5 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 183 0 3 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 22 1 2 2.8 9.2 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 22 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
6 6 0 1.6 dash -
23 19 4 3.1 bash -
105 51 61 3.4 zsh -
17 8 8 28.3 bumpleak/osh mut
20 16 4 28.4 _bin/cxx-opt+bumproot/osh mut
22 22 0 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.2 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
36 24 12 18.0 osh-native mut+alloc+free+gc
37 36 0 18.0 osh-native mut+alloc+free+gc+exit
43 31 12 33.1 _bin/cxx-opt+nopool/osh mut+alloc
51 35 15 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 7 19 24.8 osh-native-souffle mut+alloc
29 24 4 25.4 osh-native-souffle mut+alloc+free
33 21 12 17.8 osh-native-souffle mut+alloc+free+gc
34 26 7 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.6 dash -
78 78 0 3.1 bash -
380 205 195 3.7 zsh -
48 48 0 84.4 bumpleak/osh mut
60 49 11 84.8 _bin/cxx-opt+bumproot/osh mut
71 55 16 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 51 47 73.5 osh-native mut+alloc
106 74 33 75.5 osh-native mut+alloc+free
155 139 16 49.7 osh-native mut+alloc+free+gc
162 146 16 50.4 osh-native mut+alloc+free+gc+exit
139 114 24 98.0 _bin/cxx-opt+nopool/osh mut+alloc
225 189 36 66.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 40 48 73.0 osh-native-souffle mut+alloc
105 68 36 74.8 osh-native-souffle mut+alloc+free
163 143 20 49.3 osh-native-souffle mut+alloc+free+gc
153 141 12 50.1 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 0 7 3.4 zsh -
6 6 0 11.7 bumpleak/osh mut
7 7 0 12.0 _bin/cxx-opt+bumproot/osh mut
8 0 8 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 10.1 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 8 0 9.7 osh-native-souffle mut+alloc
8 0 8 9.8 osh-native-souffle mut+alloc+free
9 9 0 7.9 osh-native-souffle mut+alloc+free+gc
9 9 0 7.9 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 25 4 3.0 bash -
24 20 4 3.3 zsh -
19 11 7 31.7 bumpleak/osh mut
26 22 4 32.2 _bin/cxx-opt+bumproot/osh mut
28 23 4 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.3 osh-native mut+alloc
38 38 0 26.6 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 37 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 23 8 26.0 osh-native-souffle mut+alloc
32 16 16 26.2 osh-native-souffle mut+alloc+free
22 21 0 7.5 osh-native-souffle mut+alloc+free+gc
22 21 0 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
73 68 4 3.1 bash -
168 100 68 56.4 bumpleak/osh mut
183 131 52 56.7 _bin/cxx-opt+bumproot/osh mut
195 115 80 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 144 68 48.2 osh-native mut+alloc
220 136 84 50.0 osh-native mut+alloc+free
183 134 49 8.9 osh-native mut+alloc+free+gc
184 140 44 8.8 osh-native mut+alloc+free+gc+exit
235 159 75 63.9 _bin/cxx-opt+nopool/osh mut+alloc
212 164 48 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
218 154 65 47.6 osh-native-souffle mut+alloc
214 142 71 49.6 osh-native-souffle mut+alloc+free
178 114 63 8.4 osh-native-souffle mut+alloc+free+gc
177 113 64 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 2 3.5 dash -
20 13 8 4.5 bash -
18 17 1 3.4 zsh -
18 13 6 11.9 bumpleak/osh mut
21 14 8 12.4 _bin/cxx-opt+bumproot/osh mut
20 6 15 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 10.9 osh-native mut+alloc
23 20 3 11.3 osh-native mut+alloc+free
22 17 5 9.2 osh-native mut+alloc+free+gc
23 15 8 9.0 osh-native mut+alloc+free+gc+exit
25 18 8 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 18 7 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 16 5 10.6 osh-native-souffle mut+alloc
21 14 7 10.6 osh-native-souffle mut+alloc+free
22 20 2 8.7 osh-native-souffle mut+alloc+free+gc
22 11 11 8.7 osh-native-souffle mut+alloc+free+gc+exit