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 17.8 476,672 1,282 6 408,778 5 204,389 osh-native
parse.configure-cpython 33 3 10 12.0 17.6 476,672 1,282 6 408,648 5 204,324 osh-native-souffle
parse.configure-coreutils 157 26 70 46.1 51.6 1,653,260 4,764 12 1,069,144 6 798,653 osh-native
parse.configure-coreutils 151 22 74 41.0 45.4 1,653,259 4,764 12 1,591,700 7 795,850 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,863 180 2 75,120 1 37,560 osh-native
parse.abuild 9 1 2 2.4 8.0 101,863 180 3 87,216 1 43,608 osh-native-souffle
ex.compute-fib 28 0 2 2.4 7.9 584,131 22,608 12 50,000 0 2,837 osh-native
ex.compute-fib 21 0 2 2.4 7.6 584,131 22,608 12 50,000 0 2,776 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.3 8.5 995,205 12,911 21 50,000 0 3,831 osh-native
ex.bashcomp-parse-help 174 0 3 10.3 8.1 995,204 12,911 21 50,000 0 3,764 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,278 270 3 85,356 1 42,678 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,278 270 3 85,232 1 42,616 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.1 bash -
104 61 49 3.4 zsh -
17 8 8 28.2 bumpleak/osh mut
20 16 4 30.1 _bin/cxx-opt+bumproot/osh mut
23 14 9 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 25 4 25.2 osh-native mut+alloc
32 16 16 25.7 osh-native mut+alloc+free
36 28 8 17.8 osh-native mut+alloc+free+gc
37 26 11 18.0 osh-native mut+alloc+free+gc+exit
43 27 15 32.8 _bin/cxx-opt+nopool/osh mut+alloc
51 42 8 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 4 22 24.8 osh-native-souffle mut+alloc
29 20 8 25.3 osh-native-souffle mut+alloc+free
33 25 8 17.6 osh-native-souffle mut+alloc+free+gc
34 34 0 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
21 17 4 1.4 dash -
78 78 0 3.3 bash -
378 229 169 3.5 zsh -
49 37 11 84.7 bumpleak/osh mut
60 47 12 85.7 _bin/cxx-opt+bumproot/osh mut
71 71 0 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 59 39 73.4 osh-native mut+alloc
106 69 37 75.1 osh-native mut+alloc+free
157 129 28 51.6 osh-native mut+alloc+free+gc
158 138 20 52.3 osh-native mut+alloc+free+gc+exit
140 107 32 98.7 _bin/cxx-opt+nopool/osh mut+alloc
214 186 28 72.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 55 32 73.2 osh-native-souffle mut+alloc
97 58 39 74.9 osh-native-souffle mut+alloc+free
151 119 32 45.4 osh-native-souffle mut+alloc+free+gc
154 134 20 45.7 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.4 dash -
6 6 0 2.8 bash -
8 4 4 3.3 zsh -
6 6 0 12.1 bumpleak/osh mut
7 7 0 11.3 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 4 8 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.7 osh-native-souffle mut+alloc
8 8 0 9.7 osh-native-souffle mut+alloc+free
9 3 6 8.0 osh-native-souffle mut+alloc+free+gc
9 9 0 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
11 11 0 1.4 dash -
29 26 4 3.0 bash -
24 24 0 3.4 zsh -
19 18 0 32.2 bumpleak/osh mut
25 21 4 32.8 _bin/cxx-opt+bumproot/osh mut
28 23 4 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.1 osh-native mut+alloc
37 22 15 26.6 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
27 23 4 8.0 osh-native mut+alloc+free+gc+exit
55 47 8 35.7 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 11 26.0 osh-native-souffle mut+alloc
31 19 12 26.2 osh-native-souffle mut+alloc+free
21 21 0 7.6 osh-native-souffle mut+alloc+free+gc
21 21 0 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
73 69 4 3.1 bash -
168 96 72 55.4 bumpleak/osh mut
181 137 44 56.3 _bin/cxx-opt+bumproot/osh mut
193 129 64 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 118 93 46.9 osh-native mut+alloc
218 131 87 48.5 osh-native mut+alloc+free
183 142 41 8.5 osh-native mut+alloc+free+gc
182 125 57 8.8 osh-native mut+alloc+free+gc+exit
235 146 89 62.8 _bin/cxx-opt+nopool/osh mut+alloc
210 142 67 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 116 88 46.7 osh-native-souffle mut+alloc
212 136 76 48.3 osh-native-souffle mut+alloc+free
174 117 57 8.1 osh-native-souffle mut+alloc+free+gc
177 117 60 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 7 3 3.4 dash -
20 16 5 4.3 bash -
18 17 2 3.4 zsh -
18 16 2 13.3 bumpleak/osh mut
19 14 5 13.7 _bin/cxx-opt+bumproot/osh mut
20 19 1 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 2 10.7 osh-native mut+alloc
22 23 0 11.1 osh-native mut+alloc+free
22 16 6 9.0 osh-native mut+alloc+free+gc
23 13 10 9.0 osh-native mut+alloc+free+gc+exit
24 18 6 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 11 14 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 18 3 10.5 osh-native-souffle mut+alloc
21 11 10 10.7 osh-native-souffle mut+alloc+free
21 15 7 8.7 osh-native-souffle mut+alloc+free+gc
22 10 13 8.7 osh-native-souffle mut+alloc+free+gc+exit