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.7 476,737 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 177 27 91 41.1 45.8 1,653,325 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 154 26 77 44.6 49.7 1,653,324 4,764 12 1,030,664 6 769,416 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,928 180 2 75,252 1 37,626 osh-native
parse.abuild 9 1 1 2.6 8.0 101,928 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 28 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 182 0 4 10.3 8.7 995,274 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 177 0 4 10.3 8.3 995,273 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 23 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
7 6 0 1.6 dash -
25 24 0 3.1 bash -
107 58 55 3.4 zsh -
17 17 0 28.2 bumpleak/osh mut
20 20 0 30.1 _bin/cxx-opt+bumproot/osh mut
23 9 13 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 11 18 25.0 osh-native mut+alloc
32 12 20 25.6 osh-native mut+alloc+free
37 36 0 18.1 osh-native mut+alloc+free+gc
37 29 8 18.2 osh-native mut+alloc+free+gc+exit
44 28 16 32.9 _bin/cxx-opt+nopool/osh mut+alloc
55 50 4 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.8 osh-native-souffle mut+alloc
29 21 8 25.4 osh-native-souffle mut+alloc+free
33 33 0 17.7 osh-native-souffle mut+alloc+free+gc
35 31 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
21 21 0 1.4 dash -
77 77 0 3.1 bash -
379 207 193 3.5 zsh -
48 44 4 85.3 bumpleak/osh mut
60 43 16 84.6 _bin/cxx-opt+bumproot/osh mut
71 67 4 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 52 44 73.6 osh-native mut+alloc
104 74 29 75.4 osh-native mut+alloc+free
177 157 20 45.8 osh-native mut+alloc+free+gc
181 169 12 46.0 osh-native mut+alloc+free+gc+exit
139 107 32 98.8 _bin/cxx-opt+nopool/osh mut+alloc
251 227 24 61.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 44 44 73.0 osh-native-souffle mut+alloc
95 67 28 75.0 osh-native-souffle mut+alloc+free
154 142 12 49.7 osh-native-souffle mut+alloc+free+gc
164 140 24 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 0 2 1.4 dash -
6 6 0 2.9 bash -
8 0 7 3.1 zsh -
6 6 0 12.2 bumpleak/osh mut
6 6 0 12.3 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.2 osh-native mut+alloc
9 9 0 10.2 osh-native mut+alloc+free
9 5 5 8.4 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 4 8 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.8 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
9 9 0 8.1 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 25 4 3.0 bash -
24 20 4 3.3 zsh -
19 15 4 32.6 bumpleak/osh mut
25 14 11 31.5 _bin/cxx-opt+bumproot/osh mut
28 16 12 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.3 osh-native mut+alloc
40 36 4 26.7 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
27 27 0 7.9 osh-native mut+alloc+free+gc+exit
53 33 20 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 8 25.8 osh-native-souffle mut+alloc
32 27 4 26.3 osh-native-souffle mut+alloc+free
22 17 4 7.6 osh-native-souffle mut+alloc+free+gc
22 17 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
72 68 4 3.1 bash -
168 104 64 55.8 bumpleak/osh mut
180 92 88 54.6 _bin/cxx-opt+bumproot/osh mut
197 144 52 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 141 72 47.0 osh-native mut+alloc
219 143 75 48.7 osh-native mut+alloc+free
182 146 36 8.7 osh-native mut+alloc+free+gc
184 124 60 8.8 osh-native mut+alloc+free+gc+exit
232 136 96 64.2 _bin/cxx-opt+nopool/osh mut+alloc
211 162 49 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
202 125 77 46.6 osh-native-souffle mut+alloc
211 147 63 48.5 osh-native-souffle mut+alloc+free
177 140 36 8.3 osh-native-souffle mut+alloc+free+gc
176 128 48 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 6 4 3.5 dash -
20 11 10 4.5 bash -
18 13 6 3.4 zsh -
19 11 8 11.8 bumpleak/osh mut
21 8 13 12.8 _bin/cxx-opt+bumproot/osh mut
21 14 7 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.0 osh-native mut+alloc
23 12 11 11.0 osh-native mut+alloc+free
23 17 5 8.9 osh-native mut+alloc+free+gc
23 15 9 8.9 osh-native mut+alloc+free+gc+exit
25 16 9 12.4 _bin/cxx-opt+nopool/osh mut+alloc
26 15 12 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 15 6 10.5 osh-native-souffle mut+alloc
22 14 8 10.7 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