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 32 4 10 12.0 18.2 471,266 1,282 6 413,148 5 206,574 osh-native
parse.configure-cpython 34 3 9 12.0 18.7 471,266 1,282 6 413,156 5 206,578 osh-nosouffle
parse.configure-coreutils 161 28 86 45.9 51.9 1,638,005 4,764 12 1,056,646 6 787,844 osh-native
parse.configure-coreutils 158 31 74 45.9 52.1 1,638,004 4,764 12 1,056,654 6 787,848 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,794 180 3 86,634 1 43,317 osh-native
parse.abuild 10 1 2 2.6 9.2 102,794 180 3 86,642 1 43,321 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.4 572,118 22,608 12 50,000 0 2,984 osh-native
ex.compute-fib 25 0 1 2.8 8.7 572,118 22,608 12 50,000 0 2,989 osh-nosouffle
ex.bashcomp-parse-help 219 0 4 11.6 9.0 990,264 15,258 21 50,000 0 3,966 osh-native
ex.bashcomp-parse-help 227 0 4 11.6 9.6 990,263 15,258 21 50,000 0 3,968 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,222 277 3 83,996 1 41,998 osh-native
ex.abuild-print-help 21 1 2 3.0 10.0 117,221 277 3 84,004 1 42,002 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 12 1 3.3 bash -
89 49 47 3.5 zsh -
15 9 6 29.7 bumpleak/osh mut
17 13 4 29.0 _bin/cxx-opt+bumproot/osh mut
19 12 7 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 19 7 25.3 osh-native mut+alloc
28 20 8 26.0 osh-native mut+alloc+free
32 23 9 18.2 osh-native mut+alloc+free+gc
34 25 9 18.4 osh-native mut+alloc+free+gc+exit
28 12 16 26.0 osh-nosouffle mut+alloc
31 24 7 26.3 osh-nosouffle mut+alloc+free
34 26 8 18.7 osh-nosouffle mut+alloc+free+gc
35 26 9 18.7 osh-nosouffle mut+alloc+free+gc+exit
38 23 15 32.2 _bin/cxx-opt+nopool/osh mut+alloc
45 30 15 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
22 22 1 1.6 dash -
42 42 0 3.4 bash -
323 164 180 3.7 zsh -
45 36 9 85.7 bumpleak/osh mut
49 42 7 84.9 _bin/cxx-opt+bumproot/osh mut
58 47 11 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 58 25 73.7 osh-native mut+alloc
94 62 32 75.6 osh-native mut+alloc+free
161 131 30 51.9 osh-native mut+alloc+free+gc
158 130 28 52.5 osh-native mut+alloc+free+gc+exit
92 60 32 74.1 osh-nosouffle mut+alloc
100 75 25 75.9 osh-nosouffle mut+alloc+free
158 141 17 52.1 osh-nosouffle mut+alloc+free+gc
155 124 31 52.8 osh-nosouffle mut+alloc+free+gc+exit
127 67 60 99.1 _bin/cxx-opt+nopool/osh mut+alloc
208 174 34 72.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 4 0 3.3 bash -
7 5 2 3.4 zsh -
6 4 2 11.9 bumpleak/osh mut
6 2 4 12.9 _bin/cxx-opt+bumproot/osh mut
7 3 4 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.6 osh-native mut+alloc
8 4 4 10.7 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 7 2 8.8 osh-native mut+alloc+free+gc+exit
8 3 6 11.0 osh-nosouffle mut+alloc
9 6 3 11.1 osh-nosouffle mut+alloc+free
10 7 3 9.2 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 7 4 11.7 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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.3 bash -
21 17 4 3.4 zsh -
16 11 5 33.6 bumpleak/osh mut
18 13 5 33.2 _bin/cxx-opt+bumproot/osh mut
21 16 5 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 26.9 osh-native mut+alloc
31 18 13 27.1 osh-native mut+alloc+free
20 16 4 8.4 osh-native mut+alloc+free+gc
20 18 2 8.1 osh-native mut+alloc+free+gc+exit
34 22 12 27.3 osh-nosouffle mut+alloc
35 23 12 27.7 osh-nosouffle mut+alloc+free
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc
25 24 1 8.8 osh-nosouffle mut+alloc+free+gc+exit
46 29 16 36.1 _bin/cxx-opt+nopool/osh mut+alloc
29 23 6 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 96 8 3.5 bash -
211 157 54 57.7 bumpleak/osh mut
221 164 57 57.9 _bin/cxx-opt+bumproot/osh mut
238 172 66 58.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
253 174 79 48.9 osh-native mut+alloc
262 192 70 50.7 osh-native mut+alloc+free
219 176 44 9.0 osh-native mut+alloc+free+gc
221 177 44 9.0 osh-native mut+alloc+free+gc+exit
262 201 61 49.3 osh-nosouffle mut+alloc
274 211 63 51.3 osh-nosouffle mut+alloc+free
227 174 53 9.6 osh-nosouffle mut+alloc+free+gc
229 175 54 9.4 osh-nosouffle mut+alloc+free+gc+exit
277 200 77 65.3 _bin/cxx-opt+nopool/osh mut+alloc
249 203 46 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 3 7 3.9 dash -
16 9 7 4.8 bash -
16 4 12 3.9 zsh -
18 8 11 13.2 bumpleak/osh mut
19 12 8 12.9 _bin/cxx-opt+bumproot/osh mut
19 6 15 13.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 11 9 11.7 osh-native mut+alloc
21 10 12 11.7 osh-native mut+alloc+free
21 12 10 9.4 osh-native mut+alloc+free+gc
21 12 10 9.7 osh-native mut+alloc+free+gc+exit
20 10 11 12.2 osh-nosouffle mut+alloc
22 12 11 12.2 osh-nosouffle mut+alloc+free
21 11 11 10.0 osh-nosouffle mut+alloc+free+gc
22 11 12 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 10 13 13.1 _bin/cxx-opt+nopool/osh mut+alloc
23 18 6 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc