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 33 3 10 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 146 23 61 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 135 22 59 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.7 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.9 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 1 2.1 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.8 8.7 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 176 0 3 10.8 8.3 1,006,004 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.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 6 0 1.6 dash -
24 19 4 3.1 bash -
115 71 50 3.4 zsh -
16 12 4 28.7 bumpleak/osh mut
20 16 4 28.6 _bin/cxx-opt+bumproot/osh mut
23 19 4 28.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
31 16 16 25.7 osh-native mut+alloc+free
36 22 13 17.8 osh-native mut+alloc+free+gc
39 35 4 18.2 osh-native mut+alloc+free+gc+exit
44 20 24 32.1 _bin/cxx-opt+nopool/osh mut+alloc
48 44 4 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 25.0 osh-native-souffle mut+alloc
28 20 8 25.3 osh-native-souffle mut+alloc+free
33 28 4 17.6 osh-native-souffle mut+alloc+free+gc
33 29 4 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 21 0 1.6 dash -
78 78 0 3.1 bash -
377 231 167 3.5 zsh -
48 36 12 85.2 bumpleak/osh mut
59 51 8 86.2 _bin/cxx-opt+bumproot/osh mut
71 51 20 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 61 35 73.5 osh-native mut+alloc
104 60 44 75.4 osh-native mut+alloc+free
146 122 24 49.7 osh-native mut+alloc+free+gc
158 134 24 50.5 osh-native mut+alloc+free+gc+exit
138 79 59 99.1 _bin/cxx-opt+nopool/osh mut+alloc
209 160 48 67.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 47 39 73.2 osh-native-souffle mut+alloc
96 72 24 75.1 osh-native-souffle mut+alloc+free
135 119 16 49.4 osh-native-souffle mut+alloc+free+gc
140 119 20 49.9 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 0 2 1.3 dash -
6 6 0 2.9 bash -
8 4 4 3.1 zsh -
6 6 0 11.4 bumpleak/osh mut
7 7 0 12.0 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
8 8 0 10.4 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.6 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 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 10 0 1.4 dash -
29 29 0 2.9 bash -
23 23 0 3.3 zsh -
19 15 4 31.8 bumpleak/osh mut
27 17 9 32.5 _bin/cxx-opt+bumproot/osh mut
27 27 0 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.3 osh-native mut+alloc
37 26 11 26.6 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
54 38 15 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
31 19 11 26.2 osh-native-souffle mut+alloc+free
22 21 0 7.6 osh-native-souffle mut+alloc+free+gc
21 21 0 7.6 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 74 0 3.1 bash -
166 97 69 55.5 bumpleak/osh mut
184 132 52 56.5 _bin/cxx-opt+bumproot/osh mut
196 116 80 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 137 76 48.2 osh-native mut+alloc
220 148 72 49.8 osh-native mut+alloc+free
184 128 56 8.7 osh-native mut+alloc+free+gc
186 134 53 8.8 osh-native mut+alloc+free+gc+exit
235 166 69 65.4 _bin/cxx-opt+nopool/osh mut+alloc
213 161 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 135 72 47.6 osh-native-souffle mut+alloc
214 137 77 49.6 osh-native-souffle mut+alloc+free
176 136 40 8.3 osh-native-souffle mut+alloc+free+gc
177 121 56 8.3 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 5 5 3.5 dash -
20 12 9 4.5 bash -
17 10 8 3.4 zsh -
20 11 9 12.2 bumpleak/osh mut
20 17 4 12.7 _bin/cxx-opt+bumproot/osh mut
20 14 7 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.0 osh-native mut+alloc
22 17 6 11.1 osh-native mut+alloc+free
22 19 4 9.0 osh-native mut+alloc+free+gc
23 18 5 8.9 osh-native mut+alloc+free+gc+exit
24 13 12 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 19 6 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 13 7 10.5 osh-native-souffle mut+alloc
21 17 4 10.7 osh-native-souffle mut+alloc+free
21 20 1 8.7 osh-native-souffle mut+alloc+free+gc
22 20 3 8.8 osh-native-souffle mut+alloc+free+gc+exit