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 39 5 13 12.0 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 34 5 11 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 168 27 80 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 161 27 83 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 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 30 0 2 2.1 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 24 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 4 10.8 8.8 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 178 0 4 10.8 8.3 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 21 1 2 2.8 8.8 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.4 dash -
24 22 2 3.1 bash -
102 59 50 3.4 zsh -
17 13 4 28.0 bumpleak/osh mut
19 16 3 29.2 _bin/cxx-opt+bumproot/osh mut
23 16 7 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
35 26 9 25.7 osh-native mut+alloc+free
39 30 9 17.8 osh-native mut+alloc+free+gc
39 33 6 18.0 osh-native mut+alloc+free+gc+exit
42 25 16 32.5 _bin/cxx-opt+nopool/osh mut+alloc
52 46 6 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 18 8 24.6 osh-native-souffle mut+alloc
28 19 9 25.3 osh-native-souffle mut+alloc+free
34 26 8 17.6 osh-native-souffle mut+alloc+free+gc
35 28 6 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 20 1 1.6 dash -
78 76 2 3.1 bash -
367 190 198 3.5 zsh -
48 39 9 85.9 bumpleak/osh mut
59 51 8 85.9 _bin/cxx-opt+bumproot/osh mut
73 61 12 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 66 32 73.4 osh-native mut+alloc
105 69 36 75.5 osh-native mut+alloc+free
168 149 19 49.8 osh-native mut+alloc+free+gc
177 163 14 50.3 osh-native mut+alloc+free+gc+exit
141 97 44 98.9 _bin/cxx-opt+nopool/osh mut+alloc
236 209 27 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
91 63 28 73.0 osh-native-souffle mut+alloc
98 56 41 74.9 osh-native-souffle mut+alloc+free
161 146 15 49.3 osh-native-souffle mut+alloc+free+gc
161 138 23 50.2 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 -
5 5 0 2.9 bash -
8 5 3 3.3 zsh -
6 3 3 10.4 bumpleak/osh mut
7 4 2 12.5 _bin/cxx-opt+bumproot/osh mut
7 4 3 10.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.0 osh-native mut+alloc
9 4 5 10.1 osh-native mut+alloc+free
9 5 4 8.5 osh-native mut+alloc+free+gc
10 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.7 osh-native-souffle mut+alloc
8 6 2 9.7 osh-native-souffle mut+alloc+free
9 7 2 8.0 osh-native-souffle mut+alloc+free+gc
9 6 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 9 1 1.4 dash -
29 28 1 2.9 bash -
23 17 6 3.3 zsh -
19 15 4 32.0 bumpleak/osh mut
26 22 4 31.8 _bin/cxx-opt+bumproot/osh mut
28 26 2 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.5 osh-native mut+alloc
38 30 8 26.5 osh-native mut+alloc+free
30 27 3 8.0 osh-native mut+alloc+free+gc
29 26 3 8.0 osh-native mut+alloc+free+gc+exit
54 34 20 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
32 28 4 26.2 osh-native-souffle mut+alloc+free
24 22 2 7.5 osh-native-souffle mut+alloc+free+gc
22 19 3 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
74 68 6 3.1 bash -
166 115 51 54.9 bumpleak/osh mut
180 126 54 55.7 _bin/cxx-opt+bumproot/osh mut
198 130 68 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 140 73 48.2 osh-native mut+alloc
223 144 79 49.9 osh-native mut+alloc+free
183 133 50 8.8 osh-native mut+alloc+free+gc
183 131 52 8.9 osh-native mut+alloc+free+gc+exit
235 149 85 64.0 _bin/cxx-opt+nopool/osh mut+alloc
210 161 49 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 127 77 47.6 osh-native-souffle mut+alloc
214 144 70 49.6 osh-native-souffle mut+alloc+free
178 141 37 8.3 osh-native-souffle mut+alloc+free+gc
177 126 51 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
9 6 4 3.5 dash -
19 12 8 4.3 bash -
18 7 11 3.5 zsh -
20 9 11 13.0 bumpleak/osh mut
19 9 11 12.4 _bin/cxx-opt+bumproot/osh mut
20 9 12 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 7 14 11.0 osh-native mut+alloc
22 12 10 11.1 osh-native mut+alloc+free
22 13 9 9.2 osh-native mut+alloc+free+gc
23 10 14 9.0 osh-native mut+alloc+free+gc+exit
25 10 15 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 14 12 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 6 14 10.6 osh-native-souffle mut+alloc
21 10 12 10.7 osh-native-souffle mut+alloc+free
21 11 11 8.8 osh-native-souffle mut+alloc+free+gc
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit