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 4 11 12.1 18.0 476,737 1,282 6 409,280 5 204,640 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,737 1,282 6 408,780 5 204,390 osh-native-souffle
parse.configure-coreutils 170 24 84 41.1 45.7 1,653,325 4,764 12 1,591,962 7 795,981 osh-native
parse.configure-coreutils 143 24 66 44.6 49.7 1,653,324 4,764 12 1,030,664 6 769,416 osh-native-souffle
parse.abuild 10 1 1 2.6 8.5 101,928 180 2 75,252 1 37,626 osh-native
parse.abuild 8 1 1 2.6 8.1 101,928 180 2 75,122 1 37,561 osh-native-souffle
ex.compute-fib 28 0 2 2.4 8.0 584,193 22,608 12 50,000 0 2,903 osh-native
ex.compute-fib 22 0 2 2.4 7.5 584,193 22,608 12 50,000 0 2,841 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.9 995,274 12,911 21 50,000 0 3,891 osh-native
ex.bashcomp-parse-help 173 0 3 10.3 8.5 995,273 12,911 21 50,000 0 3,831 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,343 270 3 85,488 1 42,744 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,343 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 -
106 66 45 3.4 zsh -
16 12 4 29.9 bumpleak/osh mut
20 12 8 28.8 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 25 4 25.0 osh-native mut+alloc
32 24 8 25.7 osh-native mut+alloc+free
37 32 4 18.0 osh-native mut+alloc+free+gc
37 32 4 18.1 osh-native mut+alloc+free+gc+exit
43 35 8 31.9 _bin/cxx-opt+nopool/osh mut+alloc
50 46 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 4 23 24.8 osh-native-souffle mut+alloc
29 12 16 25.3 osh-native-souffle mut+alloc+free
33 22 11 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
22 21 0 1.6 dash -
77 77 0 3.1 bash -
379 214 184 3.4 zsh -
50 45 4 85.0 bumpleak/osh mut
61 52 8 85.7 _bin/cxx-opt+bumproot/osh mut
70 65 4 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 65 32 73.4 osh-native mut+alloc
106 93 12 75.1 osh-native mut+alloc+free
170 158 12 45.7 osh-native mut+alloc+free+gc
168 139 28 46.0 osh-native mut+alloc+free+gc+exit
139 79 60 99.3 _bin/cxx-opt+nopool/osh mut+alloc
226 194 32 61.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 47 39 73.3 osh-native-souffle mut+alloc
97 64 32 75.0 osh-native-souffle mut+alloc+free
143 123 20 49.7 osh-native-souffle mut+alloc+free+gc
150 118 32 50.2 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 3 3 12.1 bumpleak/osh mut
7 7 0 12.1 _bin/cxx-opt+bumproot/osh mut
7 4 4 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 9.8 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
10 5 5 8.5 osh-native mut+alloc+free+gc
10 10 0 8.7 osh-native mut+alloc+free+gc+exit
12 12 0 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
8 8 0 8.1 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.4 dash -
29 25 4 2.8 bash -
25 25 0 3.1 zsh -
18 14 5 30.9 bumpleak/osh mut
26 21 4 32.0 _bin/cxx-opt+bumproot/osh mut
27 23 4 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
37 22 15 26.7 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 27 0 8.0 osh-native mut+alloc+free+gc+exit
53 45 8 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 29 7 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 15 15 26.0 osh-native-souffle mut+alloc
32 16 16 26.1 osh-native-souffle mut+alloc+free
22 18 4 7.5 osh-native-souffle mut+alloc+free+gc
21 18 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
74 73 0 3.1 bash -
169 124 44 54.4 bumpleak/osh mut
183 143 40 55.2 _bin/cxx-opt+bumproot/osh mut
197 132 64 56.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 147 63 47.1 osh-native mut+alloc
218 121 97 48.7 osh-native mut+alloc+free
182 137 44 8.9 osh-native mut+alloc+free+gc
185 112 72 8.7 osh-native mut+alloc+free+gc+exit
233 177 56 63.3 _bin/cxx-opt+nopool/osh mut+alloc
210 162 48 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 109 96 46.7 osh-native-souffle mut+alloc
212 128 84 48.3 osh-native-souffle mut+alloc+free
173 121 52 8.5 osh-native-souffle mut+alloc+free+gc
174 133 40 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.4 dash -
19 14 5 4.3 bash -
18 6 13 3.5 zsh -
19 17 2 12.1 bumpleak/osh mut
20 10 10 12.6 _bin/cxx-opt+bumproot/osh mut
20 16 5 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 15 6 11.1 osh-native mut+alloc
22 11 12 11.1 osh-native mut+alloc+free
22 20 3 9.0 osh-native mut+alloc+free+gc
23 22 2 9.0 osh-native mut+alloc+free+gc+exit
25 11 14 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 19 7 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 12 8 10.6 osh-native-souffle mut+alloc
22 14 8 10.7 osh-native-souffle mut+alloc+free
21 19 2 8.7 osh-native-souffle mut+alloc+free+gc
22 11 11 8.7 osh-native-souffle mut+alloc+free+gc+exit