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 4 9 12.0 17.8 476,676 1,282 6 408,786 5 204,393 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,676 1,282 6 408,656 5 204,328 osh-native-souffle
parse.configure-coreutils 160 27 73 46.1 51.6 1,653,264 4,764 12 1,069,152 6 798,657 osh-native
parse.configure-coreutils 153 21 77 41.1 45.6 1,653,263 4,764 12 1,591,708 7 795,854 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,867 180 2 75,128 1 37,564 osh-native
parse.abuild 9 1 2 2.4 7.9 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 21 0 1 2.4 7.6 584,135 22,608 12 50,000 0 2,780 osh-native-souffle
ex.bashcomp-parse-help 181 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 22 1 2 2.8 8.9 116,282 270 3 85,364 1 42,682 osh-native
ex.abuild-print-help 21 1 2 2.8 8.4 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.6 dash -
24 23 0 3.0 bash -
104 54 56 3.4 zsh -
16 16 0 28.9 bumpleak/osh mut
20 12 8 28.4 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.0 osh-native mut+alloc
32 16 16 25.6 osh-native mut+alloc+free
35 31 4 17.8 osh-native mut+alloc+free+gc
36 24 12 18.1 osh-native mut+alloc+free+gc+exit
43 39 4 32.2 _bin/cxx-opt+nopool/osh mut+alloc
49 40 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.9 osh-native-souffle mut+alloc
28 8 20 25.3 osh-native-souffle mut+alloc+free
32 28 4 17.4 osh-native-souffle mut+alloc+free+gc
33 29 4 17.8 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 21 0 1.4 dash -
78 77 0 3.1 bash -
374 189 206 3.5 zsh -
48 32 16 85.3 bumpleak/osh mut
60 59 0 84.7 _bin/cxx-opt+bumproot/osh mut
72 56 16 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 56 40 73.4 osh-native mut+alloc
105 84 20 75.2 osh-native mut+alloc+free
160 128 32 51.6 osh-native mut+alloc+free+gc
168 136 32 52.2 osh-native mut+alloc+free+gc+exit
139 103 36 98.6 _bin/cxx-opt+nopool/osh mut+alloc
218 190 28 73.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 55 32 73.0 osh-native-souffle mut+alloc
95 47 47 75.0 osh-native-souffle mut+alloc+free
153 129 23 45.6 osh-native-souffle mut+alloc+free+gc
155 131 25 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.8 bash -
8 8 0 3.3 zsh -
6 6 0 10.2 bumpleak/osh mut
7 3 3 11.8 _bin/cxx-opt+bumproot/osh mut
8 7 0 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
11 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 11 0 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 8 0 9.6 osh-native-souffle mut+alloc+free
9 4 4 7.9 osh-native-souffle mut+alloc+free+gc
9 3 6 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 10 0 1.4 dash -
29 24 4 3.0 bash -
23 20 4 3.3 zsh -
18 15 4 31.9 bumpleak/osh mut
25 18 7 32.2 _bin/cxx-opt+bumproot/osh mut
27 19 8 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.2 osh-native mut+alloc
38 30 8 26.6 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 41 12 36.0 _bin/cxx-opt+nopool/osh mut+alloc
36 28 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
32 24 8 26.2 osh-native-souffle mut+alloc+free
21 17 4 7.6 osh-native-souffle mut+alloc+free+gc
21 21 0 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
74 70 4 3.0 bash -
170 91 79 55.0 bumpleak/osh mut
181 142 39 55.4 _bin/cxx-opt+bumproot/osh mut
195 121 73 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 117 93 47.0 osh-native mut+alloc
216 132 84 48.7 osh-native mut+alloc+free
181 108 72 8.8 osh-native mut+alloc+free+gc
180 128 52 8.7 osh-native mut+alloc+free+gc+exit
234 166 67 64.0 _bin/cxx-opt+nopool/osh mut+alloc
221 169 51 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 96 108 46.6 osh-native-souffle mut+alloc
214 113 101 48.3 osh-native-souffle mut+alloc+free
174 101 73 8.3 osh-native-souffle mut+alloc+free+gc
176 132 44 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 9 1 3.5 dash -
20 13 7 4.5 bash -
18 14 5 3.4 zsh -
20 12 9 12.6 bumpleak/osh mut
21 11 10 13.3 _bin/cxx-opt+bumproot/osh mut
20 11 9 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 11.0 osh-native mut+alloc
22 13 10 11.1 osh-native mut+alloc+free
22 16 7 8.9 osh-native mut+alloc+free+gc
23 13 10 9.2 osh-native mut+alloc+free+gc+exit
25 16 9 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 12 9 10.5 osh-native-souffle mut+alloc
21 19 2 10.7 osh-native-souffle mut+alloc+free
21 15 7 8.4 osh-native-souffle mut+alloc+free+gc
22 13 10 8.7 osh-native-souffle mut+alloc+free+gc+exit