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 36 4 10 12.1 18.0 476,735 1,282 6 409,280 5 204,640 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,735 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 152 20 68 41.1 45.9 1,653,323 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 132 22 56 44.6 49.7 1,653,322 4,764 12 1,030,664 6 769,416 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,926 180 2 75,252 1 37,626 osh-native
parse.abuild 8 1 1 2.6 8.0 101,926 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 28 0 2 2.4 8.1 584,191 22,608 12 50,000 0 2,903 osh-native
ex.compute-fib 22 0 1 2.4 7.7 584,191 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 180 0 4 10.3 8.8 995,272 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 174 0 3 10.3 8.3 995,271 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,341 270 3 85,488 1 42,744 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,341 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 7 0 1.6 dash -
23 23 0 3.1 bash -
104 83 28 3.4 zsh -
15 8 8 28.7 bumpleak/osh mut
19 14 5 29.4 _bin/cxx-opt+bumproot/osh mut
22 13 9 29.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 30 0 25.2 osh-native mut+alloc
31 22 9 25.6 osh-native mut+alloc+free
36 27 9 18.0 osh-native mut+alloc+free+gc
36 28 8 18.1 osh-native mut+alloc+free+gc+exit
42 29 13 32.2 _bin/cxx-opt+nopool/osh mut+alloc
46 35 12 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.8 osh-native-souffle mut+alloc
28 12 16 25.3 osh-native-souffle mut+alloc+free
32 32 0 17.4 osh-native-souffle mut+alloc+free+gc
34 22 11 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.6 dash -
78 78 0 3.3 bash -
375 226 170 3.4 zsh -
49 42 8 85.0 bumpleak/osh mut
60 56 4 84.9 _bin/cxx-opt+bumproot/osh mut
70 61 8 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 48 48 73.6 osh-native mut+alloc
105 88 16 75.3 osh-native mut+alloc+free
152 120 32 45.9 osh-native mut+alloc+free+gc
157 137 20 46.0 osh-native mut+alloc+free+gc+exit
139 71 67 98.3 _bin/cxx-opt+nopool/osh mut+alloc
209 169 39 60.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 58 29 73.2 osh-native-souffle mut+alloc
95 63 32 75.0 osh-native-souffle mut+alloc+free
132 108 24 49.7 osh-native-souffle mut+alloc+free+gc
136 96 40 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.3 dash -
6 6 0 2.9 bash -
8 4 4 3.1 zsh -
6 0 6 12.1 bumpleak/osh mut
6 6 0 11.4 _bin/cxx-opt+bumproot/osh mut
6 6 0 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
9 3 6 10.2 osh-native mut+alloc+free
9 4 4 8.5 osh-native mut+alloc+free+gc
9 4 4 8.5 osh-native mut+alloc+free+gc+exit
11 7 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 0 7 9.6 osh-native-souffle mut+alloc
8 0 8 9.8 osh-native-souffle mut+alloc+free
8 8 0 8.0 osh-native-souffle mut+alloc+free+gc
8 4 4 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.6 dash -
28 28 0 3.0 bash -
24 12 12 3.1 zsh -
18 14 5 32.5 bumpleak/osh mut
25 21 4 32.1 _bin/cxx-opt+bumproot/osh mut
27 19 8 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.1 osh-native mut+alloc
37 29 8 26.7 osh-native mut+alloc+free
28 28 0 8.1 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 41 12 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 30 0 26.0 osh-native-souffle mut+alloc
31 27 4 26.3 osh-native-souffle mut+alloc+free
22 22 0 7.7 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
73 73 0 3.1 bash -
166 85 81 54.5 bumpleak/osh mut
180 120 60 55.2 _bin/cxx-opt+bumproot/osh mut
193 120 72 56.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 145 64 47.1 osh-native mut+alloc
217 141 76 48.7 osh-native mut+alloc+free
180 120 60 8.8 osh-native mut+alloc+free+gc
180 140 40 8.7 osh-native mut+alloc+free+gc+exit
236 156 80 62.6 _bin/cxx-opt+nopool/osh mut+alloc
208 140 68 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 142 61 46.6 osh-native-souffle mut+alloc
209 149 60 48.3 osh-native-souffle mut+alloc+free
174 145 28 8.3 osh-native-souffle mut+alloc+free+gc
173 122 51 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 5 6 3.4 dash -
19 18 2 4.5 bash -
17 13 5 3.4 zsh -
19 13 6 12.1 bumpleak/osh mut
19 17 3 12.2 _bin/cxx-opt+bumproot/osh mut
20 7 14 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 14 7 11.1 osh-native mut+alloc
22 13 9 11.1 osh-native mut+alloc+free
22 17 5 9.0 osh-native mut+alloc+free+gc
22 12 11 9.2 osh-native mut+alloc+free+gc+exit
24 18 7 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 22 3 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 15 5 10.6 osh-native-souffle mut+alloc
21 11 10 10.7 osh-native-souffle mut+alloc+free
21 13 8 8.7 osh-native-souffle mut+alloc+free+gc
21 16 6 8.5 osh-native-souffle mut+alloc+free+gc+exit