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 4 10 12.0 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 32 3 9 12.0 17.7 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 145 22 60 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 132 21 56 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 7.9 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 29 0 2 2.2 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 21 0 1 2.2 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 186 0 4 10.9 8.7 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 172 0 3 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.0 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 20 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 5 1 1.4 dash -
23 22 1 3.1 bash -
100 54 52 3.4 zsh -
16 13 3 28.9 bumpleak/osh mut
20 17 3 29.5 _bin/cxx-opt+bumproot/osh mut
22 16 6 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.2 osh-native mut+alloc
31 18 13 25.4 osh-native mut+alloc+free
35 27 8 17.8 osh-native mut+alloc+free+gc
36 31 5 17.8 osh-native mut+alloc+free+gc+exit
42 32 10 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 38 10 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 16 10 24.6 osh-native-souffle mut+alloc
28 24 4 25.3 osh-native-souffle mut+alloc+free
32 27 5 17.7 osh-native-souffle mut+alloc+free+gc
32 25 7 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 -
80 79 1 3.1 bash -
380 191 212 3.4 zsh -
50 43 7 85.9 bumpleak/osh mut
60 50 10 85.9 _bin/cxx-opt+bumproot/osh mut
71 58 13 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 62 34 73.7 osh-native mut+alloc
104 70 35 75.2 osh-native mut+alloc+free
145 120 25 49.8 osh-native mut+alloc+free+gc
151 134 17 50.5 osh-native mut+alloc+free+gc+exit
139 98 41 99.0 _bin/cxx-opt+nopool/osh mut+alloc
199 166 33 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 49 39 73.1 osh-native-souffle mut+alloc
97 59 37 74.8 osh-native-souffle mut+alloc+free
132 113 19 49.4 osh-native-souffle mut+alloc+free+gc
137 113 24 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.3 dash -
5 5 0 2.9 bash -
7 5 2 3.1 zsh -
6 4 2 10.8 bumpleak/osh mut
7 6 1 12.0 _bin/cxx-opt+bumproot/osh mut
7 6 1 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 7 1 10.1 osh-native mut+alloc
9 5 4 10.0 osh-native mut+alloc+free
9 8 1 8.5 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 9 3 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 5 3 9.6 osh-native-souffle mut+alloc+free
9 6 3 7.9 osh-native-souffle mut+alloc+free+gc
9 7 2 7.9 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 9 1 1.4 dash -
28 27 1 3.0 bash -
23 18 5 3.1 zsh -
18 15 3 31.5 bumpleak/osh mut
25 21 4 31.9 _bin/cxx-opt+bumproot/osh mut
27 22 6 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 27 9 26.5 osh-native mut+alloc
37 26 10 26.6 osh-native mut+alloc+free
29 27 2 8.0 osh-native mut+alloc+free+gc
28 27 1 8.1 osh-native mut+alloc+free+gc+exit
53 31 22 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 11 26.0 osh-native-souffle mut+alloc
31 24 7 26.1 osh-native-souffle mut+alloc+free
21 19 3 7.6 osh-native-souffle mut+alloc+free+gc
21 17 4 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
73 70 3 3.0 bash -
166 117 49 56.8 bumpleak/osh mut
183 134 49 57.5 _bin/cxx-opt+bumproot/osh mut
197 137 60 58.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 145 68 48.8 osh-native mut+alloc
220 152 68 50.4 osh-native mut+alloc+free
186 141 45 8.7 osh-native mut+alloc+free+gc
182 129 53 8.8 osh-native mut+alloc+free+gc+exit
235 155 80 64.4 _bin/cxx-opt+nopool/osh mut+alloc
208 150 58 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 134 69 48.1 osh-native-souffle mut+alloc
211 138 73 49.9 osh-native-souffle mut+alloc+free
172 133 40 8.4 osh-native-souffle mut+alloc+free+gc
174 131 43 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
9 4 5 3.5 dash -
19 11 8 4.5 bash -
17 6 11 3.4 zsh -
17 8 10 11.6 bumpleak/osh mut
19 10 9 12.1 _bin/cxx-opt+bumproot/osh mut
21 11 10 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 10.9 osh-native mut+alloc
21 6 16 11.3 osh-native mut+alloc+free
21 9 12 9.0 osh-native mut+alloc+free+gc
22 9 14 9.2 osh-native mut+alloc+free+gc+exit
24 14 10 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 13 12 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 8 11 10.6 osh-native-souffle mut+alloc
20 14 7 10.9 osh-native-souffle mut+alloc+free
20 10 11 8.7 osh-native-souffle mut+alloc+free+gc
21 13 8 8.7 osh-native-souffle mut+alloc+free+gc+exit