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 35 3 9 12.0 18.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 142 21 56 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 131 21 56 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.7 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 2.1 7.9 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 1 2.1 7.6 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 174 0 3 10.8 8.3 1,006,004 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.2 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 20 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 21 2 3.0 bash -
101 61 47 3.4 zsh -
16 13 3 28.1 bumpleak/osh mut
20 16 4 28.5 _bin/cxx-opt+bumproot/osh mut
22 16 7 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 25.3 osh-native mut+alloc
31 23 8 25.6 osh-native mut+alloc+free
35 31 4 18.0 osh-native mut+alloc+free+gc
36 29 7 18.1 osh-native mut+alloc+free+gc+exit
42 27 14 32.3 _bin/cxx-opt+nopool/osh mut+alloc
46 33 13 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 17 10 24.9 osh-native-souffle mut+alloc
28 18 9 25.2 osh-native-souffle mut+alloc+free
32 25 7 17.7 osh-native-souffle mut+alloc+free+gc
33 26 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 19 2 1.4 dash -
78 75 3 3.3 bash -
359 195 185 3.4 zsh -
48 39 8 85.0 bumpleak/osh mut
61 52 10 85.5 _bin/cxx-opt+bumproot/osh mut
70 64 6 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 69 28 73.4 osh-native mut+alloc
104 68 36 75.4 osh-native mut+alloc+free
142 118 24 49.7 osh-native mut+alloc+free+gc
146 118 28 50.3 osh-native mut+alloc+free+gc+exit
139 96 43 98.9 _bin/cxx-opt+nopool/osh mut+alloc
197 162 35 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 56 32 73.1 osh-native-souffle mut+alloc
100 68 31 75.0 osh-native-souffle mut+alloc+free
131 112 19 49.3 osh-native-souffle mut+alloc+free+gc
137 118 19 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.4 dash -
5 4 2 2.9 bash -
7 3 4 3.1 zsh -
6 5 1 11.0 bumpleak/osh mut
7 4 3 11.8 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.0 osh-native mut+alloc
8 6 2 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 5 3 9.7 osh-native-souffle mut+alloc+free
9 8 1 7.7 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 9 1 1.4 dash -
28 27 1 2.8 bash -
23 16 7 3.4 zsh -
19 14 5 32.5 bumpleak/osh mut
26 23 3 32.5 _bin/cxx-opt+bumproot/osh mut
29 24 5 31.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.5 osh-native mut+alloc
38 29 9 26.6 osh-native mut+alloc+free
28 26 3 7.9 osh-native mut+alloc+free+gc
28 27 1 8.0 osh-native mut+alloc+free+gc+exit
54 40 14 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 13 26.0 osh-native-souffle mut+alloc
31 20 11 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
21 20 2 7.7 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 69 5 3.0 bash -
164 116 48 56.3 bumpleak/osh mut
180 118 62 57.2 _bin/cxx-opt+bumproot/osh mut
194 130 64 58.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 147 64 48.0 osh-native mut+alloc
219 147 72 50.0 osh-native mut+alloc+free
183 131 52 8.9 osh-native mut+alloc+free+gc
180 113 67 8.8 osh-native mut+alloc+free+gc+exit
234 162 72 63.9 _bin/cxx-opt+nopool/osh mut+alloc
210 167 43 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
201 137 64 47.6 osh-native-souffle mut+alloc
211 133 77 49.6 osh-native-souffle mut+alloc+free
174 119 54 8.3 osh-native-souffle mut+alloc+free+gc
172 117 55 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 4 6 3.5 dash -
19 10 9 4.2 bash -
17 6 11 3.5 zsh -
18 9 10 11.8 bumpleak/osh mut
20 8 12 12.8 _bin/cxx-opt+bumproot/osh mut
20 9 11 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 10 11 11.1 osh-native mut+alloc
21 12 10 11.3 osh-native mut+alloc+free
21 13 9 9.2 osh-native mut+alloc+free+gc
22 9 13 9.0 osh-native mut+alloc+free+gc+exit
23 11 13 12.5 _bin/cxx-opt+nopool/osh mut+alloc
24 11 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 11 9 10.6 osh-native-souffle mut+alloc
20 6 15 10.9 osh-native-souffle mut+alloc+free
20 9 12 8.7 osh-native-souffle mut+alloc+free+gc
21 11 10 8.8 osh-native-souffle mut+alloc+free+gc+exit