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.1 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 146 23 61 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 138 24 64 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.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 1 2.2 7.9 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 21 0 2 2.2 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 183 0 3 10.9 8.9 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 174 0 4 10.9 8.5 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 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 63 44 3.4 zsh -
16 14 2 29.1 bumpleak/osh mut
19 15 4 29.5 _bin/cxx-opt+bumproot/osh mut
23 21 2 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 10 25.2 osh-native mut+alloc
31 23 8 25.7 osh-native mut+alloc+free
35 27 8 18.1 osh-native mut+alloc+free+gc
36 30 6 18.1 osh-native mut+alloc+free+gc+exit
42 24 18 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 38 10 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.8 osh-native-souffle mut+alloc
28 17 11 25.4 osh-native-souffle mut+alloc+free
33 26 7 17.4 osh-native-souffle mut+alloc+free+gc
34 29 5 17.8 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 -
362 215 170 3.5 zsh -
49 41 8 86.0 bumpleak/osh mut
60 50 10 85.0 _bin/cxx-opt+bumproot/osh mut
71 49 22 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 53 42 73.4 osh-native mut+alloc
104 75 29 75.2 osh-native mut+alloc+free
146 121 25 49.7 osh-native mut+alloc+free+gc
156 131 25 50.5 osh-native mut+alloc+free+gc+exit
135 92 43 98.9 _bin/cxx-opt+nopool/osh mut+alloc
203 177 27 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
85 53 32 73.3 osh-native-souffle mut+alloc
93 63 30 75.1 osh-native-souffle mut+alloc+free
138 117 21 49.4 osh-native-souffle mut+alloc+free+gc
145 118 27 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 0 2 1.4 dash -
5 4 1 2.9 bash -
7 5 2 3.3 zsh -
6 3 3 11.8 bumpleak/osh mut
7 5 1 10.8 _bin/cxx-opt+bumproot/osh mut
7 6 1 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 6 3 10.0 osh-native mut+alloc
9 4 5 10.0 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 7 5 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 10 1 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 3 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 6 3 8.0 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 1 1.6 dash -
29 28 1 3.0 bash -
23 18 5 3.3 zsh -
18 15 3 31.7 bumpleak/osh mut
27 23 4 33.1 _bin/cxx-opt+bumproot/osh mut
28 25 3 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.3 osh-native mut+alloc
39 25 13 26.6 osh-native mut+alloc+free
28 25 3 7.9 osh-native mut+alloc+free+gc
28 26 2 8.1 osh-native mut+alloc+free+gc+exit
53 34 20 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 8 25.8 osh-native-souffle mut+alloc
31 17 14 26.1 osh-native-souffle mut+alloc+free
21 18 3 7.6 osh-native-souffle mut+alloc+free+gc
21 17 4 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 69 3 3.1 bash -
167 114 52 57.3 bumpleak/osh mut
182 120 62 56.7 _bin/cxx-opt+bumproot/osh mut
195 138 57 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 146 67 48.7 osh-native mut+alloc
221 163 57 50.4 osh-native mut+alloc+free
183 134 49 8.9 osh-native mut+alloc+free+gc
183 142 42 8.8 osh-native mut+alloc+free+gc+exit
235 151 83 64.4 _bin/cxx-opt+nopool/osh mut+alloc
211 159 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
202 131 71 48.5 osh-native-souffle mut+alloc
208 149 58 50.0 osh-native-souffle mut+alloc+free
174 122 52 8.5 osh-native-souffle mut+alloc+free+gc
173 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
10 4 6 3.5 dash -
19 10 9 4.3 bash -
17 7 11 3.4 zsh -
18 7 11 11.4 bumpleak/osh mut
21 9 12 13.0 _bin/cxx-opt+bumproot/osh mut
19 10 10 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 12 10.9 osh-native mut+alloc
22 12 11 11.1 osh-native mut+alloc+free
22 12 11 9.0 osh-native mut+alloc+free+gc
23 13 11 9.2 osh-native mut+alloc+free+gc+exit
24 14 11 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 13 8 10.6 osh-native-souffle mut+alloc
21 8 13 10.9 osh-native-souffle mut+alloc+free
21 9 13 8.7 osh-native-souffle mut+alloc+free+gc
21 11 11 8.5 osh-native-souffle mut+alloc+free+gc+exit