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 9 12.0 18.1 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 147 23 61 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 138 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.8 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 29 0 2 2.1 7.7 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 21 0 1 2.1 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 183 0 3 10.8 9.0 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.0 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 6 0 1.6 dash -
23 23 0 3.0 bash -
105 47 64 3.4 zsh -
17 12 4 28.5 bumpleak/osh mut
19 19 0 29.8 _bin/cxx-opt+bumproot/osh mut
23 15 8 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 8 25.2 osh-native mut+alloc
31 13 18 25.7 osh-native mut+alloc+free
36 20 16 18.1 osh-native mut+alloc+free+gc
36 32 4 18.1 osh-native mut+alloc+free+gc+exit
43 26 17 32.8 _bin/cxx-opt+nopool/osh mut+alloc
48 36 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 25.0 osh-native-souffle mut+alloc
28 20 8 25.2 osh-native-souffle mut+alloc+free
32 24 8 17.4 osh-native-souffle mut+alloc+free+gc
33 32 0 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 18 4 1.6 dash -
94 90 4 3.1 bash -
380 207 195 3.7 zsh -
50 50 0 84.6 bumpleak/osh mut
59 54 4 85.7 _bin/cxx-opt+bumproot/osh mut
70 54 16 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 77 20 73.5 osh-native mut+alloc
105 81 24 75.5 osh-native mut+alloc+free
147 131 16 49.8 osh-native mut+alloc+free+gc
154 125 28 50.6 osh-native mut+alloc+free+gc+exit
138 86 51 98.2 _bin/cxx-opt+nopool/osh mut+alloc
206 182 24 66.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 63 23 73.0 osh-native-souffle mut+alloc
96 71 24 75.0 osh-native-souffle mut+alloc+free
138 118 20 49.4 osh-native-souffle mut+alloc+free+gc
153 120 32 49.8 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 4 4 3.3 zsh -
6 6 0 11.6 bumpleak/osh mut
6 6 0 12.6 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 8 0 9.8 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 0 9 8.8 osh-native mut+alloc+free+gc
9 4 4 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 0 8 9.8 osh-native-souffle mut+alloc+free
9 9 0 7.9 osh-native-souffle mut+alloc+free+gc
9 4 4 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.6 dash -
29 29 0 2.9 bash -
24 20 4 3.3 zsh -
18 18 0 31.5 bumpleak/osh mut
26 21 4 32.3 _bin/cxx-opt+bumproot/osh mut
28 20 8 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.2 osh-native mut+alloc
37 33 4 26.6 osh-native mut+alloc+free
29 28 0 7.7 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
55 35 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 25 4 26.0 osh-native-souffle mut+alloc
31 19 11 26.1 osh-native-souffle mut+alloc+free
21 17 4 7.6 osh-native-souffle mut+alloc+free+gc
21 21 0 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
73 73 0 3.0 bash -
169 108 60 56.4 bumpleak/osh mut
182 117 65 55.7 _bin/cxx-opt+bumproot/osh mut
199 139 60 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 136 76 48.0 osh-native mut+alloc
222 178 44 50.0 osh-native mut+alloc+free
183 146 36 9.0 osh-native mut+alloc+free+gc
182 111 71 8.9 osh-native mut+alloc+free+gc+exit
234 142 91 64.4 _bin/cxx-opt+nopool/osh mut+alloc
214 173 40 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
209 138 71 47.6 osh-native-souffle mut+alloc
215 123 91 49.5 osh-native-souffle mut+alloc+free
176 124 52 8.5 osh-native-souffle mut+alloc+free+gc
178 129 48 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
15 13 1 3.4 dash -
20 10 10 4.3 bash -
19 8 12 3.5 zsh -
20 7 13 12.0 bumpleak/osh mut
21 16 6 13.4 _bin/cxx-opt+bumproot/osh mut
21 14 8 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 17 5 11.0 osh-native mut+alloc
22 21 2 11.1 osh-native mut+alloc+free
22 18 4 9.0 osh-native mut+alloc+free+gc
23 21 2 9.2 osh-native mut+alloc+free+gc+exit
25 23 2 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 24 2 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 10 10.6 osh-native-souffle mut+alloc
21 13 8 10.6 osh-native-souffle mut+alloc+free
21 19 2 8.8 osh-native-souffle mut+alloc+free+gc
21 19 3 8.5 osh-native-souffle mut+alloc+free+gc+exit