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 32 4 10 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 160 24 70 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 151 26 76 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 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 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.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.9 8.8 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 175 0 4 10.9 8.1 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 -
100 55 52 3.4 zsh -
16 14 2 28.2 bumpleak/osh mut
20 16 4 29.9 _bin/cxx-opt+bumproot/osh mut
23 20 3 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 23 6 25.3 osh-native mut+alloc
31 23 8 25.8 osh-native mut+alloc+free
35 27 8 17.8 osh-native mut+alloc+free+gc
36 30 6 18.0 osh-native mut+alloc+free+gc+exit
42 26 16 32.4 _bin/cxx-opt+nopool/osh mut+alloc
46 35 11 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 16 10 24.8 osh-native-souffle mut+alloc
29 17 12 25.4 osh-native-souffle mut+alloc+free
32 21 12 17.6 osh-native-souffle mut+alloc+free+gc
34 30 4 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 74 4 3.1 bash -
364 196 189 3.5 zsh -
51 44 7 85.3 bumpleak/osh mut
60 51 9 84.8 _bin/cxx-opt+bumproot/osh mut
71 61 11 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 60 35 73.7 osh-native mut+alloc
104 71 33 75.2 osh-native mut+alloc+free
160 141 19 49.8 osh-native mut+alloc+free+gc
150 123 27 50.5 osh-native mut+alloc+free+gc+exit
136 92 44 99.0 _bin/cxx-opt+nopool/osh mut+alloc
222 191 31 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 56 31 73.0 osh-native-souffle mut+alloc
95 60 35 75.0 osh-native-souffle mut+alloc+free
151 131 20 49.4 osh-native-souffle mut+alloc+free+gc
145 119 26 49.9 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 4 1 3.0 bash -
7 4 4 3.3 zsh -
6 5 1 12.3 bumpleak/osh mut
7 5 2 11.8 _bin/cxx-opt+bumproot/osh mut
8 6 2 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 3 10.1 osh-native mut+alloc
9 5 4 10.2 osh-native mut+alloc+free
9 8 1 8.7 osh-native mut+alloc+free+gc
9 8 1 8.7 osh-native mut+alloc+free+gc+exit
12 8 3 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 11 1 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 2 9.7 osh-native-souffle mut+alloc
8 4 3 10.0 osh-native-souffle mut+alloc+free
9 8 1 8.0 osh-native-souffle mut+alloc+free+gc
10 8 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
11 11 0 1.4 dash -
29 27 2 2.9 bash -
23 16 7 3.3 zsh -
18 13 5 31.1 bumpleak/osh mut
26 22 4 32.6 _bin/cxx-opt+bumproot/osh mut
28 25 3 31.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 30 6 26.1 osh-native mut+alloc
38 24 13 26.7 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
28 27 1 8.1 osh-native mut+alloc+free+gc+exit
54 44 10 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 20 10 26.0 osh-native-souffle mut+alloc
31 21 10 26.3 osh-native-souffle mut+alloc+free
22 19 3 7.6 osh-native-souffle mut+alloc+free+gc
22 20 2 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
75 71 4 3.1 bash -
164 106 58 56.5 bumpleak/osh mut
180 137 43 57.2 _bin/cxx-opt+bumproot/osh mut
194 124 71 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 133 79 48.6 osh-native mut+alloc
218 131 87 50.5 osh-native mut+alloc+free
182 124 58 8.8 osh-native mut+alloc+free+gc
182 122 59 8.8 osh-native mut+alloc+free+gc+exit
233 158 76 64.4 _bin/cxx-opt+nopool/osh mut+alloc
214 163 51 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 141 63 48.2 osh-native-souffle mut+alloc
210 130 77 50.2 osh-native-souffle mut+alloc+free
175 114 61 8.1 osh-native-souffle mut+alloc+free+gc
174 128 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
9 5 5 3.4 dash -
19 10 10 4.5 bash -
17 7 11 3.5 zsh -
21 6 15 12.6 bumpleak/osh mut
21 10 12 12.8 _bin/cxx-opt+bumproot/osh mut
21 9 13 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 12 11.0 osh-native mut+alloc
22 11 11 11.1 osh-native mut+alloc+free
22 14 9 9.2 osh-native mut+alloc+free+gc
22 13 10 9.2 osh-native mut+alloc+free+gc+exit
24 11 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 17 9 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 13 10.5 osh-native-souffle mut+alloc
21 8 13 10.7 osh-native-souffle mut+alloc+free
21 12 9 8.7 osh-native-souffle mut+alloc+free+gc
21 14 8 8.5 osh-native-souffle mut+alloc+free+gc+exit