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.1 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 32 3 10 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 145 23 58 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 138 24 62 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 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 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.6 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 174 0 4 10.9 8.5 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.2 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 6 0 1.4 dash -
23 22 1 3.1 bash -
101 61 46 3.4 zsh -
16 12 4 29.2 bumpleak/osh mut
19 15 4 30.2 _bin/cxx-opt+bumproot/osh mut
22 19 3 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 13 25.2 osh-native mut+alloc
31 15 16 25.4 osh-native mut+alloc+free
35 27 8 18.1 osh-native mut+alloc+free+gc
36 29 7 18.0 osh-native mut+alloc+free+gc+exit
42 26 15 32.5 _bin/cxx-opt+nopool/osh mut+alloc
47 39 8 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 14 13 24.8 osh-native-souffle mut+alloc
28 19 9 25.4 osh-native-souffle mut+alloc+free
32 26 7 17.6 osh-native-souffle mut+alloc+free+gc
34 27 6 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.1 bash -
362 206 177 3.5 zsh -
48 38 10 85.3 bumpleak/osh mut
60 50 10 84.7 _bin/cxx-opt+bumproot/osh mut
70 52 18 85.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 66 31 73.7 osh-native mut+alloc
106 68 38 75.5 osh-native mut+alloc+free
145 119 26 49.8 osh-native mut+alloc+free+gc
148 128 20 50.4 osh-native mut+alloc+free+gc+exit
136 89 47 99.0 _bin/cxx-opt+nopool/osh mut+alloc
213 184 29 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 53 34 73.1 osh-native-souffle mut+alloc
96 58 38 75.0 osh-native-souffle mut+alloc+free
138 110 28 49.4 osh-native-souffle mut+alloc+free+gc
144 125 19 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 5 0 2.9 bash -
7 5 2 3.3 zsh -
6 3 3 10.9 bumpleak/osh mut
6 4 2 10.8 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.0 osh-native mut+alloc
8 5 3 10.1 osh-native mut+alloc+free
9 4 5 8.5 osh-native mut+alloc+free+gc
9 7 2 8.5 osh-native mut+alloc+free+gc+exit
12 6 6 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 4 9.7 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 6 3 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 -
28 26 2 2.9 bash -
23 21 2 3.3 zsh -
18 15 3 31.3 bumpleak/osh mut
27 25 2 32.9 _bin/cxx-opt+bumproot/osh mut
28 22 6 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 21 15 26.2 osh-native mut+alloc
38 27 11 26.5 osh-native mut+alloc+free
28 25 3 7.9 osh-native mut+alloc+free+gc
28 24 4 8.1 osh-native mut+alloc+free+gc+exit
54 41 13 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 36 1 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 7 26.1 osh-native-souffle mut+alloc
31 19 12 26.2 osh-native-souffle mut+alloc+free
22 19 3 7.6 osh-native-souffle mut+alloc+free+gc
22 21 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 66 7 3.1 bash -
165 125 40 56.0 bumpleak/osh mut
183 127 56 57.5 _bin/cxx-opt+bumproot/osh mut
196 132 64 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 142 71 48.7 osh-native mut+alloc
220 143 77 50.6 osh-native mut+alloc+free
184 136 48 8.8 osh-native mut+alloc+free+gc
182 130 51 8.9 osh-native mut+alloc+free+gc+exit
233 159 74 64.4 _bin/cxx-opt+nopool/osh mut+alloc
211 157 54 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 137 67 48.2 osh-native-souffle mut+alloc
211 132 79 50.2 osh-native-souffle mut+alloc+free
174 118 57 8.5 osh-native-souffle mut+alloc+free+gc
174 136 38 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
9 3 6 3.3 dash -
19 8 12 4.5 bash -
17 7 11 3.5 zsh -
18 9 10 12.3 bumpleak/osh mut
21 12 9 13.3 _bin/cxx-opt+bumproot/osh mut
19 8 12 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 8 13 11.1 osh-native mut+alloc
21 12 10 11.1 osh-native mut+alloc+free
21 10 12 9.2 osh-native mut+alloc+free+gc
22 10 13 9.0 osh-native mut+alloc+free+gc+exit
24 14 10 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 11 13 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 7 13 10.7 osh-native-souffle mut+alloc
20 7 14 10.9 osh-native-souffle mut+alloc+free
20 10 11 8.7 osh-native-souffle mut+alloc+free+gc
21 12 10 8.3 osh-native-souffle mut+alloc+free+gc+exit