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 31 4 12 12.0 18.4 471,276 1,282 6 413,160 5 206,580 osh-native
parse.configure-cpython 34 4 12 12.0 18.7 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 131 22 64 45.9 51.7 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 142 22 66 45.9 52.3 1,638,014 4,764 12 1,056,666 6 787,854 osh-nosouffle
parse.abuild 8 1 2 2.6 8.5 102,804 180 3 86,646 1 43,323 osh-native
parse.abuild 9 1 2 2.6 9.3 102,804 180 3 86,654 1 43,327 osh-nosouffle
ex.compute-fib 21 0 2 2.8 8.3 572,128 22,608 12 50,000 0 2,991 osh-native
ex.compute-fib 25 0 2 2.8 8.8 572,128 22,608 12 50,000 0 2,995 osh-nosouffle
ex.bashcomp-parse-help 172 0 5 11.6 9.2 990,274 15,258 21 50,000 0 3,968 osh-native
ex.bashcomp-parse-help 176 0 5 11.6 9.7 990,273 15,258 21 50,000 0 3,974 osh-nosouffle
ex.abuild-print-help 18 1 2 3.0 9.6 117,235 277 3 84,008 1 42,004 osh-native
ex.abuild-print-help 19 1 2 3.0 10.0 117,234 277 3 84,016 1 42,008 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
5 4 1 1.7 dash -
11 10 1 3.4 bash -
65 38 32 3.5 zsh -
16 9 7 30.3 bumpleak/osh mut
17 11 6 28.8 _bin/cxx-opt+bumproot/osh mut
19 12 8 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 15 6 25.6 osh-native mut+alloc
25 15 10 26.0 osh-native mut+alloc+free
31 26 5 18.4 osh-native mut+alloc+free+gc
33 28 5 18.4 osh-native mut+alloc+free+gc+exit
25 15 9 26.1 osh-nosouffle mut+alloc
28 20 7 26.5 osh-nosouffle mut+alloc+free
34 28 6 18.7 osh-nosouffle mut+alloc+free+gc
35 29 6 18.7 osh-nosouffle mut+alloc+free+gc+exit
33 18 15 32.3 _bin/cxx-opt+nopool/osh mut+alloc
44 34 10 22.7 _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
18 17 1 1.7 dash -
38 37 1 3.4 bash -
235 141 108 3.5 zsh -
49 28 21 85.2 bumpleak/osh mut
53 37 16 86.0 _bin/cxx-opt+bumproot/osh mut
61 42 18 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
72 42 30 73.7 osh-native mut+alloc
83 58 25 75.5 osh-native mut+alloc+free
131 117 14 51.7 osh-native mut+alloc+free+gc
139 120 19 52.5 osh-native mut+alloc+free+gc+exit
81 58 22 74.1 osh-nosouffle mut+alloc
92 68 24 75.9 osh-nosouffle mut+alloc+free
142 125 17 52.3 osh-nosouffle mut+alloc+free+gc
151 138 13 52.9 osh-nosouffle mut+alloc+free+gc+exit
107 72 35 98.0 _bin/cxx-opt+nopool/osh mut+alloc
184 158 26 72.3 _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
1 1 0 1.7 dash -
3 2 2 3.1 bash -
5 1 3 3.5 zsh -
6 2 4 12.3 bumpleak/osh mut
6 3 3 12.3 _bin/cxx-opt+bumproot/osh mut
7 1 5 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
7 6 1 10.6 osh-native mut+alloc
7 6 1 10.7 osh-native mut+alloc+free
8 5 3 8.5 osh-native mut+alloc+free+gc
9 7 2 8.8 osh-native mut+alloc+free+gc+exit
8 6 2 11.0 osh-nosouffle mut+alloc
8 5 3 11.1 osh-nosouffle mut+alloc+free
9 7 2 9.3 osh-nosouffle mut+alloc+free+gc
10 9 1 9.4 osh-nosouffle mut+alloc+free+gc+exit
9 6 3 11.9 _bin/cxx-opt+nopool/osh mut+alloc
11 8 3 9.7 _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.6 dash -
29 28 1 3.4 bash -
17 14 2 3.3 zsh -
19 12 7 33.5 bumpleak/osh mut
20 13 7 32.0 _bin/cxx-opt+bumproot/osh mut
23 17 6 33.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 19 7 26.9 osh-native mut+alloc
29 20 8 27.3 osh-native mut+alloc+free
21 21 0 8.3 osh-native mut+alloc+free+gc
21 16 5 8.3 osh-native mut+alloc+free+gc+exit
30 23 7 27.4 osh-nosouffle mut+alloc
33 28 5 27.7 osh-nosouffle mut+alloc+free
25 21 4 8.8 osh-nosouffle mut+alloc+free+gc
25 24 1 8.8 osh-nosouffle mut+alloc+free+gc+exit
40 26 14 36.4 _bin/cxx-opt+nopool/osh mut+alloc
30 26 3 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
96 94 2 3.5 bash -
171 149 22 57.0 bumpleak/osh mut
180 154 26 56.6 _bin/cxx-opt+bumproot/osh mut
190 156 34 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
194 144 50 48.9 osh-native mut+alloc
204 167 37 50.9 osh-native mut+alloc+free
172 153 19 9.2 osh-native mut+alloc+free+gc
173 145 28 9.0 osh-native mut+alloc+free+gc+exit
199 154 45 49.3 osh-nosouffle mut+alloc
208 172 36 51.3 osh-nosouffle mut+alloc+free
176 150 26 9.7 osh-nosouffle mut+alloc+free+gc
178 163 15 10.0 osh-nosouffle mut+alloc+free+gc+exit
219 178 42 64.8 _bin/cxx-opt+nopool/osh mut+alloc
203 181 22 10.7 _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
7 4 3 3.8 dash -
12 9 4 4.7 bash -
11 3 8 4.1 zsh -
16 10 6 13.4 bumpleak/osh mut
15 9 6 12.8 _bin/cxx-opt+bumproot/osh mut
15 4 11 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
16 9 7 11.7 osh-native mut+alloc
17 10 8 11.7 osh-native mut+alloc+free
18 10 8 9.6 osh-native mut+alloc+free+gc
18 13 6 9.7 osh-native mut+alloc+free+gc+exit
17 12 5 12.2 osh-nosouffle mut+alloc
18 12 7 12.3 osh-nosouffle mut+alloc+free
19 12 7 10.0 osh-nosouffle mut+alloc+free+gc
19 11 8 10.2 osh-nosouffle mut+alloc+free+gc+exit
19 12 7 13.1 _bin/cxx-opt+nopool/osh mut+alloc
20 13 8 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc