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 18.1 476,772 1,282 6 406,630 5 203,315 osh-native
parse.configure-cpython 34 4 10 12.0 17.4 476,772 1,282 6 406,620 5 203,310 osh-native-souffle
parse.configure-coreutils 165 25 77 44.5 49.8 1,653,360 4,764 12 1,025,552 6 764,319 osh-native
parse.configure-coreutils 147 25 71 44.5 49.4 1,653,359 4,764 12 1,025,542 6 764,314 osh-native-souffle
parse.abuild 10 1 1 2.6 8.4 101,963 180 2 75,056 1 37,528 osh-native
parse.abuild 8 1 1 2.6 8.1 101,963 180 2 75,046 1 37,523 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,728 22,608 12 50,000 0 2,934 osh-native
ex.compute-fib 22 0 1 2.2 7.7 579,728 22,608 12 50,000 0 2,929 osh-native-souffle
ex.bashcomp-parse-help 185 0 4 11.1 8.9 1,031,050 15,258 22 50,000 0 3,939 osh-native
ex.bashcomp-parse-help 177 0 4 11.1 8.4 1,031,049 15,258 22 50,000 0 3,992 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,259 277 3 85,278 1 42,639 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,259 277 3 85,268 1 42,634 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 -
103 61 49 3.4 zsh -
16 13 3 29.4 bumpleak/osh mut
19 15 4 29.2 _bin/cxx-opt+bumproot/osh mut
22 18 5 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.3 osh-native mut+alloc
32 18 14 25.7 osh-native mut+alloc+free
36 31 5 18.1 osh-native mut+alloc+free+gc
40 34 5 18.0 osh-native mut+alloc+free+gc+exit
42 30 13 32.5 _bin/cxx-opt+nopool/osh mut+alloc
49 36 13 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 16 11 24.9 osh-native-souffle mut+alloc
29 15 14 25.3 osh-native-souffle mut+alloc+free
34 26 8 17.4 osh-native-souffle mut+alloc+free+gc
34 29 5 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 1 1.4 dash -
77 74 3 3.1 bash -
367 191 199 3.5 zsh -
49 40 9 85.8 bumpleak/osh mut
60 53 7 85.6 _bin/cxx-opt+bumproot/osh mut
70 54 15 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 58 38 73.5 osh-native mut+alloc
105 68 37 75.4 osh-native mut+alloc+free
165 135 30 49.8 osh-native mut+alloc+free+gc
167 146 20 50.5 osh-native mut+alloc+free+gc+exit
138 103 35 98.9 _bin/cxx-opt+nopool/osh mut+alloc
244 224 20 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 46 40 73.1 osh-native-souffle mut+alloc
95 63 32 75.1 osh-native-souffle mut+alloc+free
147 120 27 49.4 osh-native-souffle mut+alloc+free+gc
154 134 20 50.2 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 3.0 bash -
8 4 4 3.3 zsh -
6 4 2 11.6 bumpleak/osh mut
7 5 2 12.2 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 6 3 10.1 osh-native mut+alloc
9 5 4 10.1 osh-native mut+alloc+free
10 6 4 8.4 osh-native mut+alloc+free+gc
9 8 1 8.5 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 6 6 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.6 osh-native-souffle mut+alloc
8 5 4 9.8 osh-native-souffle mut+alloc+free
8 5 3 8.1 osh-native-souffle mut+alloc+free+gc
9 5 4 8.1 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 8 2 1.4 dash -
29 27 2 3.0 bash -
23 20 3 3.3 zsh -
19 14 5 31.3 bumpleak/osh mut
25 23 2 31.7 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.3 osh-native mut+alloc
38 26 12 26.7 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
29 27 2 7.9 osh-native mut+alloc+free+gc+exit
54 40 13 36.0 _bin/cxx-opt+nopool/osh mut+alloc
39 35 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 26.0 osh-native-souffle mut+alloc
31 20 11 26.1 osh-native-souffle mut+alloc+free
22 20 2 7.7 osh-native-souffle mut+alloc+free+gc
22 19 4 7.7 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 68 5 3.0 bash -
166 110 56 57.2 bumpleak/osh mut
180 121 59 57.4 _bin/cxx-opt+bumproot/osh mut
194 140 54 58.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 143 73 49.3 osh-native mut+alloc
221 144 77 51.2 osh-native mut+alloc+free
185 131 54 8.9 osh-native mut+alloc+free+gc
186 133 53 8.9 osh-native mut+alloc+free+gc+exit
234 162 72 65.2 _bin/cxx-opt+nopool/osh mut+alloc
213 160 53 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 125 79 48.9 osh-native-souffle mut+alloc
214 137 77 50.6 osh-native-souffle mut+alloc+free
177 126 52 8.4 osh-native-souffle mut+alloc+free+gc
176 115 61 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 3 7 3.5 dash -
19 11 9 4.5 bash -
17 11 7 3.5 zsh -
19 8 12 12.6 bumpleak/osh mut
19 9 11 13.8 _bin/cxx-opt+bumproot/osh mut
21 10 12 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.1 osh-native mut+alloc
22 10 13 11.1 osh-native mut+alloc+free
22 11 11 9.2 osh-native mut+alloc+free+gc
23 15 8 9.2 osh-native mut+alloc+free+gc+exit
24 14 10 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 12 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 10 10.7 osh-native-souffle mut+alloc
21 7 14 10.7 osh-native-souffle mut+alloc+free
21 9 12 8.7 osh-native-souffle mut+alloc+free+gc
27 16 11 8.7 osh-native-souffle mut+alloc+free+gc+exit