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.0 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 152 24 68 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 131 21 57 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 181 0 4 10.9 8.9 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 176 0 3 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.0 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 20 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 6 0 1.6 dash -
23 21 2 3.0 bash -
100 56 50 3.4 zsh -
17 13 3 28.3 bumpleak/osh mut
20 17 3 28.9 _bin/cxx-opt+bumproot/osh mut
23 18 5 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 24 5 25.4 osh-native mut+alloc
31 23 8 25.6 osh-native mut+alloc+free
36 29 8 18.0 osh-native mut+alloc+free+gc
36 27 9 18.0 osh-native mut+alloc+free+gc+exit
42 33 9 32.4 _bin/cxx-opt+nopool/osh mut+alloc
56 50 6 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 9 24.8 osh-native-souffle mut+alloc
28 22 6 25.4 osh-native-souffle mut+alloc+free
32 24 8 17.7 osh-native-souffle mut+alloc+free+gc
33 26 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.1 bash -
365 209 177 3.4 zsh -
48 39 9 85.2 bumpleak/osh mut
59 50 9 86.3 _bin/cxx-opt+bumproot/osh mut
71 63 8 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 56 39 73.4 osh-native mut+alloc
104 74 29 75.2 osh-native mut+alloc+free
152 126 26 49.8 osh-native mut+alloc+free+gc
160 138 22 50.3 osh-native mut+alloc+free+gc+exit
138 100 38 98.9 _bin/cxx-opt+nopool/osh mut+alloc
198 166 32 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 49 38 73.1 osh-native-souffle mut+alloc
94 59 35 74.8 osh-native-souffle mut+alloc+free
131 117 14 49.4 osh-native-souffle mut+alloc+free+gc
137 118 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 2 0 1.3 dash -
5 4 2 2.9 bash -
7 6 1 3.3 zsh -
6 2 4 11.4 bumpleak/osh mut
7 7 0 11.3 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 2 7 10.0 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 8 1 8.5 osh-native mut+alloc+free+gc
9 8 1 8.4 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 6 2 9.7 osh-native-souffle mut+alloc
8 3 5 9.8 osh-native-souffle mut+alloc+free
9 5 3 7.9 osh-native-souffle mut+alloc+free+gc
9 5 4 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 -
28 27 1 2.9 bash -
23 18 5 3.3 zsh -
18 14 4 31.3 bumpleak/osh mut
26 24 2 32.1 _bin/cxx-opt+bumproot/osh mut
28 23 6 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 10 26.2 osh-native mut+alloc
38 27 11 26.3 osh-native mut+alloc+free
29 29 0 8.0 osh-native mut+alloc+free+gc
28 26 2 7.7 osh-native mut+alloc+free+gc+exit
53 35 18 36.1 _bin/cxx-opt+nopool/osh mut+alloc
39 35 4 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 19 11 25.8 osh-native-souffle mut+alloc
30 23 7 26.2 osh-native-souffle mut+alloc+free
21 18 3 7.6 osh-native-souffle mut+alloc+free+gc
21 20 1 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 71 3 3.1 bash -
166 108 58 56.6 bumpleak/osh mut
179 116 63 56.8 _bin/cxx-opt+bumproot/osh mut
195 137 58 58.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 142 71 48.6 osh-native mut+alloc
220 144 76 50.6 osh-native mut+alloc+free
181 136 45 8.9 osh-native mut+alloc+free+gc
182 138 44 8.8 osh-native mut+alloc+free+gc+exit
232 147 85 64.4 _bin/cxx-opt+nopool/osh mut+alloc
211 162 49 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
202 133 68 48.2 osh-native-souffle mut+alloc
208 143 65 50.0 osh-native-souffle mut+alloc+free
176 132 44 8.5 osh-native-souffle mut+alloc+free+gc
174 129 45 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.4 dash -
19 10 9 4.3 bash -
17 5 12 3.4 zsh -
19 7 12 12.1 bumpleak/osh mut
20 10 11 12.8 _bin/cxx-opt+bumproot/osh mut
20 10 10 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 14 11.1 osh-native mut+alloc
22 9 13 11.3 osh-native mut+alloc+free
21 11 11 9.0 osh-native mut+alloc+free+gc
22 12 11 9.0 osh-native mut+alloc+free+gc+exit
24 14 10 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 14 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 6 14 10.6 osh-native-souffle mut+alloc
20 13 8 10.7 osh-native-souffle mut+alloc+free
20 8 13 8.5 osh-native-souffle mut+alloc+free+gc
21 10 11 8.5 osh-native-souffle mut+alloc+free+gc+exit