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 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 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 155 27 77 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.4 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 29 0 2 2.2 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.2 7.7 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.9 8.9 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 175 0 4 10.9 8.3 1,017,203 15,258 21 50,000 0 3,851 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 21 2 3.0 bash -
101 55 52 3.5 zsh -
16 15 1 28.7 bumpleak/osh mut
19 16 3 29.0 _bin/cxx-opt+bumproot/osh mut
22 17 5 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
31 21 11 25.6 osh-native mut+alloc+free
35 29 6 17.8 osh-native mut+alloc+free+gc
36 30 6 18.0 osh-native mut+alloc+free+gc+exit
42 26 16 32.5 _bin/cxx-opt+nopool/osh mut+alloc
48 39 9 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 7 24.9 osh-native-souffle mut+alloc
29 18 11 25.3 osh-native-souffle mut+alloc+free
33 26 7 17.4 osh-native-souffle mut+alloc+free+gc
35 28 7 17.6 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.6 dash -
78 77 1 3.1 bash -
363 195 190 3.5 zsh -
49 41 8 85.8 bumpleak/osh mut
59 50 9 86.2 _bin/cxx-opt+bumproot/osh mut
69 58 11 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 58 40 73.7 osh-native mut+alloc
106 71 34 75.4 osh-native mut+alloc+free
168 140 28 49.8 osh-native mut+alloc+free+gc
168 142 26 50.5 osh-native mut+alloc+free+gc+exit
136 92 44 98.9 _bin/cxx-opt+nopool/osh mut+alloc
223 191 32 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 58 31 73.1 osh-native-souffle mut+alloc
95 57 38 75.0 osh-native-souffle mut+alloc+free
155 133 22 49.4 osh-native-souffle mut+alloc+free+gc
168 144 24 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.4 dash -
5 5 0 3.0 bash -
7 5 3 3.3 zsh -
6 4 2 10.2 bumpleak/osh mut
7 6 1 11.4 _bin/cxx-opt+bumproot/osh mut
7 3 4 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 6 3 10.0 osh-native mut+alloc
9 7 2 10.2 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 10 2 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 2 6 9.7 osh-native-souffle mut+alloc
8 6 2 9.7 osh-native-souffle mut+alloc+free
9 4 5 8.0 osh-native-souffle mut+alloc+free+gc
10 6 5 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.3 dash -
28 28 0 3.0 bash -
23 17 6 3.3 zsh -
19 14 5 32.7 bumpleak/osh mut
26 22 4 32.1 _bin/cxx-opt+bumproot/osh mut
29 22 7 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.3 osh-native mut+alloc
38 30 8 26.5 osh-native mut+alloc+free
29 28 1 8.0 osh-native mut+alloc+free+gc
29 27 2 8.1 osh-native mut+alloc+free+gc+exit
54 45 9 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 33 5 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 21 10 26.1 osh-native-souffle mut+alloc
32 21 11 26.3 osh-native-souffle mut+alloc+free
22 21 1 7.7 osh-native-souffle mut+alloc+free+gc
22 20 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
72 67 5 3.1 bash -
166 106 60 55.7 bumpleak/osh mut
182 128 54 57.3 _bin/cxx-opt+bumproot/osh mut
193 141 52 57.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 144 72 48.7 osh-native mut+alloc
219 145 74 50.6 osh-native mut+alloc+free
182 132 51 8.9 osh-native mut+alloc+free+gc
184 129 55 8.8 osh-native mut+alloc+free+gc+exit
234 153 81 64.6 _bin/cxx-opt+nopool/osh mut+alloc
211 155 56 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 134 72 48.2 osh-native-souffle mut+alloc
213 153 60 50.0 osh-native-souffle mut+alloc+free
175 118 57 8.3 osh-native-souffle mut+alloc+free+gc
175 125 50 8.5 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 -
21 9 12 4.5 bash -
17 6 12 3.4 zsh -
19 8 11 12.4 bumpleak/osh mut
20 8 12 11.9 _bin/cxx-opt+bumproot/osh mut
22 14 8 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 14 11.0 osh-native mut+alloc
22 17 6 11.1 osh-native mut+alloc+free
22 9 13 9.2 osh-native mut+alloc+free+gc
23 10 14 9.2 osh-native mut+alloc+free+gc+exit
24 10 15 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 11 15 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 12 10.5 osh-native-souffle mut+alloc
21 10 11 10.7 osh-native-souffle mut+alloc+free
21 12 9 8.7 osh-native-souffle mut+alloc+free+gc
22 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit