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.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 10 12.0 17.7 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 153 24 67 44.5 49.6 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 134 22 57 44.5 49.5 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 8 1 2 2.4 7.9 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 27 0 1 2.1 8.0 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 181 0 3 10.8 8.8 1,006,008 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 177 0 3 10.8 8.4 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.5 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
7 3 3 1.6 dash -
23 23 0 3.0 bash -
106 58 55 3.3 zsh -
17 10 7 29.7 bumpleak/osh mut
19 15 4 29.6 _bin/cxx-opt+bumproot/osh mut
23 18 5 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 8 25.2 osh-native mut+alloc
31 22 9 25.8 osh-native mut+alloc+free
35 27 8 18.0 osh-native mut+alloc+free+gc
35 27 8 18.1 osh-native mut+alloc+free+gc+exit
44 32 12 32.0 _bin/cxx-opt+nopool/osh mut+alloc
49 37 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 11 15 24.9 osh-native-souffle mut+alloc
29 14 14 25.3 osh-native-souffle mut+alloc+free
33 22 11 17.7 osh-native-souffle mut+alloc+free+gc
33 22 11 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
22 21 0 1.6 dash -
77 77 0 3.1 bash -
377 218 180 3.7 zsh -
48 36 12 85.6 bumpleak/osh mut
58 49 8 85.5 _bin/cxx-opt+bumproot/osh mut
70 49 20 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 62 35 73.5 osh-native mut+alloc
105 78 27 75.4 osh-native mut+alloc+free
153 125 27 49.6 osh-native mut+alloc+free+gc
147 123 24 50.5 osh-native mut+alloc+free+gc+exit
138 65 73 98.6 _bin/cxx-opt+nopool/osh mut+alloc
203 167 36 68.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 64 24 73.1 osh-native-souffle mut+alloc
97 65 32 74.8 osh-native-souffle mut+alloc+free
134 110 24 49.5 osh-native-souffle mut+alloc+free+gc
137 108 28 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 3.0 bash -
8 4 4 3.3 zsh -
6 3 3 11.7 bumpleak/osh mut
7 4 4 12.2 _bin/cxx-opt+bumproot/osh mut
7 3 3 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.0 osh-native mut+alloc
8 8 0 10.1 osh-native mut+alloc+free
9 4 4 8.5 osh-native mut+alloc+free+gc
9 6 3 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.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 8 0 9.7 osh-native-souffle mut+alloc+free
8 8 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 -
28 24 4 2.6 bash -
23 11 11 3.3 zsh -
19 19 0 31.8 bumpleak/osh mut
26 21 4 32.3 _bin/cxx-opt+bumproot/osh mut
27 8 19 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.2 osh-native mut+alloc
37 32 4 26.6 osh-native mut+alloc+free
27 27 0 8.0 osh-native mut+alloc+free+gc
28 27 0 8.0 osh-native mut+alloc+free+gc+exit
54 31 23 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 13 17 26.0 osh-native-souffle mut+alloc
31 19 11 26.1 osh-native-souffle mut+alloc+free
21 14 7 7.6 osh-native-souffle mut+alloc+free+gc
22 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
74 69 4 3.3 bash -
169 112 56 56.2 bumpleak/osh mut
182 139 44 56.1 _bin/cxx-opt+bumproot/osh mut
196 143 52 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 128 84 48.2 osh-native mut+alloc
218 149 69 50.0 osh-native mut+alloc+free
181 121 60 8.8 osh-native mut+alloc+free+gc
184 132 52 8.9 osh-native mut+alloc+free+gc+exit
237 120 116 64.5 _bin/cxx-opt+nopool/osh mut+alloc
212 152 60 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 140 64 47.6 osh-native-souffle mut+alloc
214 142 71 49.5 osh-native-souffle mut+alloc+free
177 125 52 8.4 osh-native-souffle mut+alloc+free+gc
175 135 40 8.5 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
11 8 2 3.5 dash -
20 17 3 4.3 bash -
18 16 2 3.4 zsh -
19 15 4 12.3 bumpleak/osh mut
20 13 8 14.7 _bin/cxx-opt+bumproot/osh mut
21 16 6 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.0 osh-native mut+alloc
22 13 9 11.1 osh-native mut+alloc+free
22 12 10 9.0 osh-native mut+alloc+free+gc
22 21 2 9.2 osh-native mut+alloc+free+gc+exit
25 19 6 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 18 3 10.6 osh-native-souffle mut+alloc
21 21 1 10.7 osh-native-souffle mut+alloc+free
21 16 5 8.5 osh-native-souffle mut+alloc+free+gc
21 17 5 8.7 osh-native-souffle mut+alloc+free+gc+exit