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 4 10 12.1 18.1 476,737 1,282 6 409,280 5 204,640 osh-native
parse.configure-cpython 33 4 10 12.0 17.3 476,737 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 169 23 84 41.1 45.8 1,653,325 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 144 25 68 44.6 49.5 1,653,324 4,764 12 1,030,664 6 769,416 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,928 180 2 75,252 1 37,626 osh-native
parse.abuild 8 1 1 2.6 8.1 101,928 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 28 0 2 2.4 8.0 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.5 995,274 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 176 0 4 10.3 8.3 995,273 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,343 270 3 85,488 1 42,744 osh-native
ex.abuild-print-help 21 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 23 0 2.9 bash -
106 76 36 3.4 zsh -
17 13 3 28.5 bumpleak/osh mut
19 8 12 29.0 _bin/cxx-opt+bumproot/osh mut
23 15 7 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.2 osh-native mut+alloc
32 28 4 25.6 osh-native mut+alloc+free
37 32 4 18.1 osh-native mut+alloc+free+gc
37 29 8 18.1 osh-native mut+alloc+free+gc+exit
44 39 4 32.2 _bin/cxx-opt+nopool/osh mut+alloc
48 40 8 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 11 15 24.8 osh-native-souffle mut+alloc
28 24 4 25.3 osh-native-souffle mut+alloc+free
33 29 4 17.3 osh-native-souffle mut+alloc+free+gc
34 30 4 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 21 0 1.4 dash -
80 79 0 3.1 bash -
379 207 193 3.7 zsh -
49 40 8 84.1 bumpleak/osh mut
60 55 4 85.1 _bin/cxx-opt+bumproot/osh mut
71 62 8 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 52 44 73.6 osh-native mut+alloc
104 76 28 75.4 osh-native mut+alloc+free
169 149 20 45.8 osh-native mut+alloc+free+gc
167 154 12 46.0 osh-native mut+alloc+free+gc+exit
141 101 40 99.2 _bin/cxx-opt+nopool/osh mut+alloc
239 211 28 61.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 55 31 73.0 osh-native-souffle mut+alloc
95 58 37 74.9 osh-native-souffle mut+alloc+free
144 124 20 49.5 osh-native-souffle mut+alloc+free+gc
148 124 24 50.4 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 3.0 bash -
8 4 4 3.4 zsh -
6 0 6 10.3 bumpleak/osh mut
7 3 3 11.1 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.2 osh-native mut+alloc
9 0 9 10.2 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 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.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
8 3 6 8.1 osh-native-souffle mut+alloc+free+gc
9 9 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
10 10 0 1.6 dash -
29 25 4 2.9 bash -
24 16 8 3.3 zsh -
19 9 9 32.7 bumpleak/osh mut
26 17 9 31.9 _bin/cxx-opt+bumproot/osh mut
28 28 0 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 29 7 26.3 osh-native mut+alloc
38 30 8 26.6 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 28 0 8.1 osh-native mut+alloc+free+gc+exit
54 46 8 36.2 _bin/cxx-opt+nopool/osh mut+alloc
37 28 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
32 16 16 26.3 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 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
73 69 4 3.1 bash -
168 132 36 54.1 bumpleak/osh mut
180 108 72 55.7 _bin/cxx-opt+bumproot/osh mut
193 124 68 55.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 162 47 47.0 osh-native mut+alloc
217 161 55 48.7 osh-native mut+alloc+free
181 141 40 8.5 osh-native mut+alloc+free+gc
182 138 44 8.7 osh-native mut+alloc+free+gc+exit
232 158 73 63.3 _bin/cxx-opt+nopool/osh mut+alloc
207 151 56 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 110 95 46.6 osh-native-souffle mut+alloc
214 135 79 48.2 osh-native-souffle mut+alloc+free
176 123 52 8.3 osh-native-souffle mut+alloc+free+gc
177 132 44 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.4 dash -
19 18 2 4.3 bash -
18 11 8 3.3 zsh -
18 15 3 13.1 bumpleak/osh mut
21 11 10 13.1 _bin/cxx-opt+bumproot/osh mut
21 14 8 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 3 10.9 osh-native mut+alloc
22 10 12 11.1 osh-native mut+alloc+free
22 17 5 8.9 osh-native mut+alloc+free+gc
24 15 9 9.2 osh-native mut+alloc+free+gc+exit
25 12 14 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 19 7 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 16 4 10.6 osh-native-souffle mut+alloc
21 12 10 10.5 osh-native-souffle mut+alloc+free
21 17 5 8.7 osh-native-souffle mut+alloc+free+gc
22 10 13 8.7 osh-native-souffle mut+alloc+free+gc+exit