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 36 4 10 12.0 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 34 4 11 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 157 25 71 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 147 26 72 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 7.9 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.5 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 185 0 4 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.5 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 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 22 1 3.0 bash -
101 54 54 3.4 zsh -
17 13 4 28.1 bumpleak/osh mut
19 14 5 29.4 _bin/cxx-opt+bumproot/osh mut
22 16 6 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
36 26 9 17.8 osh-native mut+alloc+free+gc
37 31 6 18.0 osh-native mut+alloc+free+gc+exit
43 29 14 32.5 _bin/cxx-opt+nopool/osh mut+alloc
49 42 7 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 9 24.8 osh-native-souffle mut+alloc
29 18 10 25.4 osh-native-souffle mut+alloc+free
34 29 5 17.6 osh-native-souffle mut+alloc+free+gc
35 27 8 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.6 dash -
78 77 1 3.3 bash -
365 192 194 3.5 zsh -
49 40 9 84.5 bumpleak/osh mut
60 56 4 85.6 _bin/cxx-opt+bumproot/osh mut
70 60 10 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 63 33 73.5 osh-native mut+alloc
107 68 39 75.4 osh-native mut+alloc+free
157 135 22 49.8 osh-native mut+alloc+free+gc
162 138 24 50.5 osh-native mut+alloc+free+gc+exit
138 94 44 98.9 _bin/cxx-opt+nopool/osh mut+alloc
217 187 30 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
85 60 26 73.1 osh-native-souffle mut+alloc
93 52 41 75.0 osh-native-souffle mut+alloc+free
147 128 19 49.4 osh-native-souffle mut+alloc+free+gc
159 140 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 2 0 1.3 dash -
5 4 1 2.9 bash -
7 2 5 3.1 zsh -
6 4 2 10.3 bumpleak/osh mut
7 6 1 12.1 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 10.1 osh-native mut+alloc
9 6 3 10.2 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
9 8 1 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 6 6 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.6 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 6 3 7.9 osh-native-souffle mut+alloc+free+gc
9 6 3 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 -
30 29 1 3.0 bash -
27 21 6 3.3 zsh -
19 13 6 32.7 bumpleak/osh mut
26 19 7 32.3 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 9 26.3 osh-native mut+alloc
38 30 8 26.6 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
29 25 4 8.0 osh-native mut+alloc+free+gc+exit
54 35 19 36.1 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 26.0 osh-native-souffle mut+alloc
31 24 7 26.3 osh-native-souffle mut+alloc+free
22 21 1 7.5 osh-native-souffle mut+alloc+free+gc
22 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
72 68 4 3.3 bash -
167 121 46 57.5 bumpleak/osh mut
182 121 61 56.3 _bin/cxx-opt+bumproot/osh mut
195 124 71 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 146 70 48.7 osh-native mut+alloc
219 147 72 50.6 osh-native mut+alloc+free
185 127 58 8.8 osh-native mut+alloc+free+gc
183 130 53 8.8 osh-native mut+alloc+free+gc+exit
235 154 81 64.4 _bin/cxx-opt+nopool/osh mut+alloc
216 162 53 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 136 67 48.2 osh-native-souffle mut+alloc
208 134 75 50.0 osh-native-souffle mut+alloc+free
175 130 46 8.5 osh-native-souffle mut+alloc+free+gc
174 123 51 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 10 4.3 bash -
17 3 15 3.5 zsh -
19 9 10 12.2 bumpleak/osh mut
19 9 10 11.6 _bin/cxx-opt+bumproot/osh mut
20 7 13 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 10 11.1 osh-native mut+alloc
22 9 14 11.1 osh-native mut+alloc+free
22 9 14 8.9 osh-native mut+alloc+free+gc
22 11 12 9.0 osh-native mut+alloc+free+gc+exit
24 12 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.6 osh-native-souffle mut+alloc
21 14 8 10.9 osh-native-souffle mut+alloc+free
21 11 10 8.7 osh-native-souffle mut+alloc+free+gc
22 15 7 8.8 osh-native-souffle mut+alloc+free+gc+exit