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 37 5 13 12.0 18.4 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 36 4 11 12.0 18.7 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 142 26 68 45.9 52.0 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 141 25 59 45.9 52.1 1,638,001 4,764 12 1,056,648 6 787,845 osh-nosouffle
parse.abuild 10 1 2 2.6 8.7 102,791 180 3 86,628 1 43,314 osh-native
parse.abuild 10 1 2 2.6 9.2 102,791 180 3 86,636 1 43,318 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 572,115 22,608 12 50,000 0 2,982 osh-native
ex.compute-fib 25 0 1 2.8 8.7 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 223 0 4 11.6 9.0 990,261 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 228 0 3 11.6 9.6 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.6 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,218 277 3 83,998 1 41,999 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 7 0 1.7 dash -
13 12 1 3.3 bash -
91 51 47 3.5 zsh -
16 12 3 30.2 bumpleak/osh mut
17 14 3 29.0 _bin/cxx-opt+bumproot/osh mut
19 12 7 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 16 10 25.4 osh-native mut+alloc
28 17 11 25.7 osh-native mut+alloc+free
37 27 9 18.4 osh-native mut+alloc+free+gc
34 31 3 18.2 osh-native mut+alloc+free+gc+exit
29 16 13 25.8 osh-nosouffle mut+alloc
31 16 15 26.2 osh-nosouffle mut+alloc+free
36 27 9 18.7 osh-nosouffle mut+alloc+free+gc
37 28 9 18.6 osh-nosouffle mut+alloc+free+gc+exit
41 21 20 32.5 _bin/cxx-opt+nopool/osh mut+alloc
49 38 11 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
23 22 1 1.7 dash -
42 42 0 3.3 bash -
330 178 176 3.7 zsh -
44 34 10 86.2 bumpleak/osh mut
49 40 9 84.6 _bin/cxx-opt+bumproot/osh mut
59 48 11 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 52 31 73.5 osh-native mut+alloc
93 61 32 75.5 osh-native mut+alloc+free
142 124 18 52.0 osh-native mut+alloc+free+gc
143 125 18 52.3 osh-native mut+alloc+free+gc+exit
92 51 41 74.3 osh-nosouffle mut+alloc
103 73 30 75.9 osh-nosouffle mut+alloc+free
141 114 27 52.1 osh-nosouffle mut+alloc+free+gc
152 131 20 52.8 osh-nosouffle mut+alloc+free+gc+exit
125 78 47 98.4 _bin/cxx-opt+nopool/osh mut+alloc
190 156 34 71.7 _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 2 2 3.3 bash -
7 4 3 3.4 zsh -
6 4 2 11.7 bumpleak/osh mut
7 5 2 12.7 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.5 osh-native mut+alloc
9 4 4 10.6 osh-native mut+alloc+free
10 7 3 8.7 osh-native mut+alloc+free+gc
10 7 3 8.8 osh-native mut+alloc+free+gc+exit
9 4 5 11.0 osh-nosouffle mut+alloc
9 6 3 11.1 osh-nosouffle mut+alloc+free
10 6 4 9.2 osh-nosouffle mut+alloc+free+gc
11 9 2 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 9 2 11.9 _bin/cxx-opt+nopool/osh mut+alloc
13 7 6 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
10 9 1 1.4 dash -
31 30 1 3.4 bash -
21 18 3 3.4 zsh -
17 11 6 31.8 bumpleak/osh mut
18 15 3 33.8 _bin/cxx-opt+bumproot/osh mut
20 18 2 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 16 13 26.9 osh-native mut+alloc
31 21 10 27.0 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
20 17 3 8.3 osh-native mut+alloc+free+gc+exit
33 23 10 27.3 osh-nosouffle mut+alloc
38 24 14 27.7 osh-nosouffle mut+alloc+free
25 24 1 8.7 osh-nosouffle mut+alloc+free+gc
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
47 25 22 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 25 5 10.0 _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 103 1 3.5 bash -
212 157 56 57.8 bumpleak/osh mut
223 164 59 56.8 _bin/cxx-opt+bumproot/osh mut
240 174 66 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
259 180 79 48.8 osh-native mut+alloc
269 180 89 50.7 osh-native mut+alloc+free
223 175 48 9.0 osh-native mut+alloc+free+gc
223 169 54 9.0 osh-native mut+alloc+free+gc+exit
279 207 72 49.5 osh-nosouffle mut+alloc
273 197 76 51.3 osh-nosouffle mut+alloc+free
228 179 49 9.6 osh-nosouffle mut+alloc+free+gc
227 178 49 9.6 osh-nosouffle mut+alloc+free+gc+exit
282 215 67 65.9 _bin/cxx-opt+nopool/osh mut+alloc
253 217 36 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 2 7 3.9 dash -
16 9 8 4.8 bash -
15 7 9 3.8 zsh -
18 7 11 12.5 bumpleak/osh mut
20 8 13 13.2 _bin/cxx-opt+bumproot/osh mut
20 8 12 14.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 10 10 11.7 osh-native mut+alloc
20 9 11 11.8 osh-native mut+alloc+free
20 11 10 9.6 osh-native mut+alloc+free+gc
21 14 8 9.3 osh-native mut+alloc+free+gc+exit
21 10 11 12.2 osh-nosouffle mut+alloc
22 11 11 12.3 osh-nosouffle mut+alloc+free
21 12 9 10.1 osh-nosouffle mut+alloc+free+gc
22 13 9 10.0 osh-nosouffle mut+alloc+free+gc+exit
23 11 12 13.2 _bin/cxx-opt+nopool/osh mut+alloc
23 14 10 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc