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 42 6 15 12.0 17.8 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 37 6 13 12.0 17.4 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 163 27 75 44.5 49.7 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 153 25 77 44.5 49.3 1,653,353 4,764 12 1,025,530 6 764,308 osh-native-souffle
parse.abuild 9 1 1 2.6 8.8 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 9 1 1 2.6 8.0 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 28 0 2 2.2 8.0 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 22 0 2 2.2 7.7 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 11.1 8.8 1,021,038 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 174 0 4 11.1 8.4 1,021,037 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,356 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,356 277 3 85,252 1 42,626 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 5 1 1.4 dash -
23 23 0 2.9 bash -
102 65 44 3.3 zsh -
16 14 2 28.7 bumpleak/osh mut
20 13 7 29.4 _bin/cxx-opt+bumproot/osh mut
22 14 8 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.2 osh-native mut+alloc
32 22 10 25.7 osh-native mut+alloc+free
42 34 8 17.8 osh-native mut+alloc+free+gc
41 35 6 18.1 osh-native mut+alloc+free+gc+exit
43 23 20 32.3 _bin/cxx-opt+nopool/osh mut+alloc
59 47 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 12 24.8 osh-native-souffle mut+alloc
29 22 7 25.2 osh-native-souffle mut+alloc+free
37 32 5 17.4 osh-native-souffle mut+alloc+free+gc
38 32 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 19 2 1.6 dash -
78 76 2 3.3 bash -
369 193 198 3.4 zsh -
49 36 14 84.7 bumpleak/osh mut
60 51 9 86.0 _bin/cxx-opt+bumproot/osh mut
70 54 16 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 67 29 73.5 osh-native mut+alloc
103 76 27 75.3 osh-native mut+alloc+free
163 128 34 49.7 osh-native mut+alloc+free+gc
171 148 23 50.4 osh-native mut+alloc+free+gc+exit
142 106 36 99.0 _bin/cxx-opt+nopool/osh mut+alloc
209 184 25 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 49 39 73.1 osh-native-souffle mut+alloc
94 66 28 75.0 osh-native-souffle mut+alloc+free
153 131 22 49.3 osh-native-souffle mut+alloc+free+gc
167 146 21 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 2 0 1.3 dash -
5 4 2 3.0 bash -
8 5 3 3.3 zsh -
6 5 1 10.4 bumpleak/osh mut
7 4 3 11.1 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 6 10.0 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
9 6 3 8.8 osh-native mut+alloc+free+gc
9 5 4 8.7 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 3 5 9.8 osh-native-souffle mut+alloc+free
9 6 2 8.0 osh-native-souffle mut+alloc+free+gc
9 5 4 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 27 1 3.0 bash -
23 15 8 3.4 zsh -
19 15 3 31.5 bumpleak/osh mut
26 21 5 31.4 _bin/cxx-opt+bumproot/osh mut
29 24 5 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 27 9 26.3 osh-native mut+alloc
38 29 9 26.6 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
28 26 2 8.1 osh-native mut+alloc+free+gc+exit
54 36 18 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 17 12 25.8 osh-native-souffle mut+alloc
30 20 11 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.7 osh-native-souffle mut+alloc+free+gc
22 20 2 7.7 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 103 63 55.8 bumpleak/osh mut
180 126 54 57.8 _bin/cxx-opt+bumproot/osh mut
199 126 73 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 148 67 49.0 osh-native mut+alloc
226 156 70 50.8 osh-native mut+alloc+free
184 141 43 8.8 osh-native mut+alloc+free+gc
184 123 61 8.8 osh-native mut+alloc+free+gc+exit
237 142 95 64.5 _bin/cxx-opt+nopool/osh mut+alloc
212 159 53 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 133 74 48.6 osh-native-souffle mut+alloc
214 140 73 50.4 osh-native-souffle mut+alloc+free
174 121 53 8.4 osh-native-souffle mut+alloc+free+gc
175 121 54 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 5 3.5 dash -
19 9 11 4.5 bash -
17 5 13 3.5 zsh -
19 8 12 12.7 bumpleak/osh mut
21 10 11 13.5 _bin/cxx-opt+bumproot/osh mut
20 9 11 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 13 11.1 osh-native mut+alloc
23 12 11 11.3 osh-native mut+alloc+free
22 13 10 9.0 osh-native mut+alloc+free+gc
23 9 14 9.0 osh-native mut+alloc+free+gc+exit
24 14 11 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 13 12 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 10 10.6 osh-native-souffle mut+alloc
21 10 12 10.7 osh-native-souffle mut+alloc+free
21 11 12 8.7 osh-native-souffle mut+alloc+free+gc
22 14 9 8.7 osh-native-souffle mut+alloc+free+gc+exit