Memory Management Overhead

Source code: oils/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 33 4 11 12.0 18.1 471,264 1,282 6 413,144 5 206,572 osh-native
parse.configure-cpython 35 4 10 12.0 18.6 471,264 1,282 6 413,152 5 206,576 osh-nosouffle
parse.configure-coreutils 135 22 58 45.9 51.6 1,638,003 4,764 12 1,056,642 6 787,842 osh-native
parse.configure-coreutils 137 22 56 45.9 52.1 1,638,002 4,764 12 1,056,650 6 787,846 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,792 180 3 86,630 1 43,315 osh-native
parse.abuild 9 1 2 2.6 9.2 102,792 180 3 86,638 1 43,319 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 572,116 22,608 12 50,000 0 2,983 osh-native
ex.compute-fib 24 0 2 2.8 8.7 572,116 22,608 12 50,000 0 2,986 osh-nosouffle
ex.bashcomp-parse-help 222 0 4 11.6 9.2 990,262 15,258 21 50,000 0 3,964 osh-native
ex.bashcomp-parse-help 225 0 3 11.6 9.4 990,261 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,220 277 3 83,992 1 41,996 osh-native
ex.abuild-print-help 21 1 2 3.0 10.0 117,219 277 3 84,000 1 42,000 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.7 dash -
13 11 2 3.3 bash -
88 56 39 3.5 zsh -
15 11 4 30.5 bumpleak/osh mut
16 11 5 28.8 _bin/cxx-opt+bumproot/osh mut
19 15 4 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 18 7 25.4 osh-native mut+alloc
27 17 10 25.7 osh-native mut+alloc+free
33 26 7 18.1 osh-native mut+alloc+free+gc
33 28 5 18.4 osh-native mut+alloc+free+gc+exit
28 16 11 25.8 osh-nosouffle mut+alloc
30 19 11 26.2 osh-nosouffle mut+alloc+free
35 29 6 18.6 osh-nosouffle mut+alloc+free+gc
37 32 5 18.7 osh-nosouffle mut+alloc+free+gc+exit
38 26 12 32.2 _bin/cxx-opt+nopool/osh mut+alloc
44 32 13 23.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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
23 22 1 1.8 dash -
42 41 1 3.4 bash -
325 189 158 3.7 zsh -
45 39 6 84.6 bumpleak/osh mut
48 37 11 85.7 _bin/cxx-opt+bumproot/osh mut
57 45 12 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
81 48 33 73.7 osh-native mut+alloc
90 61 30 75.4 osh-native mut+alloc+free
135 106 29 51.6 osh-native mut+alloc+free+gc
143 120 23 52.3 osh-native mut+alloc+free+gc+exit
90 57 33 74.1 osh-nosouffle mut+alloc
99 63 36 75.9 osh-nosouffle mut+alloc+free
137 114 23 52.1 osh-nosouffle mut+alloc+free+gc
142 118 24 53.1 osh-nosouffle mut+alloc+free+gc+exit
126 77 50 98.6 _bin/cxx-opt+nopool/osh mut+alloc
193 154 39 72.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

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.6 dash -
4 3 1 3.3 bash -
6 5 2 3.4 zsh -
6 4 2 14.5 bumpleak/osh mut
6 3 3 11.7 _bin/cxx-opt+bumproot/osh mut
7 5 1 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 2 6 10.5 osh-native mut+alloc
8 7 1 10.6 osh-native mut+alloc+free
9 8 1 8.7 osh-native mut+alloc+free+gc
9 6 3 8.8 osh-native mut+alloc+free+gc+exit
10 6 3 11.1 osh-nosouffle mut+alloc
9 7 2 11.1 osh-nosouffle mut+alloc+free
9 5 4 9.2 osh-nosouffle mut+alloc+free+gc
10 9 1 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 10 1 11.9 _bin/cxx-opt+nopool/osh mut+alloc
11 7 5 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.compute-fib

A synthetic benchmark for POSIX shell arithmetic.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
9 8 1 1.4 dash -
31 30 1 3.1 bash -
21 18 3 3.5 zsh -
17 11 6 32.2 bumpleak/osh mut
18 13 4 32.0 _bin/cxx-opt+bumproot/osh mut
21 14 7 33.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 21 7 26.9 osh-native mut+alloc
29 20 9 27.1 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
20 19 1 8.1 osh-native mut+alloc+free+gc+exit
32 19 13 27.3 osh-nosouffle mut+alloc
34 23 11 27.5 osh-nosouffle mut+alloc+free
24 20 5 8.7 osh-nosouffle mut+alloc+free+gc
24 21 3 8.8 osh-nosouffle mut+alloc+free+gc+exit
45 26 19 36.3 _bin/cxx-opt+nopool/osh mut+alloc
30 29 1 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
104 102 2 3.5 bash -
214 168 46 56.6 bumpleak/osh mut
220 170 50 56.2 _bin/cxx-opt+bumproot/osh mut
237 171 66 58.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
253 177 76 48.8 osh-native mut+alloc
261 199 62 50.6 osh-native mut+alloc+free
222 175 47 9.2 osh-native mut+alloc+free+gc
219 164 55 9.0 osh-native mut+alloc+free+gc+exit
260 180 80 49.3 osh-nosouffle mut+alloc
269 196 74 51.1 osh-nosouffle mut+alloc+free
225 173 52 9.4 osh-nosouffle mut+alloc+free+gc
226 181 45 9.4 osh-nosouffle mut+alloc+free+gc+exit
277 202 75 65.7 _bin/cxx-opt+nopool/osh mut+alloc
249 193 56 10.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.abuild-print-help

Running abuild -h from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
9 6 4 4.1 dash -
16 11 6 4.8 bash -
16 6 10 4.1 zsh -
17 8 10 12.2 bumpleak/osh mut
19 9 10 13.2 _bin/cxx-opt+bumproot/osh mut
18 5 13 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 12 8 11.5 osh-native mut+alloc
20 9 11 11.7 osh-native mut+alloc+free
20 9 11 9.4 osh-native mut+alloc+free+gc
21 12 9 9.7 osh-native mut+alloc+free+gc+exit
20 10 11 12.2 osh-nosouffle mut+alloc
21 10 12 12.2 osh-nosouffle mut+alloc+free
21 11 10 10.0 osh-nosouffle mut+alloc+free+gc
22 12 11 10.1 osh-nosouffle mut+alloc+free+gc+exit
22 10 13 13.2 _bin/cxx-opt+nopool/osh mut+alloc
23 14 10 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc