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.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 10 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 146 26 61 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 139 28 65 44.5 49.3 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 29 0 1 2.2 8.0 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 185 0 4 10.9 8.8 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 173 0 4 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 22 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
7 7 0 1.6 dash -
24 24 0 3.0 bash -
101 61 48 3.4 zsh -
16 11 5 28.7 bumpleak/osh mut
20 16 4 29.9 _bin/cxx-opt+bumproot/osh mut
22 14 8 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 25.3 osh-native mut+alloc
32 22 10 25.6 osh-native mut+alloc+free
35 29 6 18.0 osh-native mut+alloc+free+gc
36 28 8 18.1 osh-native mut+alloc+free+gc+exit
43 25 18 32.5 _bin/cxx-opt+nopool/osh mut+alloc
47 36 11 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 13 14 24.9 osh-native-souffle mut+alloc
28 17 11 25.3 osh-native-souffle mut+alloc+free
33 25 8 17.6 osh-native-souffle mut+alloc+free+gc
33 26 8 17.8 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 -
78 75 3 3.1 bash -
359 207 173 3.5 zsh -
50 37 13 86.1 bumpleak/osh mut
61 52 10 86.1 _bin/cxx-opt+bumproot/osh mut
71 60 11 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 67 31 73.5 osh-native mut+alloc
107 72 36 75.4 osh-native mut+alloc+free
146 115 31 49.7 osh-native mut+alloc+free+gc
162 135 27 50.5 osh-native mut+alloc+free+gc+exit
138 83 55 98.9 _bin/cxx-opt+nopool/osh mut+alloc
221 195 26 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 53 34 73.1 osh-native-souffle mut+alloc
98 57 41 75.0 osh-native-souffle mut+alloc+free
139 120 19 49.3 osh-native-souffle mut+alloc+free+gc
143 110 33 49.9 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 3 4 3.3 zsh -
6 5 1 12.3 bumpleak/osh mut
6 4 2 12.6 _bin/cxx-opt+bumproot/osh mut
8 6 2 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.0 osh-native mut+alloc
9 6 2 10.0 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 5 4 8.5 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.7 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
9 6 3 8.0 osh-native-souffle mut+alloc+free+gc
9 6 3 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 9 1 1.4 dash -
29 29 0 2.8 bash -
23 16 7 3.3 zsh -
19 14 5 31.7 bumpleak/osh mut
26 21 5 32.8 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 9 26.3 osh-native mut+alloc
38 24 14 26.6 osh-native mut+alloc+free
29 26 3 8.0 osh-native mut+alloc+free+gc
29 28 1 8.0 osh-native mut+alloc+free+gc+exit
53 36 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
31 24 7 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.5 osh-native-souffle mut+alloc+free+gc
21 18 3 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
72 71 1 3.3 bash -
167 127 40 56.9 bumpleak/osh mut
181 125 56 56.4 _bin/cxx-opt+bumproot/osh mut
195 118 77 58.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 141 72 48.7 osh-native mut+alloc
221 148 73 50.4 osh-native mut+alloc+free
185 135 49 8.8 osh-native mut+alloc+free+gc
183 139 44 8.9 osh-native mut+alloc+free+gc+exit
233 154 80 64.4 _bin/cxx-opt+nopool/osh mut+alloc
210 161 49 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 124 81 48.3 osh-native-souffle mut+alloc
215 137 78 50.0 osh-native-souffle mut+alloc+free
173 118 55 8.4 osh-native-souffle mut+alloc+free+gc
174 122 52 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 5 5 3.5 dash -
19 11 8 4.5 bash -
17 8 10 3.4 zsh -
18 7 11 11.6 bumpleak/osh mut
21 10 11 13.2 _bin/cxx-opt+bumproot/osh mut
21 8 14 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 12 11.1 osh-native mut+alloc
22 11 12 11.1 osh-native mut+alloc+free
22 10 13 9.0 osh-native mut+alloc+free+gc
23 12 11 9.0 osh-native mut+alloc+free+gc+exit
24 10 15 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 18 7 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 7 13 10.6 osh-native-souffle mut+alloc
21 10 11 10.6 osh-native-souffle mut+alloc+free
20 11 10 8.7 osh-native-souffle mut+alloc+free+gc
21 12 10 8.8 osh-native-souffle mut+alloc+free+gc+exit