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 18.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 35 5 12 12.0 17.7 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 153 24 69 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 148 26 72 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 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 2 2.2 8.1 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 21 0 1 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.9 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 174 0 3 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 23 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.8 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 4 2 1.6 dash -
23 22 1 3.1 bash -
101 64 43 3.4 zsh -
17 14 3 28.3 bumpleak/osh mut
19 16 3 29.1 _bin/cxx-opt+bumproot/osh mut
23 18 5 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 25.3 osh-native mut+alloc
32 22 10 25.6 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
42 30 12 18.1 osh-native mut+alloc+free+gc+exit
42 28 14 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 40 7 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 16 11 24.9 osh-native-souffle mut+alloc
28 21 7 25.3 osh-native-souffle mut+alloc+free
35 28 7 17.7 osh-native-souffle mut+alloc+free+gc
33 26 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 76 2 3.3 bash -
363 196 188 3.5 zsh -
49 38 11 85.8 bumpleak/osh mut
60 48 13 85.6 _bin/cxx-opt+bumproot/osh mut
70 59 11 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 59 37 73.4 osh-native mut+alloc
103 75 29 75.4 osh-native mut+alloc+free
153 130 23 49.7 osh-native mut+alloc+free+gc
157 136 21 50.3 osh-native mut+alloc+free+gc+exit
136 101 35 98.9 _bin/cxx-opt+nopool/osh mut+alloc
213 176 37 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 56 31 73.3 osh-native-souffle mut+alloc
94 57 37 75.0 osh-native-souffle mut+alloc+free
148 131 17 49.3 osh-native-souffle mut+alloc+free+gc
159 134 25 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 5 1 2.9 bash -
7 5 2 3.3 zsh -
6 4 2 12.1 bumpleak/osh mut
6 4 3 12.4 _bin/cxx-opt+bumproot/osh mut
8 4 3 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.2 osh-native mut+alloc
9 4 5 10.1 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
10 8 2 8.5 osh-native mut+alloc+free+gc+exit
12 6 6 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 7 5 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 7 1 9.7 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
9 7 2 8.0 osh-native-souffle mut+alloc+free+gc
9 8 1 8.1 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 0 1.4 dash -
29 28 1 3.0 bash -
23 15 8 3.3 zsh -
18 14 4 32.1 bumpleak/osh mut
27 21 6 33.2 _bin/cxx-opt+bumproot/osh mut
28 23 5 31.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.3 osh-native mut+alloc
37 24 13 26.6 osh-native mut+alloc+free
28 26 2 8.1 osh-native mut+alloc+free+gc
29 28 1 7.9 osh-native mut+alloc+free+gc+exit
53 34 20 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 24 6 26.0 osh-native-souffle mut+alloc
31 22 9 26.2 osh-native-souffle mut+alloc+free
21 19 2 7.5 osh-native-souffle mut+alloc+free+gc
22 20 2 7.3 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
73 69 4 3.1 bash -
167 116 51 55.5 bumpleak/osh mut
182 127 55 57.9 _bin/cxx-opt+bumproot/osh mut
200 131 68 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
217 149 69 48.7 osh-native mut+alloc
221 146 76 50.4 osh-native mut+alloc+free
185 139 46 8.9 osh-native mut+alloc+free+gc
185 122 63 8.7 osh-native mut+alloc+free+gc+exit
235 152 83 64.6 _bin/cxx-opt+nopool/osh mut+alloc
211 164 46 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 143 62 48.2 osh-native-souffle mut+alloc
210 127 83 50.0 osh-native-souffle mut+alloc+free
174 121 53 8.4 osh-native-souffle mut+alloc+free+gc
174 121 53 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 5 3.5 dash -
19 9 10 4.3 bash -
17 8 10 3.5 zsh -
18 7 12 11.4 bumpleak/osh mut
21 10 11 12.6 _bin/cxx-opt+bumproot/osh mut
22 8 15 15.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 13 11.1 osh-native mut+alloc
22 8 15 11.3 osh-native mut+alloc+free
23 9 14 9.2 osh-native mut+alloc+free+gc
23 9 15 8.9 osh-native mut+alloc+free+gc+exit
25 11 14 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 16 9 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 12 10.6 osh-native-souffle mut+alloc
21 10 12 10.6 osh-native-souffle mut+alloc+free
21 10 12 8.8 osh-native-souffle mut+alloc+free+gc
22 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit