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,735 1,282 6 409,280 5 204,640 osh-native
parse.configure-cpython 32 3 9 12.0 17.8 476,735 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 153 20 69 41.1 45.9 1,653,323 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 133 22 57 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.1 101,926 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 28 0 1 2.4 8.0 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 182 0 3 10.3 8.8 995,272 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 176 0 3 10.3 8.4 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 20 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 6 0 1.6 dash -
23 23 0 3.0 bash -
104 71 40 3.4 zsh -
17 17 0 28.5 bumpleak/osh mut
20 12 8 28.5 _bin/cxx-opt+bumproot/osh mut
23 11 11 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 11 18 25.2 osh-native mut+alloc
32 27 4 25.7 osh-native mut+alloc+free
35 23 12 18.0 osh-native mut+alloc+free+gc
36 24 12 18.1 osh-native mut+alloc+free+gc+exit
44 28 16 32.9 _bin/cxx-opt+nopool/osh mut+alloc
51 35 16 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.8 osh-native-souffle mut+alloc
29 28 0 25.3 osh-native-souffle mut+alloc+free
32 28 4 17.8 osh-native-souffle mut+alloc+free+gc
33 29 4 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.4 dash -
80 76 4 3.1 bash -
378 232 168 3.4 zsh -
50 34 15 85.1 bumpleak/osh mut
61 42 19 85.5 _bin/cxx-opt+bumproot/osh mut
70 58 12 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 68 28 73.6 osh-native mut+alloc
106 94 12 75.4 osh-native mut+alloc+free
153 129 24 45.9 osh-native mut+alloc+free+gc
158 146 12 46.2 osh-native mut+alloc+free+gc+exit
139 76 64 99.2 _bin/cxx-opt+nopool/osh mut+alloc
220 192 28 60.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 64 24 73.2 osh-native-souffle mut+alloc
96 64 32 75.0 osh-native-souffle mut+alloc+free
133 121 12 49.7 osh-native-souffle mut+alloc+free+gc
140 120 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 4 4 3.3 zsh -
6 6 0 10.6 bumpleak/osh mut
6 3 3 12.2 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 4 4 8.5 osh-native mut+alloc+free+gc
9 5 5 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 4 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.6 osh-native-souffle mut+alloc
8 0 8 9.7 osh-native-souffle mut+alloc+free
8 8 0 8.1 osh-native-souffle mut+alloc+free+gc
8 8 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
12 12 0 1.4 dash -
28 28 0 3.0 bash -
23 16 8 3.3 zsh -
18 18 0 31.5 bumpleak/osh mut
25 25 0 33.2 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
37 25 12 26.7 osh-native mut+alloc+free
28 20 8 8.0 osh-native mut+alloc+free+gc
28 24 4 7.7 osh-native mut+alloc+free+gc+exit
53 41 12 36.2 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 7 26.0 osh-native-souffle mut+alloc
31 19 12 26.5 osh-native-souffle mut+alloc+free
22 22 0 7.7 osh-native-souffle mut+alloc+free+gc
22 22 0 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 73 0 3.3 bash -
168 120 48 54.1 bumpleak/osh mut
182 141 40 54.7 _bin/cxx-opt+bumproot/osh mut
192 147 44 55.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 147 63 47.1 osh-native mut+alloc
218 119 99 48.8 osh-native mut+alloc+free
182 127 55 8.8 osh-native mut+alloc+free+gc
180 116 64 8.8 osh-native mut+alloc+free+gc+exit
232 148 84 63.2 _bin/cxx-opt+nopool/osh mut+alloc
209 152 56 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 132 72 46.6 osh-native-souffle mut+alloc
211 118 93 48.3 osh-native-souffle mut+alloc+free
176 132 44 8.4 osh-native-souffle mut+alloc+free+gc
174 95 79 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 6 4 3.5 dash -
20 12 8 4.3 bash -
18 12 7 3.5 zsh -
18 13 5 11.3 bumpleak/osh mut
20 13 7 14.6 _bin/cxx-opt+bumproot/osh mut
20 13 7 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 20 1 11.1 osh-native mut+alloc
22 16 6 11.1 osh-native mut+alloc+free
22 13 10 9.0 osh-native mut+alloc+free+gc
23 13 10 9.0 osh-native mut+alloc+free+gc+exit
25 21 4 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 20 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 14 7 10.5 osh-native-souffle mut+alloc
21 6 15 10.6 osh-native-souffle mut+alloc+free
20 18 3 8.7 osh-native-souffle mut+alloc+free+gc
21 14 8 8.5 osh-native-souffle mut+alloc+free+gc+exit