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 33 4 9 12.0 17.6 476,735 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 178 26 92 41.1 45.8 1,653,323 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 150 24 72 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 9 1 1 2.6 8.0 101,926 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 29 0 2 2.4 7.9 584,191 22,608 12 50,000 0 2,903 osh-native
ex.compute-fib 23 0 2 2.4 7.3 584,191 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.3 8.7 995,272 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.3 995,271 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 8.7 116,341 270 3 85,488 1 42,744 osh-native
ex.abuild-print-help 22 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 6 0 1.6 dash -
24 20 4 3.1 bash -
104 63 48 3.5 zsh -
17 13 4 28.5 bumpleak/osh mut
19 19 0 29.6 _bin/cxx-opt+bumproot/osh mut
23 22 0 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 25 4 25.2 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
37 22 15 18.2 osh-native mut+alloc+free+gc+exit
44 28 16 33.4 _bin/cxx-opt+nopool/osh mut+alloc
50 33 17 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 9 18 24.8 osh-native-souffle mut+alloc
29 12 16 25.2 osh-native-souffle mut+alloc+free
33 20 12 17.6 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
22 21 0 1.6 dash -
78 77 0 3.1 bash -
377 212 185 3.5 zsh -
49 41 8 84.5 bumpleak/osh mut
60 51 8 84.6 _bin/cxx-opt+bumproot/osh mut
70 62 8 85.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 58 38 73.6 osh-native mut+alloc
107 83 24 75.3 osh-native mut+alloc+free
178 154 24 45.8 osh-native mut+alloc+free+gc
185 161 24 46.0 osh-native mut+alloc+free+gc+exit
138 93 45 97.9 _bin/cxx-opt+nopool/osh mut+alloc
243 227 16 62.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 56 32 73.2 osh-native-souffle mut+alloc
96 64 32 75.0 osh-native-souffle mut+alloc+free
150 126 24 49.7 osh-native-souffle mut+alloc+free+gc
154 130 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 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 12.2 bumpleak/osh mut
8 4 4 11.5 _bin/cxx-opt+bumproot/osh mut
8 0 8 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
10 10 0 8.4 osh-native mut+alloc+free+gc+exit
12 12 0 11.6 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.8 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 4 4 8.0 osh-native-souffle mut+alloc+free+gc
9 9 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
10 10 0 1.4 dash -
28 28 0 2.9 bash -
24 24 0 3.3 zsh -
18 13 4 31.1 bumpleak/osh mut
26 18 7 31.9 _bin/cxx-opt+bumproot/osh mut
29 20 8 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 37 0 26.3 osh-native mut+alloc
39 31 8 26.7 osh-native mut+alloc+free
29 24 4 7.9 osh-native mut+alloc+free+gc
28 28 0 7.7 osh-native mut+alloc+free+gc+exit
56 34 21 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 18 13 26.0 osh-native-souffle mut+alloc
33 16 16 26.3 osh-native-souffle mut+alloc+free
23 23 0 7.3 osh-native-souffle mut+alloc+free+gc
22 15 7 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 69 4 3.1 bash -
167 111 56 55.1 bumpleak/osh mut
181 117 64 54.6 _bin/cxx-opt+bumproot/osh mut
193 122 71 55.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 124 88 47.1 osh-native mut+alloc
223 155 68 48.7 osh-native mut+alloc+free
184 156 28 8.7 osh-native mut+alloc+free+gc
184 132 52 8.8 osh-native mut+alloc+free+gc+exit
235 158 77 64.4 _bin/cxx-opt+nopool/osh mut+alloc
215 187 28 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 134 73 46.6 osh-native-souffle mut+alloc
210 119 91 48.2 osh-native-souffle mut+alloc+free
174 143 32 8.3 osh-native-souffle mut+alloc+free+gc
177 140 36 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 10 0 3.5 dash -
20 16 4 4.5 bash -
18 6 13 3.4 zsh -
20 7 14 12.7 bumpleak/osh mut
21 11 10 13.2 _bin/cxx-opt+bumproot/osh mut
22 20 2 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 17 5 11.0 osh-native mut+alloc
23 21 3 11.1 osh-native mut+alloc+free
23 21 3 8.7 osh-native mut+alloc+free+gc
23 22 2 8.9 osh-native mut+alloc+free+gc+exit
25 13 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 13 13 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 14 6 10.6 osh-native-souffle mut+alloc
22 8 15 10.6 osh-native-souffle mut+alloc+free
22 11 12 8.5 osh-native-souffle mut+alloc+free+gc
22 16 7 8.5 osh-native-souffle mut+alloc+free+gc+exit