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 3 9 12.0 17.7 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 34 5 11 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 151 22 65 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 138 23 63 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.4 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 8.1 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 29 0 1 2.2 7.9 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.2 7.5 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 184 0 3 10.9 8.8 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 177 0 4 10.9 8.3 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 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
6 5 1 1.6 dash -
23 22 1 3.1 bash -
100 61 45 3.4 zsh -
16 13 3 29.2 bumpleak/osh mut
20 17 3 29.5 _bin/cxx-opt+bumproot/osh mut
22 18 4 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 25.3 osh-native mut+alloc
31 21 10 25.7 osh-native mut+alloc+free
36 32 4 17.7 osh-native mut+alloc+free+gc
36 30 6 18.0 osh-native mut+alloc+free+gc+exit
42 29 13 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 38 9 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 12 14 24.8 osh-native-souffle mut+alloc
28 16 12 25.2 osh-native-souffle mut+alloc+free
34 29 5 17.4 osh-native-souffle mut+alloc+free+gc
34 27 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 20 1 1.6 dash -
78 77 1 3.3 bash -
365 203 185 3.5 zsh -
50 43 7 84.9 bumpleak/osh mut
60 51 9 86.3 _bin/cxx-opt+bumproot/osh mut
69 63 6 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 71 26 73.5 osh-native mut+alloc
105 77 28 75.2 osh-native mut+alloc+free
151 132 19 49.8 osh-native mut+alloc+free+gc
150 124 23 50.3 osh-native mut+alloc+free+gc+exit
139 91 47 99.0 _bin/cxx-opt+nopool/osh mut+alloc
211 183 28 66.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
84 44 40 73.3 osh-native-souffle mut+alloc
93 64 29 74.8 osh-native-souffle mut+alloc+free
138 123 15 49.4 osh-native-souffle mut+alloc+free+gc
141 111 30 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.4 dash -
5 4 1 2.9 bash -
7 4 3 3.3 zsh -
6 4 2 12.1 bumpleak/osh mut
6 3 4 12.5 _bin/cxx-opt+bumproot/osh mut
8 5 2 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 4 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 7 2 8.4 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 3 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 2 9.4 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 6 3 8.1 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 9 1 1.4 dash -
29 25 4 3.0 bash -
23 18 5 3.4 zsh -
18 12 6 32.1 bumpleak/osh mut
26 21 5 31.5 _bin/cxx-opt+bumproot/osh mut
28 25 3 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 25 11 26.3 osh-native mut+alloc
38 29 9 26.5 osh-native mut+alloc+free
29 27 2 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 34 19 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 17 12 25.8 osh-native-souffle mut+alloc
31 18 13 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.5 osh-native-souffle mut+alloc+free+gc
21 20 1 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 69 4 3.0 bash -
167 105 62 56.1 bumpleak/osh mut
179 126 53 57.2 _bin/cxx-opt+bumproot/osh mut
196 147 49 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 130 82 48.7 osh-native mut+alloc
219 143 76 50.6 osh-native mut+alloc+free
184 134 51 8.8 osh-native mut+alloc+free+gc
182 128 54 8.8 osh-native mut+alloc+free+gc+exit
234 156 78 64.4 _bin/cxx-opt+nopool/osh mut+alloc
212 169 43 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 118 87 48.3 osh-native-souffle mut+alloc
210 137 73 50.2 osh-native-souffle mut+alloc+free
177 135 42 8.3 osh-native-souffle mut+alloc+free+gc
174 117 57 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
9 6 3 3.4 dash -
19 10 9 4.5 bash -
17 6 12 3.4 zsh -
17 10 8 13.3 bumpleak/osh mut
21 8 13 13.3 _bin/cxx-opt+bumproot/osh mut
20 10 10 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 10 11.0 osh-native mut+alloc
22 9 13 11.3 osh-native mut+alloc+free
21 12 10 9.0 osh-native mut+alloc+free+gc
22 12 11 9.0 osh-native mut+alloc+free+gc+exit
24 12 12 12.8 _bin/cxx-opt+nopool/osh mut+alloc
27 16 11 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 6 13 10.6 osh-native-souffle mut+alloc
21 11 10 10.9 osh-native-souffle mut+alloc+free
21 12 10 8.5 osh-native-souffle mut+alloc+free+gc
21 12 10 8.8 osh-native-souffle mut+alloc+free+gc+exit