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 3 9 12.0 18.0 476,676 1,282 6 408,786 5 204,393 osh-native
parse.configure-cpython 33 3 9 12.0 17.6 476,676 1,282 6 408,656 5 204,328 osh-native-souffle
parse.configure-coreutils 159 26 70 46.1 51.6 1,653,264 4,764 12 1,069,152 6 798,657 osh-native
parse.configure-coreutils 156 23 79 41.1 45.4 1,653,263 4,764 12 1,591,708 7 795,854 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,867 180 2 75,128 1 37,564 osh-native
parse.abuild 9 1 2 2.4 8.0 101,867 180 3 87,224 1 43,612 osh-native-souffle
ex.compute-fib 28 0 1 2.4 8.0 584,135 22,608 12 50,000 0 2,842 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,135 22,608 12 50,000 0 2,780 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.3 8.8 995,209 12,911 21 50,000 0 3,824 osh-native
ex.bashcomp-parse-help 174 0 3 10.3 8.3 995,208 12,911 21 50,000 0 3,771 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 8.8 116,282 270 3 85,364 1 42,682 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,282 270 3 85,240 1 42,620 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.6 dash -
23 23 0 3.0 bash -
105 58 53 3.4 zsh -
17 12 4 28.4 bumpleak/osh mut
19 19 0 29.3 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 30 0 25.2 osh-native mut+alloc
33 20 12 25.6 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
37 37 0 18.1 osh-native mut+alloc+free+gc+exit
44 36 8 33.2 _bin/cxx-opt+nopool/osh mut+alloc
50 31 19 21.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 12 24.8 osh-native-souffle mut+alloc
29 15 15 25.3 osh-native-souffle mut+alloc+free
33 28 4 17.6 osh-native-souffle mut+alloc+free+gc
33 29 4 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 21 0 1.6 dash -
78 74 4 3.1 bash -
379 226 176 3.5 zsh -
48 32 16 84.3 bumpleak/osh mut
60 44 16 85.9 _bin/cxx-opt+bumproot/osh mut
73 58 15 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 67 32 73.6 osh-native mut+alloc
107 82 24 75.3 osh-native mut+alloc+free
159 134 24 51.6 osh-native mut+alloc+free+gc
164 140 24 52.2 osh-native mut+alloc+free+gc+exit
140 84 56 99.5 _bin/cxx-opt+nopool/osh mut+alloc
236 191 45 73.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 51 39 73.0 osh-native-souffle mut+alloc
98 67 31 74.7 osh-native-souffle mut+alloc+free
156 132 24 45.4 osh-native-souffle mut+alloc+free+gc
151 115 36 51.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 -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 10.6 bumpleak/osh mut
7 4 4 11.7 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
12 8 4 10.1 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 3 6 8.5 osh-native mut+alloc+free+gc
9 3 6 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.6 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 9 0 8.0 osh-native-souffle mut+alloc+free+gc
8 8 0 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
11 7 4 1.6 dash -
29 25 4 2.8 bash -
24 19 5 3.3 zsh -
19 19 0 32.4 bumpleak/osh mut
25 25 0 32.3 _bin/cxx-opt+bumproot/osh mut
28 23 4 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 11 26.3 osh-native mut+alloc
38 34 4 26.5 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
53 30 22 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 15 26.0 osh-native-souffle mut+alloc
32 20 12 26.2 osh-native-souffle mut+alloc+free
22 21 0 7.6 osh-native-souffle mut+alloc+free+gc
22 22 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 62 12 3.1 bash -
167 111 56 55.0 bumpleak/osh mut
181 136 44 56.0 _bin/cxx-opt+bumproot/osh mut
196 136 60 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 132 80 47.0 osh-native mut+alloc
218 154 63 48.7 osh-native mut+alloc+free
183 151 32 8.8 osh-native mut+alloc+free+gc
182 141 40 8.7 osh-native mut+alloc+free+gc+exit
233 140 92 64.2 _bin/cxx-opt+nopool/osh mut+alloc
209 160 48 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
201 152 48 46.7 osh-native-souffle mut+alloc
212 156 56 48.3 osh-native-souffle mut+alloc+free
174 117 56 8.3 osh-native-souffle mut+alloc+free+gc
175 119 55 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 10 0 3.4 dash -
20 16 5 4.5 bash -
18 13 6 3.5 zsh -
19 12 6 13.1 bumpleak/osh mut
21 16 6 12.8 _bin/cxx-opt+bumproot/osh mut
21 11 10 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 11.1 osh-native mut+alloc
23 21 2 11.1 osh-native mut+alloc+free
23 18 6 8.8 osh-native mut+alloc+free+gc
23 11 13 9.0 osh-native mut+alloc+free+gc+exit
25 19 6 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 19 7 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 7 14 10.5 osh-native-souffle mut+alloc
22 12 11 10.6 osh-native-souffle mut+alloc+free
21 10 12 8.5 osh-native-souffle mut+alloc+free+gc
22 9 14 8.7 osh-native-souffle mut+alloc+free+gc+exit