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 10 12.1 18.0 476,735 1,282 6 409,280 5 204,640 osh-native
parse.configure-cpython 33 3 9 12.0 17.7 476,735 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 171 23 86 41.1 45.8 1,653,323 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 142 23 65 44.6 49.7 1,653,322 4,764 12 1,030,664 6 769,416 osh-native-souffle
parse.abuild 10 1 2 2.6 8.4 101,926 180 2 75,252 1 37,626 osh-native
parse.abuild 9 1 1 2.6 8.3 101,926 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 29 0 2 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.6 584,191 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.5 995,272 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 175 0 4 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 21 1 2 2.8 8.5 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
6 3 3 1.6 dash -
23 23 0 3.1 bash -
106 59 54 3.4 zsh -
16 8 8 28.7 bumpleak/osh mut
20 16 4 28.8 _bin/cxx-opt+bumproot/osh mut
23 19 4 30.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 13 25.2 osh-native mut+alloc
31 22 9 25.7 osh-native mut+alloc+free
35 28 8 18.0 osh-native mut+alloc+free+gc
37 29 8 18.2 osh-native mut+alloc+free+gc+exit
45 28 16 32.3 _bin/cxx-opt+nopool/osh mut+alloc
48 28 20 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 4 23 24.9 osh-native-souffle mut+alloc
30 21 8 25.2 osh-native-souffle mut+alloc+free
33 29 4 17.7 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
22 22 0 1.4 dash -
78 77 0 3.1 bash -
382 197 205 3.3 zsh -
49 44 4 85.4 bumpleak/osh mut
60 47 13 86.4 _bin/cxx-opt+bumproot/osh mut
88 80 8 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 64 32 73.4 osh-native mut+alloc
104 60 44 75.3 osh-native mut+alloc+free
171 143 28 45.8 osh-native mut+alloc+free+gc
178 154 24 46.0 osh-native mut+alloc+free+gc+exit
141 101 40 98.9 _bin/cxx-opt+nopool/osh mut+alloc
241 213 28 61.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 44 44 73.0 osh-native-souffle mut+alloc
97 62 35 75.0 osh-native-souffle mut+alloc+free
142 130 12 49.7 osh-native-souffle mut+alloc+free+gc
144 111 32 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 0 8 3.1 zsh -
6 0 6 11.7 bumpleak/osh mut
7 4 4 11.7 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.1 osh-native mut+alloc
9 9 0 10.2 osh-native mut+alloc+free
10 10 0 8.4 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
9 0 8 9.8 osh-native-souffle mut+alloc
8 8 0 9.7 osh-native-souffle mut+alloc+free
9 4 4 8.3 osh-native-souffle mut+alloc+free+gc
9 3 6 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.4 dash -
28 28 0 2.9 bash -
24 20 4 3.3 zsh -
18 18 0 31.0 bumpleak/osh mut
25 21 4 32.1 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.3 osh-native mut+alloc
38 34 4 26.7 osh-native mut+alloc+free
29 28 0 8.0 osh-native mut+alloc+free+gc
28 20 8 7.9 osh-native mut+alloc+free+gc+exit
55 38 17 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 15 15 26.0 osh-native-souffle mut+alloc
32 16 16 26.3 osh-native-souffle mut+alloc+free
22 22 0 7.6 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
73 68 4 3.1 bash -
166 109 57 54.3 bumpleak/osh mut
181 120 60 56.2 _bin/cxx-opt+bumproot/osh mut
195 139 56 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 131 80 47.0 osh-native mut+alloc
221 169 51 48.8 osh-native mut+alloc+free
182 139 44 8.5 osh-native mut+alloc+free+gc
188 124 64 8.8 osh-native mut+alloc+free+gc+exit
236 132 104 64.2 _bin/cxx-opt+nopool/osh mut+alloc
213 140 72 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 127 76 46.6 osh-native-souffle mut+alloc
210 125 85 48.3 osh-native-souffle mut+alloc+free
175 138 37 8.4 osh-native-souffle mut+alloc+free+gc
174 123 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 4 6 3.5 dash -
20 13 7 4.3 bash -
18 12 6 3.5 zsh -
18 13 5 13.3 bumpleak/osh mut
20 19 2 12.6 _bin/cxx-opt+bumproot/osh mut
20 13 8 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 11.1 osh-native mut+alloc
23 11 12 11.3 osh-native mut+alloc+free
22 18 5 9.0 osh-native mut+alloc+free+gc
23 18 6 8.9 osh-native mut+alloc+free+gc+exit
25 16 9 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 19 7 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 15 6 10.5 osh-native-souffle mut+alloc
22 15 8 10.6 osh-native-souffle mut+alloc+free
21 16 5 8.5 osh-native-souffle mut+alloc+free+gc
23 17 6 8.7 osh-native-souffle mut+alloc+free+gc+exit