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 10 12.1 18.0 476,708 1,282 6 409,064 5 204,532 osh-native
parse.configure-cpython 34 4 10 12.0 17.6 476,708 1,282 6 408,722 5 204,361 osh-native-souffle
parse.configure-coreutils 156 25 69 44.7 50.1 1,653,296 4,764 12 1,030,978 6 769,626 osh-native
parse.configure-coreutils 153 27 76 46.1 51.2 1,653,295 4,764 12 1,069,088 6 798,625 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,899 180 2 75,194 1 37,597 osh-native
parse.abuild 9 1 1 2.6 8.0 101,899 180 2 75,064 1 37,532 osh-native-souffle
ex.compute-fib 28 0 1 2.4 8.0 584,164 22,608 12 50,000 0 2,875 osh-native
ex.compute-fib 22 0 2 2.4 7.6 584,164 22,608 12 50,000 0 2,813 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.3 8.7 995,245 12,911 21 50,000 0 3,865 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.4 995,244 12,911 21 50,000 0 3,795 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,314 270 3 85,430 1 42,715 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 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 -
23 23 0 3.1 bash -
105 68 44 3.3 zsh -
16 16 0 29.9 bumpleak/osh mut
19 11 8 29.1 _bin/cxx-opt+bumproot/osh mut
23 22 0 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
37 28 8 18.0 osh-native mut+alloc+free+gc
37 28 8 18.2 osh-native mut+alloc+free+gc+exit
43 38 4 32.4 _bin/cxx-opt+nopool/osh mut+alloc
49 45 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.8 osh-native-souffle mut+alloc
28 20 8 25.2 osh-native-souffle mut+alloc+free
34 33 0 17.6 osh-native-souffle mut+alloc+free+gc
34 29 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
22 21 0 1.6 dash -
78 73 4 3.1 bash -
374 222 172 3.5 zsh -
48 32 16 84.9 bumpleak/osh mut
61 56 4 84.4 _bin/cxx-opt+bumproot/osh mut
71 59 12 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 59 39 73.4 osh-native mut+alloc
104 48 56 75.3 osh-native mut+alloc+free
156 148 8 50.1 osh-native mut+alloc+free+gc
160 120 40 50.6 osh-native mut+alloc+free+gc+exit
138 105 32 97.9 _bin/cxx-opt+nopool/osh mut+alloc
219 195 24 67.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 54 33 73.0 osh-native-souffle mut+alloc
96 76 20 75.0 osh-native-souffle mut+alloc+free
153 137 16 51.2 osh-native-souffle mut+alloc+free+gc
158 134 24 52.0 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.3 dash -
6 6 0 2.9 bash -
8 4 4 3.1 zsh -
6 6 0 11.0 bumpleak/osh mut
7 7 0 11.8 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 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
9 5 5 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 8 0 8.0 osh-native-souffle mut+alloc+free+gc
9 0 9 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.3 dash -
28 28 0 2.9 bash -
24 16 8 3.1 zsh -
19 11 7 32.4 bumpleak/osh mut
25 18 7 31.9 _bin/cxx-opt+bumproot/osh mut
29 20 8 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.2 osh-native mut+alloc
38 23 15 26.7 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
54 41 12 36.1 _bin/cxx-opt+nopool/osh mut+alloc
38 29 8 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 11 18 25.8 osh-native-souffle mut+alloc
32 24 8 26.2 osh-native-souffle mut+alloc+free
22 17 4 7.6 osh-native-souffle mut+alloc+free+gc
22 14 7 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 73 0 3.0 bash -
169 120 48 54.2 bumpleak/osh mut
181 132 48 55.5 _bin/cxx-opt+bumproot/osh mut
193 117 76 55.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 141 69 47.0 osh-native mut+alloc
220 159 60 48.7 osh-native mut+alloc+free
182 129 52 8.7 osh-native mut+alloc+free+gc
182 133 48 8.7 osh-native mut+alloc+free+gc+exit
233 136 96 63.1 _bin/cxx-opt+nopool/osh mut+alloc
209 145 64 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 129 77 46.6 osh-native-souffle mut+alloc
211 143 68 48.4 osh-native-souffle mut+alloc+free
174 117 57 8.4 osh-native-souffle mut+alloc+free+gc
177 116 60 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 8 1 3.4 dash -
20 18 3 4.5 bash -
18 12 7 3.5 zsh -
20 10 9 12.7 bumpleak/osh mut
21 11 10 12.9 _bin/cxx-opt+bumproot/osh mut
20 17 4 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.1 osh-native mut+alloc
23 13 10 11.1 osh-native mut+alloc+free
22 20 3 9.0 osh-native mut+alloc+free+gc
23 16 7 8.9 osh-native mut+alloc+free+gc+exit
25 10 15 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 24 0 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 5 15 10.6 osh-native-souffle mut+alloc
22 15 7 10.7 osh-native-souffle mut+alloc+free
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc
22 20 2 8.5 osh-native-souffle mut+alloc+free+gc+exit