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 34 4 11 12.0 18.5 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 37 5 12 12.0 18.6 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 141 24 66 45.9 51.9 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 143 24 60 45.9 52.1 1,638,001 4,764 12 1,056,648 6 787,845 osh-nosouffle
parse.abuild 10 1 3 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 21 0 2 2.8 8.3 572,115 22,608 12 50,000 0 2,982 osh-native
ex.compute-fib 24 0 2 2.8 8.7 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 225 0 4 11.6 8.9 990,261 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 236 0 4 11.6 9.4 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 25 1 3 3.0 10.0 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 -
89 55 41 3.5 zsh -
15 11 4 29.6 bumpleak/osh mut
17 11 6 29.2 _bin/cxx-opt+bumproot/osh mut
19 13 6 30.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 13 13 25.3 osh-native mut+alloc
29 16 13 26.0 osh-native mut+alloc+free
34 29 5 18.5 osh-native mut+alloc+free+gc
34 24 10 18.3 osh-native mut+alloc+free+gc+exit
28 17 11 26.0 osh-nosouffle mut+alloc
31 25 6 26.3 osh-nosouffle mut+alloc+free
37 28 9 18.6 osh-nosouffle mut+alloc+free+gc
37 30 7 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 22 17 32.9 _bin/cxx-opt+nopool/osh mut+alloc
47 41 6 22.6 _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.6 dash -
42 40 2 3.4 bash -
333 189 167 3.7 zsh -
46 36 10 84.9 bumpleak/osh mut
50 37 13 85.9 _bin/cxx-opt+bumproot/osh mut
59 48 11 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 53 30 73.5 osh-native mut+alloc
92 57 34 75.5 osh-native mut+alloc+free
141 121 19 51.9 osh-native mut+alloc+free+gc
142 129 13 52.5 osh-native mut+alloc+free+gc+exit
91 57 35 73.9 osh-nosouffle mut+alloc
101 62 39 76.0 osh-nosouffle mut+alloc+free
143 123 20 52.1 osh-nosouffle mut+alloc+free+gc
149 126 23 52.9 osh-nosouffle mut+alloc+free+gc+exit
129 80 49 98.4 _bin/cxx-opt+nopool/osh mut+alloc
202 168 33 71.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 1 1 1.6 dash -
4 2 1 3.1 bash -
7 6 1 3.5 zsh -
6 4 3 11.3 bumpleak/osh mut
7 2 5 12.1 _bin/cxx-opt+bumproot/osh mut
8 5 3 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 2 6 10.7 osh-native mut+alloc
9 5 4 10.6 osh-native mut+alloc+free
10 5 5 8.7 osh-native mut+alloc+free+gc
10 8 2 8.9 osh-native mut+alloc+free+gc+exit
9 5 4 10.9 osh-nosouffle mut+alloc
10 6 3 11.0 osh-nosouffle mut+alloc+free
10 9 2 9.2 osh-nosouffle mut+alloc+free+gc
11 7 4 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 7 4 11.8 _bin/cxx-opt+nopool/osh mut+alloc
13 10 3 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 9 0 1.6 dash -
31 30 1 3.3 bash -
21 15 6 3.5 zsh -
17 11 6 32.9 bumpleak/osh mut
19 13 6 33.2 _bin/cxx-opt+bumproot/osh mut
22 18 4 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 26.9 osh-native mut+alloc
31 22 9 27.1 osh-native mut+alloc+free
21 18 3 8.3 osh-native mut+alloc+free+gc
20 16 4 8.4 osh-native mut+alloc+free+gc+exit
34 24 10 27.3 osh-nosouffle mut+alloc
35 25 10 27.5 osh-nosouffle mut+alloc+free
24 22 2 8.7 osh-nosouffle mut+alloc+free+gc
25 24 1 8.5 osh-nosouffle mut+alloc+free+gc+exit
46 27 19 36.7 _bin/cxx-opt+nopool/osh mut+alloc
31 27 4 9.7 _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
108 103 4 3.4 bash -
214 174 40 56.2 bumpleak/osh mut
230 172 59 57.8 _bin/cxx-opt+bumproot/osh mut
242 183 59 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
258 194 64 48.9 osh-native mut+alloc
265 207 58 50.7 osh-native mut+alloc+free
225 175 50 8.9 osh-native mut+alloc+free+gc
225 174 51 9.2 osh-native mut+alloc+free+gc+exit
273 196 77 49.3 osh-nosouffle mut+alloc
277 205 72 51.4 osh-nosouffle mut+alloc+free
236 190 45 9.4 osh-nosouffle mut+alloc+free+gc
235 189 46 9.4 osh-nosouffle mut+alloc+free+gc+exit
284 203 81 66.2 _bin/cxx-opt+nopool/osh mut+alloc
270 208 62 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
9 4 6 3.9 dash -
16 8 9 4.8 bash -
16 6 11 3.9 zsh -
18 9 9 14.1 bumpleak/osh mut
18 14 5 12.7 _bin/cxx-opt+bumproot/osh mut
19 10 10 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 7 14 11.7 osh-native mut+alloc
22 12 10 11.7 osh-native mut+alloc+free
21 11 11 9.4 osh-native mut+alloc+free+gc
22 12 11 9.6 osh-native mut+alloc+free+gc+exit
21 9 13 12.2 osh-nosouffle mut+alloc
22 8 15 12.3 osh-nosouffle mut+alloc+free
25 16 10 10.0 osh-nosouffle mut+alloc+free+gc
23 11 12 10.2 osh-nosouffle mut+alloc+free+gc+exit
24 8 16 13.1 _bin/cxx-opt+nopool/osh mut+alloc
25 11 15 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc