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 144 23 59 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 139 23 62 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.1 7.7 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 1 2.1 7.7 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 184 0 3 10.8 8.8 1,006,008 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 176 0 3 10.8 8.5 1,006,007 15,258 21 50,000 0 3,842 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.4 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 3 3 1.6 dash -
23 19 4 2.9 bash -
104 65 46 3.4 zsh -
17 8 8 28.3 bumpleak/osh mut
20 12 8 28.7 _bin/cxx-opt+bumproot/osh mut
22 15 7 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
35 31 4 18.1 osh-native mut+alloc+free+gc
36 32 4 18.0 osh-native mut+alloc+free+gc+exit
44 24 20 32.2 _bin/cxx-opt+nopool/osh mut+alloc
52 47 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.6 osh-native-souffle mut+alloc
28 12 16 25.3 osh-native-souffle mut+alloc+free
33 29 4 17.4 osh-native-souffle mut+alloc+free+gc
34 22 11 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
22 17 4 1.4 dash -
78 77 0 3.3 bash -
376 237 160 3.5 zsh -
49 41 8 84.1 bumpleak/osh mut
60 56 4 85.1 _bin/cxx-opt+bumproot/osh mut
71 59 12 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 70 27 73.5 osh-native mut+alloc
105 84 20 75.4 osh-native mut+alloc+free
144 128 16 49.7 osh-native mut+alloc+free+gc
151 127 24 50.3 osh-native mut+alloc+free+gc+exit
144 115 28 99.6 _bin/cxx-opt+nopool/osh mut+alloc
208 184 24 67.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 40 48 73.1 osh-native-souffle mut+alloc
96 72 24 75.0 osh-native-souffle mut+alloc+free
139 123 16 49.4 osh-native-souffle mut+alloc+free+gc
142 126 16 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.4 dash -
6 3 3 2.9 bash -
8 8 0 3.3 zsh -
6 0 6 12.0 bumpleak/osh mut
7 0 7 12.1 _bin/cxx-opt+bumproot/osh mut
7 7 0 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 9.8 osh-native mut+alloc
9 9 0 10.2 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.7 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 4 4 8.0 osh-native-souffle mut+alloc+free+gc
9 3 6 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 0 1.4 dash -
29 28 0 3.0 bash -
23 19 4 3.3 zsh -
18 14 5 31.3 bumpleak/osh mut
27 27 0 33.0 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.6 osh-native mut+alloc
38 34 4 26.6 osh-native mut+alloc+free
28 28 0 7.7 osh-native mut+alloc+free+gc
29 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 25 29 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 13 26.1 osh-native-souffle mut+alloc
31 19 12 26.0 osh-native-souffle mut+alloc+free
22 22 0 7.7 osh-native-souffle mut+alloc+free+gc
22 17 4 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
75 75 0 3.1 bash -
171 103 68 55.5 bumpleak/osh mut
183 126 57 55.5 _bin/cxx-opt+bumproot/osh mut
199 147 52 57.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 131 83 48.2 osh-native mut+alloc
223 159 64 50.0 osh-native mut+alloc+free
184 108 76 8.8 osh-native mut+alloc+free+gc
185 134 51 8.8 osh-native mut+alloc+free+gc+exit
236 140 96 64.0 _bin/cxx-opt+nopool/osh mut+alloc
212 164 48 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 131 75 47.8 osh-native-souffle mut+alloc
213 154 59 49.6 osh-native-souffle mut+alloc+free
176 132 44 8.5 osh-native-souffle mut+alloc+free+gc
176 132 44 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 9 1 3.5 dash -
19 16 4 4.3 bash -
18 6 12 3.5 zsh -
19 17 3 12.0 bumpleak/osh mut
19 7 12 13.8 _bin/cxx-opt+bumproot/osh mut
20 10 10 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 6 15 11.0 osh-native mut+alloc
22 17 5 11.1 osh-native mut+alloc+free
22 19 4 9.2 osh-native mut+alloc+free+gc
23 13 11 9.0 osh-native mut+alloc+free+gc+exit
25 17 8 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 19 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 13 7 10.7 osh-native-souffle mut+alloc
21 16 6 10.7 osh-native-souffle mut+alloc+free
21 9 12 8.4 osh-native-souffle mut+alloc+free+gc
21 14 8 8.7 osh-native-souffle mut+alloc+free+gc+exit