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 18.1 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 36 4 12 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 189 53 98 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 177 52 96 44.5 49.4 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 10 1 1 2.6 8.5 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 10 1 2 2.4 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 29 0 2 2.1 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 23 0 2 2.1 7.5 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 186 0 4 10.8 8.7 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 184 0 4 10.8 8.4 1,006,004 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 25 1 2 2.8 9.2 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 24 1 3 2.8 8.4 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 5 1 1.6 dash -
28 27 1 3.1 bash -
112 55 64 3.4 zsh -
18 13 6 28.4 bumpleak/osh mut
22 16 6 28.4 _bin/cxx-opt+bumproot/osh mut
26 19 6 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
32 22 10 25.2 osh-native mut+alloc
34 21 13 25.7 osh-native mut+alloc+free
37 29 8 18.1 osh-native mut+alloc+free+gc
39 35 4 18.0 osh-native mut+alloc+free+gc+exit
46 34 12 32.4 _bin/cxx-opt+nopool/osh mut+alloc
51 39 12 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 16 12 24.9 osh-native-souffle mut+alloc
30 22 8 25.2 osh-native-souffle mut+alloc+free
36 24 12 17.6 osh-native-souffle mut+alloc+free+gc
37 28 9 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 22 0 1.6 dash -
85 83 2 3.3 bash -
399 224 198 3.5 zsh -
52 40 12 85.7 bumpleak/osh mut
65 53 12 85.5 _bin/cxx-opt+bumproot/osh mut
79 56 22 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
100 73 26 73.5 osh-native mut+alloc
117 75 42 75.5 osh-native mut+alloc+free
189 169 20 49.7 osh-native mut+alloc+free+gc
209 187 22 50.3 osh-native mut+alloc+free+gc+exit
148 99 48 98.9 _bin/cxx-opt+nopool/osh mut+alloc
250 218 32 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
93 58 35 73.1 osh-native-souffle mut+alloc
111 79 32 75.0 osh-native-souffle mut+alloc+free
177 158 19 49.4 osh-native-souffle mut+alloc+free+gc
205 174 31 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.4 dash -
6 6 1 3.0 bash -
8 3 4 3.4 zsh -
7 3 4 10.6 bumpleak/osh mut
7 4 3 10.9 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 10.0 osh-native mut+alloc
10 6 4 10.4 osh-native mut+alloc+free
10 5 5 8.5 osh-native mut+alloc+free+gc
10 9 1 8.5 osh-native mut+alloc+free+gc+exit
12 7 5 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
10 5 5 9.7 osh-native-souffle mut+alloc
9 7 2 10.0 osh-native-souffle mut+alloc+free
10 9 1 8.0 osh-native-souffle mut+alloc+free+gc
10 9 1 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 9 1 1.6 dash -
29 29 0 2.9 bash -
23 16 7 3.3 zsh -
20 14 6 32.3 bumpleak/osh mut
27 19 8 32.0 _bin/cxx-opt+bumproot/osh mut
30 24 6 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
40 28 12 26.3 osh-native mut+alloc
43 30 13 26.7 osh-native mut+alloc+free
29 28 1 8.0 osh-native mut+alloc+free+gc
29 26 3 8.1 osh-native mut+alloc+free+gc+exit
60 39 21 35.8 _bin/cxx-opt+nopool/osh mut+alloc
39 33 6 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
33 18 15 26.0 osh-native-souffle mut+alloc
37 20 17 26.2 osh-native-souffle mut+alloc+free
23 19 4 7.5 osh-native-souffle mut+alloc+free+gc
23 22 2 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
75 69 6 3.1 bash -
173 113 60 56.2 bumpleak/osh mut
191 130 61 57.0 _bin/cxx-opt+bumproot/osh mut
204 147 57 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
220 128 92 48.0 osh-native mut+alloc
236 163 73 49.9 osh-native mut+alloc+free
186 142 43 8.7 osh-native mut+alloc+free+gc
185 137 48 8.9 osh-native mut+alloc+free+gc+exit
251 165 85 64.0 _bin/cxx-opt+nopool/osh mut+alloc
215 166 49 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
214 129 85 47.8 osh-native-souffle mut+alloc
228 142 86 49.5 osh-native-souffle mut+alloc+free
184 138 46 8.4 osh-native-souffle mut+alloc+free+gc
179 141 38 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 -
22 12 11 4.5 bash -
18 6 12 3.5 zsh -
21 9 12 11.8 bumpleak/osh mut
23 7 17 13.4 _bin/cxx-opt+bumproot/osh mut
22 10 13 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
24 13 12 11.1 osh-native mut+alloc
24 13 12 11.3 osh-native mut+alloc+free
25 11 14 9.2 osh-native mut+alloc+free+gc
25 14 11 8.9 osh-native mut+alloc+free+gc+exit
27 14 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
29 15 15 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
23 7 17 10.4 osh-native-souffle mut+alloc
23 12 12 10.9 osh-native-souffle mut+alloc+free
24 16 8 8.4 osh-native-souffle mut+alloc+free+gc
25 13 12 8.7 osh-native-souffle mut+alloc+free+gc+exit