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 17.7 476,708 1,282 6 409,064 5 204,532 osh-native
parse.configure-cpython 33 4 10 12.0 17.7 476,708 1,282 6 408,722 5 204,361 osh-native-souffle
parse.configure-coreutils 153 25 66 44.7 49.9 1,653,296 4,764 12 1,030,978 6 769,626 osh-native
parse.configure-coreutils 208 42 127 46.1 51.2 1,653,295 4,764 12 1,069,088 6 798,625 osh-native-souffle
parse.abuild 10 1 1 2.6 8.5 101,899 180 2 75,194 1 37,597 osh-native
parse.abuild 8 1 1 2.6 8.1 101,899 180 2 75,064 1 37,532 osh-native-souffle
ex.compute-fib 28 0 2 2.4 8.0 584,164 22,608 12 50,000 0 2,875 osh-native
ex.compute-fib 22 0 1 2.4 7.5 584,164 22,608 12 50,000 0 2,813 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.3 8.8 995,245 12,911 21 50,000 0 3,865 osh-native
ex.bashcomp-parse-help 173 0 3 10.3 8.3 995,244 12,911 21 50,000 0 3,795 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 8.9 116,314 270 3 85,430 1 42,715 osh-native
ex.abuild-print-help 22 1 2 2.8 8.5 116,314 270 3 85,306 1 42,653 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.4 dash -
24 23 0 2.9 bash -
107 57 57 3.4 zsh -
16 8 8 29.2 bumpleak/osh mut
19 15 4 29.8 _bin/cxx-opt+bumproot/osh mut
23 19 4 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.0 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
36 28 8 17.7 osh-native mut+alloc+free+gc
38 29 8 18.1 osh-native mut+alloc+free+gc+exit
43 35 8 33.1 _bin/cxx-opt+nopool/osh mut+alloc
47 24 24 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 27 4 24.8 osh-native-souffle mut+alloc
29 8 21 25.4 osh-native-souffle mut+alloc+free
33 33 0 17.7 osh-native-souffle mut+alloc+free+gc
34 26 7 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
21 21 0 1.6 dash -
78 78 0 3.3 bash -
382 203 200 3.5 zsh -
48 36 12 85.3 bumpleak/osh mut
61 57 4 85.4 _bin/cxx-opt+bumproot/osh mut
71 55 16 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 63 35 73.6 osh-native mut+alloc
105 65 40 75.3 osh-native mut+alloc+free
153 121 32 49.9 osh-native mut+alloc+free+gc
155 143 12 50.6 osh-native mut+alloc+free+gc+exit
138 91 47 97.8 _bin/cxx-opt+nopool/osh mut+alloc
211 171 40 68.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 61 27 73.2 osh-native-souffle mut+alloc
96 52 44 75.0 osh-native-souffle mut+alloc+free
208 180 28 51.2 osh-native-souffle mut+alloc+free+gc
144 124 20 51.8 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 3 3 2.9 bash -
8 4 4 3.3 zsh -
5 6 0 11.8 bumpleak/osh mut
7 7 0 12.0 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 10.1 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
10 5 5 8.5 osh-native mut+alloc+free+gc
9 3 6 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.2 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.8 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
9 9 0 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 29 0 3.0 bash -
24 24 0 3.4 zsh -
19 15 4 30.8 bumpleak/osh mut
25 18 7 31.7 _bin/cxx-opt+bumproot/osh mut
27 27 0 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.5 osh-native mut+alloc
39 34 4 26.5 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 20 8 8.0 osh-native mut+alloc+free+gc+exit
55 47 8 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
32 12 20 26.2 osh-native-souffle mut+alloc+free
22 14 7 7.5 osh-native-souffle mut+alloc+free+gc
22 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
73 65 8 3.1 bash -
167 131 37 54.5 bumpleak/osh mut
181 128 52 56.3 _bin/cxx-opt+bumproot/osh mut
195 131 64 56.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 135 75 47.1 osh-native mut+alloc
216 136 80 48.6 osh-native mut+alloc+free
180 112 68 8.8 osh-native mut+alloc+free+gc
181 149 32 8.8 osh-native mut+alloc+free+gc+exit
230 166 65 62.9 _bin/cxx-opt+nopool/osh mut+alloc
207 135 72 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 111 91 46.6 osh-native-souffle mut+alloc
211 135 76 48.5 osh-native-souffle mut+alloc+free
173 125 48 8.3 osh-native-souffle mut+alloc+free+gc
176 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 5 5 3.4 dash -
20 18 2 4.5 bash -
18 7 12 3.4 zsh -
20 17 3 12.1 bumpleak/osh mut
20 13 8 12.7 _bin/cxx-opt+bumproot/osh mut
22 14 8 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 10.9 osh-native mut+alloc
23 20 3 11.1 osh-native mut+alloc+free
23 7 16 8.9 osh-native mut+alloc+free+gc
23 14 10 9.0 osh-native mut+alloc+free+gc+exit
26 19 7 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 20 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 7 14 10.5 osh-native-souffle mut+alloc
22 11 11 10.6 osh-native-souffle mut+alloc+free
22 15 7 8.5 osh-native-souffle mut+alloc+free+gc
22 14 9 8.5 osh-native-souffle mut+alloc+free+gc+exit