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 3 9 12.1 18.0 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 167 26 82 41.1 45.8 1,653,325 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 147 25 70 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.5 101,928 180 2 75,252 1 37,626 osh-native
parse.abuild 8 1 1 2.6 8.3 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 1 2.4 7.7 584,193 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.3 8.8 995,274 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.5 995,273 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.0 116,343 270 3 85,488 1 42,744 osh-native
ex.abuild-print-help 20 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 3 3 1.4 dash -
24 19 4 3.1 bash -
104 63 47 3.3 zsh -
15 12 4 28.7 bumpleak/osh mut
20 12 8 28.9 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 25 4 25.0 osh-native mut+alloc
32 16 16 25.7 osh-native mut+alloc+free
35 35 0 18.0 osh-native mut+alloc+free+gc
37 28 8 18.1 osh-native mut+alloc+free+gc+exit
43 35 8 32.8 _bin/cxx-opt+nopool/osh mut+alloc
49 44 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.8 osh-native-souffle mut+alloc
29 20 8 25.3 osh-native-souffle mut+alloc+free
33 28 4 17.7 osh-native-souffle mut+alloc+free+gc
35 27 8 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 21 0 1.6 dash -
88 88 0 3.3 bash -
379 215 186 3.4 zsh -
48 36 12 85.9 bumpleak/osh mut
59 55 4 85.7 _bin/cxx-opt+bumproot/osh mut
70 66 4 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 64 32 73.4 osh-native mut+alloc
104 56 48 75.4 osh-native mut+alloc+free
167 159 8 45.8 osh-native mut+alloc+free+gc
174 145 28 46.1 osh-native mut+alloc+free+gc+exit
137 102 35 98.0 _bin/cxx-opt+nopool/osh mut+alloc
251 231 20 60.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 50 37 73.2 osh-native-souffle mut+alloc
95 44 51 74.9 osh-native-souffle mut+alloc+free
147 111 36 49.7 osh-native-souffle mut+alloc+free+gc
148 128 20 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 6 0 2.9 bash -
8 8 0 3.3 zsh -
6 3 3 11.7 bumpleak/osh mut
7 7 0 12.6 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
9 4 4 10.1 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 8 4 11.6 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
8 4 4 8.3 osh-native-souffle mut+alloc+free+gc
8 8 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 29 0 3.0 bash -
24 20 4 3.3 zsh -
19 19 0 32.6 bumpleak/osh mut
25 17 8 32.6 _bin/cxx-opt+bumproot/osh mut
27 19 8 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.2 osh-native mut+alloc
38 29 8 26.5 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
27 27 0 7.9 osh-native mut+alloc+free+gc+exit
53 37 16 36.2 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 8 26.0 osh-native-souffle mut+alloc
31 16 16 26.3 osh-native-souffle mut+alloc+free
22 22 0 7.7 osh-native-souffle mut+alloc+free+gc
21 21 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
74 70 4 3.3 bash -
167 119 48 54.5 bumpleak/osh mut
182 125 57 54.5 _bin/cxx-opt+bumproot/osh mut
194 133 61 56.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 162 48 47.1 osh-native mut+alloc
225 160 64 48.7 osh-native mut+alloc+free
182 130 51 8.8 osh-native mut+alloc+free+gc
181 118 63 8.9 osh-native mut+alloc+free+gc+exit
232 156 76 63.1 _bin/cxx-opt+nopool/osh mut+alloc
211 166 45 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 128 76 46.6 osh-native-souffle mut+alloc
210 126 83 48.3 osh-native-souffle mut+alloc+free
175 135 40 8.5 osh-native-souffle mut+alloc+free+gc
173 87 87 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
9 8 1 3.4 dash -
19 17 3 4.3 bash -
18 12 7 3.5 zsh -
18 16 2 12.0 bumpleak/osh mut
21 12 9 13.5 _bin/cxx-opt+bumproot/osh mut
21 11 10 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 9 11.0 osh-native mut+alloc
22 13 10 11.1 osh-native mut+alloc+free
21 19 2 9.0 osh-native mut+alloc+free+gc
22 17 5 9.0 osh-native mut+alloc+free+gc+exit
24 22 2 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 19 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 14 5 10.6 osh-native-souffle mut+alloc
21 12 9 10.7 osh-native-souffle mut+alloc+free
20 15 6 8.7 osh-native-souffle mut+alloc+free+gc
22 21 2 8.5 osh-native-souffle mut+alloc+free+gc+exit