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 39 5 12 12.1 17.8 476,708 1,282 6 409,064 5 204,532 osh-native
parse.configure-cpython 35 5 11 12.0 17.4 476,708 1,282 6 408,722 5 204,361 osh-native-souffle
parse.configure-coreutils 161 27 74 44.7 49.9 1,653,296 4,764 12 1,030,978 6 769,626 osh-native
parse.configure-coreutils 158 26 80 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 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 7.9 584,164 22,608 12 50,000 0 2,875 osh-native
ex.compute-fib 22 0 1 2.4 7.6 584,164 22,608 12 50,000 0 2,813 osh-native-souffle
ex.bashcomp-parse-help 181 0 3 10.3 8.8 995,245 12,911 21 50,000 0 3,865 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.3 995,244 12,911 21 50,000 0 3,795 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 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 19 4 3.0 bash -
107 55 58 3.3 zsh -
16 12 4 29.1 bumpleak/osh mut
20 16 4 28.7 _bin/cxx-opt+bumproot/osh mut
22 22 0 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 8 25.3 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
39 39 0 17.8 osh-native mut+alloc+free+gc
37 24 12 18.1 osh-native mut+alloc+free+gc+exit
44 24 20 32.2 _bin/cxx-opt+nopool/osh mut+alloc
53 44 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 13 13 24.8 osh-native-souffle mut+alloc
29 25 4 25.3 osh-native-souffle mut+alloc+free
35 26 9 17.4 osh-native-souffle mut+alloc+free+gc
34 34 0 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 21 0 1.6 dash -
79 79 0 3.1 bash -
379 213 187 3.5 zsh -
49 33 16 84.2 bumpleak/osh mut
59 55 4 85.8 _bin/cxx-opt+bumproot/osh mut
70 66 4 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 56 44 73.4 osh-native mut+alloc
108 76 32 75.4 osh-native mut+alloc+free
161 130 31 49.9 osh-native mut+alloc+free+gc
174 146 28 50.6 osh-native mut+alloc+free+gc+exit
140 88 52 98.8 _bin/cxx-opt+nopool/osh mut+alloc
227 183 44 68.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 61 28 73.2 osh-native-souffle mut+alloc
98 71 28 74.9 osh-native-souffle mut+alloc+free
158 129 28 51.2 osh-native-souffle mut+alloc+free+gc
166 138 28 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 3 3 3.0 bash -
8 4 4 3.3 zsh -
6 3 3 10.4 bumpleak/osh mut
7 4 4 12.6 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 0 9 10.2 osh-native mut+alloc+free
10 5 5 8.5 osh-native mut+alloc+free+gc
10 3 6 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 11 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 0 8 9.8 osh-native-souffle mut+alloc+free
9 9 0 8.0 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
11 11 0 1.4 dash -
29 28 0 3.0 bash -
23 15 8 3.3 zsh -
19 15 4 31.9 bumpleak/osh mut
26 22 4 32.2 _bin/cxx-opt+bumproot/osh mut
28 23 4 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.2 osh-native mut+alloc
37 29 8 26.7 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 37 16 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 27 4 26.0 osh-native-souffle mut+alloc
32 18 14 26.0 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
22 22 0 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 66 8 3.0 bash -
169 133 36 55.3 bumpleak/osh mut
184 124 60 55.3 _bin/cxx-opt+bumproot/osh mut
196 135 60 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 149 65 47.2 osh-native mut+alloc
219 143 76 48.7 osh-native mut+alloc+free
181 113 68 8.8 osh-native mut+alloc+free+gc
183 139 44 8.8 osh-native mut+alloc+free+gc+exit
234 145 89 62.9 _bin/cxx-opt+nopool/osh mut+alloc
217 189 28 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 142 65 46.6 osh-native-souffle mut+alloc
213 172 40 48.3 osh-native-souffle mut+alloc+free
175 115 60 8.3 osh-native-souffle mut+alloc+free+gc
175 112 64 8.3 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 2 3.5 dash -
20 11 9 4.3 bash -
18 16 2 3.4 zsh -
18 15 3 13.3 bumpleak/osh mut
22 19 3 12.0 _bin/cxx-opt+bumproot/osh mut
20 12 8 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 17 5 11.0 osh-native mut+alloc
23 16 7 11.1 osh-native mut+alloc+free
22 14 8 8.9 osh-native mut+alloc+free+gc
23 21 3 9.0 osh-native mut+alloc+free+gc+exit
25 22 3 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 14 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 11 10.5 osh-native-souffle mut+alloc
21 19 2 10.9 osh-native-souffle mut+alloc+free
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc
22 15 7 8.7 osh-native-souffle mut+alloc+free+gc+exit