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.1 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 162 26 74 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 140 24 65 44.5 49.3 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 2 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 21 0 1 2.1 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.8 8.7 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 173 0 3 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 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
6 5 1 1.6 dash -
23 22 1 3.1 bash -
102 59 49 3.4 zsh -
16 14 2 28.5 bumpleak/osh mut
19 14 5 29.7 _bin/cxx-opt+bumproot/osh mut
23 16 7 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 10 25.2 osh-native mut+alloc
32 21 11 25.6 osh-native mut+alloc+free
36 26 10 18.1 osh-native mut+alloc+free+gc
37 25 12 18.0 osh-native mut+alloc+free+gc+exit
42 23 19 32.5 _bin/cxx-opt+nopool/osh mut+alloc
50 39 11 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 16 10 24.8 osh-native-souffle mut+alloc
29 21 8 25.3 osh-native-souffle mut+alloc+free
32 26 6 17.4 osh-native-souffle mut+alloc+free+gc
33 22 11 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.4 dash -
79 78 1 3.1 bash -
362 183 202 3.5 zsh -
48 36 12 85.1 bumpleak/osh mut
60 49 11 86.0 _bin/cxx-opt+bumproot/osh mut
87 82 5 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 63 35 73.4 osh-native mut+alloc
106 68 38 75.4 osh-native mut+alloc+free
162 135 25 49.8 osh-native mut+alloc+free+gc
166 151 16 50.6 osh-native mut+alloc+free+gc+exit
140 99 41 98.7 _bin/cxx-opt+nopool/osh mut+alloc
237 207 30 66.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 52 35 73.0 osh-native-souffle mut+alloc
96 63 33 75.1 osh-native-souffle mut+alloc+free
140 117 23 49.3 osh-native-souffle mut+alloc+free+gc
144 125 19 50.0 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 -
5 4 1 2.9 bash -
7 3 4 3.3 zsh -
6 6 0 12.0 bumpleak/osh mut
7 5 2 11.2 _bin/cxx-opt+bumproot/osh mut
8 6 2 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.0 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 5 4 8.5 osh-native mut+alloc+free+gc
9 4 6 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 11 1 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 5 2 9.7 osh-native-souffle mut+alloc
8 3 5 9.8 osh-native-souffle mut+alloc+free
9 6 2 8.0 osh-native-souffle mut+alloc+free+gc
9 5 4 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 -
28 27 1 2.9 bash -
23 13 10 3.3 zsh -
19 15 4 32.4 bumpleak/osh mut
25 21 4 31.7 _bin/cxx-opt+bumproot/osh mut
28 25 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 13 26.3 osh-native mut+alloc
37 21 16 26.7 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 36 18 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
31 22 9 26.2 osh-native-souffle mut+alloc+free
21 18 3 7.6 osh-native-souffle mut+alloc+free+gc
21 19 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
73 68 5 3.1 bash -
167 111 56 55.6 bumpleak/osh mut
180 127 53 56.5 _bin/cxx-opt+bumproot/osh mut
195 143 52 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 138 72 48.2 osh-native mut+alloc
218 144 74 50.0 osh-native mut+alloc+free
182 132 49 8.7 osh-native mut+alloc+free+gc
183 140 43 8.8 osh-native mut+alloc+free+gc+exit
237 164 72 64.0 _bin/cxx-opt+nopool/osh mut+alloc
211 158 53 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 117 87 47.8 osh-native-souffle mut+alloc
209 140 69 49.6 osh-native-souffle mut+alloc+free
173 126 47 8.4 osh-native-souffle mut+alloc+free+gc
172 115 58 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 3 7 3.4 dash -
19 14 6 4.3 bash -
17 5 12 3.4 zsh -
17 6 11 11.3 bumpleak/osh mut
21 12 9 12.7 _bin/cxx-opt+bumproot/osh mut
20 7 14 13.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 12 11.0 osh-native mut+alloc
22 7 15 11.1 osh-native mut+alloc+free
22 12 11 9.2 osh-native mut+alloc+free+gc
22 10 12 9.0 osh-native mut+alloc+free+gc+exit
24 13 12 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 12 13 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 6 14 10.6 osh-native-souffle mut+alloc
21 10 11 10.6 osh-native-souffle mut+alloc+free
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc
22 8 14 8.8 osh-native-souffle mut+alloc+free+gc+exit