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 38 3 9 12.0 18.1 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 32 4 10 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 142 22 58 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 141 24 66 44.5 49.4 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 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 1 2.1 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 21 0 2 2.1 7.7 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.8 8.9 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 173 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.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 3 3 1.4 dash -
23 21 2 3.1 bash -
101 51 57 3.3 zsh -
16 13 3 29.3 bumpleak/osh mut
19 18 1 30.2 _bin/cxx-opt+bumproot/osh mut
23 17 5 28.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 14 15 25.2 osh-native mut+alloc
31 22 9 25.7 osh-native mut+alloc+free
38 30 8 18.1 osh-native mut+alloc+free+gc
36 29 7 18.1 osh-native mut+alloc+free+gc+exit
44 29 15 32.4 _bin/cxx-opt+nopool/osh mut+alloc
50 44 6 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.9 osh-native-souffle mut+alloc
28 16 12 25.3 osh-native-souffle mut+alloc+free
32 27 6 17.6 osh-native-souffle mut+alloc+free+gc
34 27 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
21 21 0 1.6 dash -
78 77 1 3.1 bash -
363 201 184 3.7 zsh -
49 39 10 85.0 bumpleak/osh mut
61 48 13 84.6 _bin/cxx-opt+bumproot/osh mut
71 52 19 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 64 32 73.4 osh-native mut+alloc
106 81 25 75.2 osh-native mut+alloc+free
142 123 19 49.7 osh-native mut+alloc+free+gc
150 131 19 50.5 osh-native mut+alloc+free+gc+exit
139 91 48 99.0 _bin/cxx-opt+nopool/osh mut+alloc
201 171 30 66.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 62 25 73.1 osh-native-souffle mut+alloc
96 63 33 75.0 osh-native-souffle mut+alloc+free
141 119 22 49.4 osh-native-souffle mut+alloc+free+gc
143 121 22 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 1 1 1.3 dash -
5 5 0 3.0 bash -
7 2 5 3.3 zsh -
6 3 3 10.5 bumpleak/osh mut
6 3 3 12.6 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 7 1 10.1 osh-native mut+alloc
9 6 3 10.2 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 4 5 8.7 osh-native mut+alloc+free+gc+exit
11 9 3 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 9 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.8 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 6 3 7.9 osh-native-souffle mut+alloc+free+gc
9 7 2 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.6 dash -
29 29 0 3.0 bash -
23 19 4 3.1 zsh -
19 15 4 32.6 bumpleak/osh mut
26 20 6 32.8 _bin/cxx-opt+bumproot/osh mut
27 20 7 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 10 26.2 osh-native mut+alloc
37 28 9 26.7 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
53 36 17 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 18 11 26.0 osh-native-souffle mut+alloc
31 21 9 26.1 osh-native-souffle mut+alloc+free
21 19 2 7.7 osh-native-souffle mut+alloc+free+gc
22 22 0 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
72 71 1 3.1 bash -
166 105 61 55.2 bumpleak/osh mut
180 136 44 57.1 _bin/cxx-opt+bumproot/osh mut
193 128 65 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 149 61 48.0 osh-native mut+alloc
219 147 72 49.9 osh-native mut+alloc+free
180 128 52 8.9 osh-native mut+alloc+free+gc
180 135 45 8.9 osh-native mut+alloc+free+gc+exit
236 159 77 64.0 _bin/cxx-opt+nopool/osh mut+alloc
210 156 54 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
202 131 71 47.6 osh-native-souffle mut+alloc
209 134 76 49.4 osh-native-souffle mut+alloc+free
173 134 39 8.3 osh-native-souffle mut+alloc+free+gc
172 126 46 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 4 6 3.5 dash -
19 9 11 4.5 bash -
17 8 10 3.5 zsh -
19 9 11 12.4 bumpleak/osh mut
19 6 14 12.5 _bin/cxx-opt+bumproot/osh mut
22 11 11 13.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 13 10.9 osh-native mut+alloc
22 12 10 11.3 osh-native mut+alloc+free
22 13 9 9.2 osh-native mut+alloc+free+gc
22 12 10 9.2 osh-native mut+alloc+free+gc+exit
24 6 19 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 12 10.5 osh-native-souffle mut+alloc
21 8 13 10.7 osh-native-souffle mut+alloc+free
21 11 10 8.7 osh-native-souffle mut+alloc+free+gc
21 11 11 8.7 osh-native-souffle mut+alloc+free+gc+exit