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 37 5 11 12.0 18.0 476,655 1,282 6 408,744 5 204,372 osh-native
parse.configure-cpython 35 5 11 12.0 17.3 476,655 1,282 6 408,614 5 204,307 osh-native-souffle
parse.configure-coreutils 175 29 87 46.1 51.6 1,653,243 4,764 12 1,069,110 6 798,636 osh-native
parse.configure-coreutils 173 28 96 41.0 45.4 1,653,242 4,764 12 1,591,666 7 795,833 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,846 180 2 75,086 1 37,543 osh-native
parse.abuild 9 1 2 2.4 8.0 101,846 180 3 87,182 1 43,591 osh-native-souffle
ex.compute-fib 29 0 2 2.4 7.9 584,114 22,608 12 50,000 0 2,820 osh-native
ex.compute-fib 21 0 1 2.4 7.3 584,114 22,608 12 50,000 0 2,758 osh-native-souffle
ex.bashcomp-parse-help 178 0 4 10.3 8.8 995,191 12,911 21 50,000 0 3,817 osh-native
ex.bashcomp-parse-help 172 0 4 10.3 8.1 995,190 12,911 21 50,000 0 3,741 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,261 270 3 85,322 1 42,661 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,261 270 3 85,198 1 42,599 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 5 1 1.6 dash -
23 22 1 3.0 bash -
100 53 54 3.4 zsh -
17 13 4 27.9 bumpleak/osh mut
20 15 5 28.2 _bin/cxx-opt+bumproot/osh mut
22 17 5 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.2 osh-native mut+alloc
32 23 9 25.4 osh-native mut+alloc+free
37 28 10 18.0 osh-native mut+alloc+free+gc
40 30 10 18.0 osh-native mut+alloc+free+gc+exit
43 26 17 32.3 _bin/cxx-opt+nopool/osh mut+alloc
52 42 9 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 17 10 24.8 osh-native-souffle mut+alloc
29 22 7 25.3 osh-native-souffle mut+alloc+free
35 29 6 17.3 osh-native-souffle mut+alloc+free+gc
36 32 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
21 18 3 1.6 dash -
78 78 0 3.1 bash -
364 184 200 3.4 zsh -
49 39 10 84.2 bumpleak/osh mut
61 52 9 84.5 _bin/cxx-opt+bumproot/osh mut
74 60 14 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 65 31 73.4 osh-native mut+alloc
106 67 39 75.3 osh-native mut+alloc+free
175 151 24 51.6 osh-native mut+alloc+free+gc
182 163 19 52.3 osh-native mut+alloc+free+gc+exit
139 97 41 98.9 _bin/cxx-opt+nopool/osh mut+alloc
251 220 31 74.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 59 28 73.0 osh-native-souffle mut+alloc
96 67 29 74.9 osh-native-souffle mut+alloc+free
173 153 20 45.4 osh-native-souffle mut+alloc+free+gc
180 162 18 45.7 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 1 1 1.3 dash -
5 5 0 2.8 bash -
7 4 4 3.3 zsh -
6 3 3 10.4 bumpleak/osh mut
7 4 3 11.2 _bin/cxx-opt+bumproot/osh mut
8 7 1 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 5 10.0 osh-native mut+alloc
9 4 5 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 7 3 8.5 osh-native mut+alloc+free+gc+exit
12 9 3 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 6 6 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.6 osh-native-souffle mut+alloc
8 6 2 9.7 osh-native-souffle mut+alloc+free
9 8 1 8.0 osh-native-souffle mut+alloc+free+gc
9 7 2 7.9 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 9 1 1.4 dash -
28 27 1 3.0 bash -
23 19 4 3.3 zsh -
19 14 5 31.8 bumpleak/osh mut
25 21 4 32.1 _bin/cxx-opt+bumproot/osh mut
28 25 3 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 27 9 26.3 osh-native mut+alloc
37 23 14 26.6 osh-native mut+alloc+free
29 26 3 7.9 osh-native mut+alloc+free+gc
28 25 3 7.9 osh-native mut+alloc+free+gc+exit
52 33 19 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 31 6 9.7 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 20 9 26.0 osh-native-souffle mut+alloc
32 20 12 26.2 osh-native-souffle mut+alloc+free
21 18 3 7.3 osh-native-souffle mut+alloc+free+gc
21 20 1 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 70 4 3.1 bash -
166 103 63 54.9 bumpleak/osh mut
177 125 52 56.1 _bin/cxx-opt+bumproot/osh mut
191 136 55 56.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
208 142 66 47.0 osh-native mut+alloc
214 147 67 48.8 osh-native mut+alloc+free
178 132 46 8.8 osh-native mut+alloc+free+gc
179 127 52 8.5 osh-native mut+alloc+free+gc+exit
226 146 80 62.8 _bin/cxx-opt+nopool/osh mut+alloc
210 161 49 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
199 123 75 46.6 osh-native-souffle mut+alloc
207 133 74 48.3 osh-native-souffle mut+alloc+free
172 120 52 8.1 osh-native-souffle mut+alloc+free+gc
171 121 50 8.0 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 5 5 3.5 dash -
19 11 9 4.1 bash -
17 5 13 3.4 zsh -
20 11 10 12.7 bumpleak/osh mut
21 11 10 13.3 _bin/cxx-opt+bumproot/osh mut
22 14 8 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 5 16 11.0 osh-native mut+alloc
22 6 16 11.0 osh-native mut+alloc+free
22 14 8 9.0 osh-native mut+alloc+free+gc
23 13 11 9.0 osh-native mut+alloc+free+gc+exit
24 13 11 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 7 13 10.6 osh-native-souffle mut+alloc
22 12 10 10.6 osh-native-souffle mut+alloc+free
21 13 8 8.5 osh-native-souffle mut+alloc+free+gc
22 11 11 8.7 osh-native-souffle mut+alloc+free+gc+exit