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 17.8 476,774 1,282 6 406,628 5 203,314 osh-native
parse.configure-cpython 33 4 10 12.0 17.6 476,774 1,282 6 406,618 5 203,309 osh-native-souffle
parse.configure-coreutils 144 24 59 44.5 49.8 1,653,362 4,764 12 1,025,550 6 764,318 osh-native
parse.configure-coreutils 141 23 64 44.5 49.5 1,653,361 4,764 12 1,025,540 6 764,313 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,965 180 2 75,054 1 37,527 osh-native
parse.abuild 8 1 1 2.6 8.3 101,965 180 2 75,044 1 37,522 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,728 22,608 12 50,000 0 2,930 osh-native
ex.compute-fib 22 0 2 2.2 7.6 579,728 22,608 12 50,000 0 2,925 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 11.1 8.9 1,021,045 15,258 22 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 176 0 4 11.1 8.4 1,021,044 15,258 22 50,000 0 3,910 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.3 116,363 277 3 85,270 1 42,635 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,363 277 3 85,260 1 42,630 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.0 bash -
100 61 46 3.4 zsh -
16 11 5 28.0 bumpleak/osh mut
19 17 2 29.3 _bin/cxx-opt+bumproot/osh mut
22 21 1 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 20 10 25.3 osh-native mut+alloc
31 16 15 25.7 osh-native mut+alloc+free
35 29 6 17.8 osh-native mut+alloc+free+gc
36 31 5 18.0 osh-native mut+alloc+free+gc+exit
42 27 15 32.4 _bin/cxx-opt+nopool/osh mut+alloc
51 42 10 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 11 16 24.8 osh-native-souffle mut+alloc
28 19 9 25.3 osh-native-souffle mut+alloc+free
33 29 4 17.6 osh-native-souffle mut+alloc+free+gc
34 27 7 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 20 1 1.4 dash -
79 78 1 3.3 bash -
363 198 187 3.5 zsh -
48 41 7 85.9 bumpleak/osh mut
60 52 8 86.1 _bin/cxx-opt+bumproot/osh mut
70 60 10 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 63 34 73.7 osh-native mut+alloc
104 84 21 75.4 osh-native mut+alloc+free
144 121 23 49.8 osh-native mut+alloc+free+gc
151 131 20 50.3 osh-native mut+alloc+free+gc+exit
138 81 57 99.0 _bin/cxx-opt+nopool/osh mut+alloc
216 181 35 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 56 31 73.3 osh-native-souffle mut+alloc
93 59 35 74.9 osh-native-souffle mut+alloc+free
141 122 19 49.5 osh-native-souffle mut+alloc+free+gc
152 128 24 50.0 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.4 zsh -
6 5 1 10.7 bumpleak/osh mut
6 2 5 11.2 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 7 2 10.1 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 6 3 8.9 osh-native mut+alloc+free+gc+exit
11 7 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 3 9.6 _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
8 6 2 8.3 osh-native-souffle mut+alloc+free+gc
8 6 2 8.3 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 28 0 2.9 bash -
23 18 5 3.4 zsh -
18 16 2 30.8 bumpleak/osh mut
26 21 5 33.1 _bin/cxx-opt+bumproot/osh mut
28 25 3 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 30 7 26.2 osh-native mut+alloc
39 25 14 26.7 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 26 2 7.9 osh-native mut+alloc+free+gc+exit
54 34 20 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 32 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 12 26.0 osh-native-souffle mut+alloc
31 21 10 26.1 osh-native-souffle mut+alloc+free
22 20 2 7.6 osh-native-souffle mut+alloc+free+gc
22 21 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
73 69 4 3.1 bash -
166 117 49 56.6 bumpleak/osh mut
183 120 63 56.3 _bin/cxx-opt+bumproot/osh mut
197 139 58 58.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 129 85 48.6 osh-native mut+alloc
222 144 78 50.8 osh-native mut+alloc+free
182 128 54 8.9 osh-native mut+alloc+free+gc
184 130 54 8.9 osh-native mut+alloc+free+gc+exit
234 158 76 64.7 _bin/cxx-opt+nopool/osh mut+alloc
211 168 43 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
208 132 76 48.5 osh-native-souffle mut+alloc
214 140 74 50.5 osh-native-souffle mut+alloc+free
176 127 49 8.4 osh-native-souffle mut+alloc+free+gc
176 116 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
9 4 6 3.5 dash -
19 11 8 4.3 bash -
17 6 11 3.5 zsh -
17 6 11 11.5 bumpleak/osh mut
19 9 10 12.1 _bin/cxx-opt+bumproot/osh mut
22 12 10 14.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 12 11.0 osh-native mut+alloc
22 8 14 11.3 osh-native mut+alloc+free
22 11 11 9.3 osh-native mut+alloc+free+gc
22 12 10 9.2 osh-native mut+alloc+free+gc+exit
24 12 13 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 18 7 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 13 7 10.6 osh-native-souffle mut+alloc
20 7 13 10.7 osh-native-souffle mut+alloc+free
21 14 7 8.7 osh-native-souffle mut+alloc+free+gc
21 13 9 8.4 osh-native-souffle mut+alloc+free+gc+exit