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 37 3 10 12.0 18.0 476,676 1,282 6 408,786 5 204,393 osh-native
parse.configure-cpython 33 4 10 12.0 17.7 476,676 1,282 6 408,656 5 204,328 osh-native-souffle
parse.configure-coreutils 160 25 72 46.1 51.6 1,653,264 4,764 12 1,069,152 6 798,657 osh-native
parse.configure-coreutils 155 27 79 41.1 45.4 1,653,263 4,764 12 1,591,708 7 795,854 osh-native-souffle
parse.abuild 10 1 2 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 2 2.4 7.9 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 182 0 3 10.3 8.7 995,209 12,911 21 50,000 0 3,824 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.4 995,208 12,911 21 50,000 0 3,771 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,282 270 3 85,364 1 42,682 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 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 6 0 1.4 dash -
23 23 0 3.1 bash -
105 56 55 3.4 zsh -
17 17 0 27.9 bumpleak/osh mut
20 12 8 28.9 _bin/cxx-opt+bumproot/osh mut
23 15 7 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.0 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
37 24 12 18.0 osh-native mut+alloc+free+gc
37 32 4 18.0 osh-native mut+alloc+free+gc+exit
44 20 24 33.0 _bin/cxx-opt+nopool/osh mut+alloc
51 39 12 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 13 13 24.6 osh-native-souffle mut+alloc
30 25 4 25.3 osh-native-souffle mut+alloc+free
33 21 12 17.7 osh-native-souffle mut+alloc+free+gc
34 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
22 18 4 1.6 dash -
78 77 0 3.1 bash -
375 245 151 3.5 zsh -
49 33 15 85.8 bumpleak/osh mut
61 52 8 85.2 _bin/cxx-opt+bumproot/osh mut
69 53 16 84.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 51 47 73.4 osh-native mut+alloc
106 81 24 75.3 osh-native mut+alloc+free
160 136 24 51.6 osh-native mut+alloc+free+gc
170 134 36 52.2 osh-native mut+alloc+free+gc+exit
143 103 40 97.6 _bin/cxx-opt+nopool/osh mut+alloc
228 196 32 72.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 49 41 73.0 osh-native-souffle mut+alloc
97 73 24 74.9 osh-native-souffle mut+alloc+free
155 131 24 45.4 osh-native-souffle mut+alloc+free+gc
158 125 32 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.4 dash -
6 6 0 3.0 bash -
8 4 4 3.3 zsh -
6 6 0 10.8 bumpleak/osh mut
7 7 0 11.1 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
10 10 0 8.5 osh-native mut+alloc+free+gc
10 7 3 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.8 osh-native-souffle mut+alloc
9 8 0 9.8 osh-native-souffle mut+alloc+free
9 5 5 8.0 osh-native-souffle mut+alloc+free+gc
9 4 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
11 10 0 1.4 dash -
29 25 4 2.9 bash -
24 20 4 3.3 zsh -
19 15 4 31.6 bumpleak/osh mut
26 25 0 32.6 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.1 osh-native mut+alloc
38 21 17 26.5 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 27 0 8.0 osh-native mut+alloc+free+gc+exit
53 29 25 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 36 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 7 26.0 osh-native-souffle mut+alloc
32 12 20 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 22 0 7.5 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
72 68 4 3.0 bash -
169 104 64 54.1 bumpleak/osh mut
179 103 76 54.6 _bin/cxx-opt+bumproot/osh mut
197 165 32 56.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 128 84 47.0 osh-native mut+alloc
219 139 80 48.7 osh-native mut+alloc+free
182 146 35 8.7 osh-native mut+alloc+free+gc
184 136 48 8.9 osh-native mut+alloc+free+gc+exit
236 160 76 63.4 _bin/cxx-opt+nopool/osh mut+alloc
211 167 44 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 123 80 46.7 osh-native-souffle mut+alloc
210 155 56 48.3 osh-native-souffle mut+alloc+free
174 113 61 8.4 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 5 6 3.5 dash -
20 19 2 4.5 bash -
18 14 5 3.5 zsh -
19 18 2 12.7 bumpleak/osh mut
22 19 3 13.4 _bin/cxx-opt+bumproot/osh mut
20 8 13 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 10 10.9 osh-native mut+alloc
22 20 3 11.3 osh-native mut+alloc+free
23 15 8 9.0 osh-native mut+alloc+free+gc
23 10 13 8.9 osh-native mut+alloc+free+gc+exit
24 11 14 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 23 3 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 9 10.5 osh-native-souffle mut+alloc
22 14 8 10.7 osh-native-souffle mut+alloc+free
21 11 10 8.7 osh-native-souffle mut+alloc+free+gc
22 14 8 8.7 osh-native-souffle mut+alloc+free+gc+exit