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 18.1 476,708 1,282 6 409,064 5 204,532 osh-native
parse.configure-cpython 33 4 10 12.0 17.6 476,708 1,282 6 408,722 5 204,361 osh-native-souffle
parse.configure-coreutils 149 24 62 44.7 49.9 1,653,296 4,764 12 1,030,978 6 769,626 osh-native
parse.configure-coreutils 147 26 70 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 14 1 2 2.6 8.1 101,899 180 2 75,064 1 37,532 osh-native-souffle
ex.compute-fib 29 0 1 2.4 7.9 584,164 22,608 12 50,000 0 2,875 osh-native
ex.compute-fib 22 0 2 2.4 7.5 584,164 22,608 12 50,000 0 2,813 osh-native-souffle
ex.bashcomp-parse-help 183 0 3 10.3 8.5 995,245 12,911 21 50,000 0 3,865 osh-native
ex.bashcomp-parse-help 175 0 4 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 9.2 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.6 dash -
24 19 4 3.0 bash -
105 65 47 3.3 zsh -
17 17 0 29.6 bumpleak/osh mut
20 12 8 29.6 _bin/cxx-opt+bumproot/osh mut
22 11 11 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 15 15 25.0 osh-native mut+alloc
32 16 16 25.6 osh-native mut+alloc+free
36 24 12 18.1 osh-native mut+alloc+free+gc
36 36 0 18.1 osh-native mut+alloc+free+gc+exit
44 20 24 32.5 _bin/cxx-opt+nopool/osh mut+alloc
50 39 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 11 24.8 osh-native-souffle mut+alloc
29 18 11 25.3 osh-native-souffle mut+alloc+free
33 29 4 17.6 osh-native-souffle mut+alloc+free+gc
35 31 4 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 18 4 1.6 dash -
78 78 0 3.3 bash -
379 239 163 3.5 zsh -
49 45 4 85.4 bumpleak/osh mut
61 52 8 86.3 _bin/cxx-opt+bumproot/osh mut
70 57 12 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 69 28 73.6 osh-native mut+alloc
105 65 40 75.4 osh-native mut+alloc+free
149 120 28 49.9 osh-native mut+alloc+free+gc
160 140 20 50.6 osh-native mut+alloc+free+gc+exit
138 94 45 99.3 _bin/cxx-opt+nopool/osh mut+alloc
232 196 36 68.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 55 32 73.2 osh-native-souffle mut+alloc
96 44 52 74.9 osh-native-souffle mut+alloc+free
147 111 36 51.2 osh-native-souffle mut+alloc+free+gc
156 132 24 51.9 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 3.0 bash -
8 4 4 3.3 zsh -
6 0 6 10.4 bumpleak/osh mut
7 7 0 11.9 _bin/cxx-opt+bumproot/osh mut
7 0 7 10.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.1 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 0 8 9.7 osh-native-souffle mut+alloc+free
14 10 4 8.1 osh-native-souffle mut+alloc+free+gc
9 9 0 8.3 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 -
24 9 14 3.3 zsh -
19 15 4 31.9 bumpleak/osh mut
26 22 4 32.1 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.1 osh-native mut+alloc
39 23 15 26.5 osh-native mut+alloc+free
29 29 0 7.9 osh-native mut+alloc+free+gc
29 28 0 8.0 osh-native mut+alloc+free+gc+exit
53 38 15 36.5 _bin/cxx-opt+nopool/osh mut+alloc
38 37 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 9 26.0 osh-native-souffle mut+alloc
32 28 4 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.5 osh-native-souffle mut+alloc+free+gc
23 15 7 7.5 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
72 61 11 3.1 bash -
169 108 60 55.4 bumpleak/osh mut
181 136 44 55.2 _bin/cxx-opt+bumproot/osh mut
194 133 60 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 140 72 47.0 osh-native mut+alloc
217 157 60 48.7 osh-native mut+alloc+free
183 115 67 8.5 osh-native mut+alloc+free+gc
182 123 59 8.5 osh-native mut+alloc+free+gc+exit
235 147 88 62.7 _bin/cxx-opt+nopool/osh mut+alloc
209 165 43 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 136 68 46.6 osh-native-souffle mut+alloc
210 141 69 48.4 osh-native-souffle mut+alloc+free
175 131 44 8.3 osh-native-souffle mut+alloc+free+gc
175 131 44 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 10 0 3.4 dash -
19 18 2 4.3 bash -
18 6 12 3.5 zsh -
19 11 8 12.5 bumpleak/osh mut
20 13 6 13.7 _bin/cxx-opt+bumproot/osh mut
20 12 9 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.1 osh-native mut+alloc
22 16 6 11.1 osh-native mut+alloc+free
22 14 8 9.2 osh-native mut+alloc+free+gc
23 19 4 9.2 osh-native mut+alloc+free+gc+exit
24 15 9 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 16 5 10.6 osh-native-souffle mut+alloc
21 19 3 10.7 osh-native-souffle mut+alloc+free
21 20 2 8.7 osh-native-souffle mut+alloc+free+gc
22 15 7 8.7 osh-native-souffle mut+alloc+free+gc+exit