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 40 6 14 12.1 18.1 476,737 1,282 6 409,280 5 204,640 osh-native
parse.configure-cpython 35 4 10 12.0 17.4 476,737 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 196 28 107 41.1 45.9 1,653,325 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 162 30 84 44.6 49.5 1,653,324 4,764 12 1,030,664 6 769,416 osh-native-souffle
parse.abuild 10 1 2 2.6 8.5 101,928 180 2 75,252 1 37,626 osh-native
parse.abuild 9 1 2 2.6 8.1 101,928 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 29 0 2 2.4 7.9 584,193 22,608 12 50,000 0 2,903 osh-native
ex.compute-fib 22 0 2 2.4 7.6 584,193 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 10.3 8.8 995,274 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 177 0 4 10.3 8.4 995,273 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 24 1 2 2.8 9.0 116,343 270 3 85,488 1 42,744 osh-native
ex.abuild-print-help 22 1 2 2.8 8.7 116,343 270 3 85,364 1 42,682 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 -
23 19 4 3.0 bash -
106 78 33 3.4 zsh -
16 12 4 28.7 bumpleak/osh mut
19 15 4 29.6 _bin/cxx-opt+bumproot/osh mut
23 18 4 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 29 0 25.3 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
40 32 8 18.1 osh-native mut+alloc+free+gc
41 22 18 18.1 osh-native mut+alloc+free+gc+exit
44 36 8 32.8 _bin/cxx-opt+nopool/osh mut+alloc
50 46 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 23 4 24.8 osh-native-souffle mut+alloc
29 25 4 25.3 osh-native-souffle mut+alloc+free
35 34 0 17.4 osh-native-souffle mut+alloc+free+gc
40 35 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.6 dash -
78 78 0 3.3 bash -
383 212 194 3.7 zsh -
49 37 12 85.1 bumpleak/osh mut
60 55 4 86.3 _bin/cxx-opt+bumproot/osh mut
70 45 25 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 70 27 73.6 osh-native mut+alloc
108 72 36 75.4 osh-native mut+alloc+free
196 168 28 45.9 osh-native mut+alloc+free+gc
190 157 32 46.1 osh-native mut+alloc+free+gc+exit
139 87 52 97.7 _bin/cxx-opt+nopool/osh mut+alloc
265 233 32 60.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 65 24 73.1 osh-native-souffle mut+alloc
97 64 32 75.0 osh-native-souffle mut+alloc+free
162 138 24 49.5 osh-native-souffle mut+alloc+free+gc
173 146 28 50.3 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 3 3 2.8 bash -
8 4 4 3.1 zsh -
6 6 0 10.5 bumpleak/osh mut
7 7 0 11.9 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.2 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
10 10 0 8.5 osh-native mut+alloc+free+gc
10 7 3 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
14 7 7 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.8 osh-native-souffle mut+alloc
8 0 8 9.8 osh-native-souffle mut+alloc+free
9 4 4 8.1 osh-native-souffle mut+alloc+free+gc
9 5 5 8.4 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 29 0 3.0 bash -
24 20 4 3.4 zsh -
18 14 4 32.9 bumpleak/osh mut
25 25 0 32.2 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.3 osh-native mut+alloc
38 19 19 26.7 osh-native mut+alloc+free
29 25 4 7.9 osh-native mut+alloc+free+gc
29 29 0 7.9 osh-native mut+alloc+free+gc+exit
54 46 8 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 26 4 26.0 osh-native-souffle mut+alloc
31 12 19 26.3 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 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
74 74 0 3.1 bash -
169 120 48 55.6 bumpleak/osh mut
179 102 77 55.5 _bin/cxx-opt+bumproot/osh mut
195 143 52 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 136 76 47.0 osh-native mut+alloc
223 155 68 48.7 osh-native mut+alloc+free
181 145 36 8.8 osh-native mut+alloc+free+gc
183 131 52 8.8 osh-native mut+alloc+free+gc+exit
232 152 80 63.4 _bin/cxx-opt+nopool/osh mut+alloc
213 157 56 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 120 84 46.6 osh-native-souffle mut+alloc
212 144 68 48.3 osh-native-souffle mut+alloc+free
177 126 51 8.4 osh-native-souffle mut+alloc+free+gc
176 128 48 8.3 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 8 2 3.5 dash -
20 11 10 4.3 bash -
18 10 9 3.5 zsh -
21 14 7 12.8 bumpleak/osh mut
21 16 5 13.0 _bin/cxx-opt+bumproot/osh mut
21 11 10 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 12 11 11.0 osh-native mut+alloc
22 14 9 11.0 osh-native mut+alloc+free
24 18 6 9.0 osh-native mut+alloc+free+gc
24 14 10 9.0 osh-native mut+alloc+free+gc+exit
24 19 6 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 23 3 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 13 7 10.6 osh-native-souffle mut+alloc
22 16 7 10.7 osh-native-souffle mut+alloc+free
22 10 12 8.7 osh-native-souffle mut+alloc+free+gc
23 13 10 8.5 osh-native-souffle mut+alloc+free+gc+exit