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,665 1,282 6 408,764 5 204,382 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,665 1,282 6 408,634 5 204,317 osh-native-souffle
parse.configure-coreutils 158 26 71 46.1 51.7 1,653,253 4,764 12 1,069,130 6 798,646 osh-native
parse.configure-coreutils 148 22 74 41.0 45.4 1,653,252 4,764 12 1,591,686 7 795,843 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,856 180 2 75,106 1 37,553 osh-native
parse.abuild 9 1 2 2.4 7.9 101,856 180 3 87,202 1 43,601 osh-native-souffle
ex.compute-fib 28 0 1 2.4 7.9 584,124 22,608 12 50,000 0 2,830 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,124 22,608 12 50,000 0 2,769 osh-native-souffle
ex.bashcomp-parse-help 178 0 4 10.3 8.8 995,201 12,911 21 50,000 0 3,827 osh-native
ex.bashcomp-parse-help 170 0 3 10.3 8.4 995,200 12,911 21 50,000 0 3,757 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.8 116,271 270 3 85,342 1 42,671 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,271 270 3 85,218 1 42,609 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 22 1 3.1 bash -
100 53 54 3.3 zsh -
16 14 2 29.3 bumpleak/osh mut
20 15 5 30.4 _bin/cxx-opt+bumproot/osh mut
22 18 4 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 12 25.3 osh-native mut+alloc
31 22 9 25.6 osh-native mut+alloc+free
36 30 6 18.0 osh-native mut+alloc+free+gc
36 29 7 17.8 osh-native mut+alloc+free+gc+exit
42 33 10 32.4 _bin/cxx-opt+nopool/osh mut+alloc
49 41 8 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 16 10 24.9 osh-native-souffle mut+alloc
28 22 6 25.3 osh-native-souffle mut+alloc+free
32 18 14 17.6 osh-native-souffle mut+alloc+free+gc
33 25 8 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 19 2 1.6 dash -
78 76 2 3.3 bash -
363 197 186 3.5 zsh -
48 37 11 84.7 bumpleak/osh mut
60 54 6 84.5 _bin/cxx-opt+bumproot/osh mut
70 52 18 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 72 25 73.4 osh-native mut+alloc
102 67 36 75.3 osh-native mut+alloc+free
158 138 20 51.7 osh-native mut+alloc+free+gc
163 138 25 52.2 osh-native mut+alloc+free+gc+exit
137 91 46 98.8 _bin/cxx-opt+nopool/osh mut+alloc
224 190 34 73.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 47 41 73.2 osh-native-souffle mut+alloc
94 66 28 74.9 osh-native-souffle mut+alloc+free
148 129 19 45.4 osh-native-souffle mut+alloc+free+gc
148 129 19 45.6 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 -
5 5 0 3.0 bash -
7 5 3 3.3 zsh -
6 4 2 11.0 bumpleak/osh mut
7 4 3 11.1 _bin/cxx-opt+bumproot/osh mut
7 5 2 10.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 10.1 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
9 8 1 8.5 osh-native mut+alloc+free+gc
10 8 2 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.7 osh-native-souffle mut+alloc
8 5 3 9.6 osh-native-souffle mut+alloc+free
9 7 2 7.9 osh-native-souffle mut+alloc+free+gc
9 7 2 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 26 2 2.9 bash -
23 16 7 3.3 zsh -
17 14 3 32.7 bumpleak/osh mut
25 22 3 32.3 _bin/cxx-opt+bumproot/osh mut
27 21 6 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 30 7 26.2 osh-native mut+alloc
38 30 9 26.5 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 25 3 7.7 osh-native mut+alloc+free+gc+exit
54 38 16 35.7 _bin/cxx-opt+nopool/osh mut+alloc
37 35 2 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 13 26.1 osh-native-souffle mut+alloc
31 22 9 26.1 osh-native-souffle mut+alloc+free
22 17 5 7.6 osh-native-souffle mut+alloc+free+gc
22 19 3 7.3 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 70 3 3.0 bash -
166 96 70 54.9 bumpleak/osh mut
182 120 62 55.6 _bin/cxx-opt+bumproot/osh mut
195 142 53 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
206 132 74 47.0 osh-native mut+alloc
214 134 80 48.9 osh-native mut+alloc+free
178 130 49 8.8 osh-native mut+alloc+free+gc
178 131 47 8.8 osh-native mut+alloc+free+gc+exit
230 158 72 62.7 _bin/cxx-opt+nopool/osh mut+alloc
206 157 49 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
200 130 68 46.6 osh-native-souffle mut+alloc
205 132 73 48.2 osh-native-souffle mut+alloc+free
170 116 54 8.4 osh-native-souffle mut+alloc+free+gc
169 109 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 5 5 3.5 dash -
19 13 7 4.3 bash -
17 6 12 3.4 zsh -
18 7 12 11.3 bumpleak/osh mut
20 14 7 12.9 _bin/cxx-opt+bumproot/osh mut
20 9 11 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 11.0 osh-native mut+alloc
22 11 11 10.9 osh-native mut+alloc+free
22 11 11 8.8 osh-native mut+alloc+free+gc
23 13 10 8.9 osh-native mut+alloc+free+gc+exit
24 9 16 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 12 13 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 11 9 10.6 osh-native-souffle mut+alloc
21 9 12 10.6 osh-native-souffle mut+alloc+free
21 14 8 8.7 osh-native-souffle mut+alloc+free+gc
22 10 12 8.7 osh-native-souffle mut+alloc+free+gc+exit