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.4 471,265 1,282 6 413,146 5 206,573 osh-native
parse.configure-cpython 34 4 9 12.0 18.7 471,265 1,282 6 413,154 5 206,577 osh-nosouffle
parse.configure-coreutils 143 28 71 45.9 51.9 1,638,004 4,764 12 1,056,644 6 787,843 osh-native
parse.configure-coreutils 157 28 73 45.9 52.3 1,638,003 4,764 12 1,056,652 6 787,847 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,793 180 3 86,632 1 43,316 osh-native
parse.abuild 10 1 2 2.6 9.0 102,793 180 3 86,640 1 43,320 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.4 572,117 22,608 12 50,000 0 2,984 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,117 22,608 12 50,000 0 2,987 osh-nosouffle
ex.bashcomp-parse-help 224 0 4 11.6 9.2 990,263 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 226 0 4 11.6 9.7 990,262 15,258 21 50,000 0 3,967 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,221 277 3 83,994 1 41,997 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,220 277 3 84,002 1 42,001 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 6 1 1.6 dash -
13 11 2 3.4 bash -
89 57 39 3.5 zsh -
16 10 6 30.7 bumpleak/osh mut
16 11 5 29.5 _bin/cxx-opt+bumproot/osh mut
19 15 4 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 13 13 25.4 osh-native mut+alloc
28 17 10 26.0 osh-native mut+alloc+free
32 26 6 18.4 osh-native mut+alloc+free+gc
33 27 6 18.3 osh-native mut+alloc+free+gc+exit
28 21 7 26.0 osh-nosouffle mut+alloc
30 21 10 26.3 osh-nosouffle mut+alloc+free
34 29 5 18.7 osh-nosouffle mut+alloc+free+gc
35 30 5 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 21 18 33.3 _bin/cxx-opt+nopool/osh mut+alloc
46 40 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.7 dash -
42 41 1 3.5 bash -
321 180 163 3.7 zsh -
46 37 9 86.2 bumpleak/osh mut
48 40 8 84.7 _bin/cxx-opt+bumproot/osh mut
59 45 14 87.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 52 29 73.5 osh-native mut+alloc
93 49 44 75.4 osh-native mut+alloc+free
143 118 26 51.9 osh-native mut+alloc+free+gc
149 125 24 52.5 osh-native mut+alloc+free+gc+exit
100 62 39 74.2 osh-nosouffle mut+alloc
101 60 41 75.9 osh-nosouffle mut+alloc+free
157 144 13 52.3 osh-nosouffle mut+alloc+free+gc
162 135 27 52.8 osh-nosouffle mut+alloc+free+gc+exit
126 75 51 98.7 _bin/cxx-opt+nopool/osh mut+alloc
208 178 30 73.6 _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 4 0 3.3 bash -
6 4 3 3.3 zsh -
6 5 1 11.3 bumpleak/osh mut
6 4 2 11.5 _bin/cxx-opt+bumproot/osh mut
7 4 2 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 10.5 osh-native mut+alloc
8 5 3 10.6 osh-native mut+alloc+free
9 4 5 8.7 osh-native mut+alloc+free+gc
9 7 2 8.9 osh-native mut+alloc+free+gc+exit
9 6 3 10.9 osh-nosouffle mut+alloc
9 8 1 11.0 osh-nosouffle mut+alloc+free
10 7 3 9.0 osh-nosouffle mut+alloc+free+gc
10 8 2 9.2 osh-nosouffle mut+alloc+free+gc+exit
11 7 4 12.0 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.4 _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.4 dash -
30 30 0 3.3 bash -
21 17 4 3.4 zsh -
17 13 4 32.0 bumpleak/osh mut
18 14 4 31.8 _bin/cxx-opt+bumproot/osh mut
21 14 7 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 16 12 26.9 osh-native mut+alloc
31 20 11 27.0 osh-native mut+alloc+free
20 17 3 8.4 osh-native mut+alloc+free+gc
21 17 4 8.3 osh-native mut+alloc+free+gc+exit
33 22 11 27.3 osh-nosouffle mut+alloc
35 25 10 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
45 33 12 36.1 _bin/cxx-opt+nopool/osh mut+alloc
30 27 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
103 98 5 3.5 bash -
210 162 48 56.9 bumpleak/osh mut
226 174 51 56.1 _bin/cxx-opt+bumproot/osh mut
237 176 61 57.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
254 178 76 48.8 osh-native mut+alloc
266 202 64 50.7 osh-native mut+alloc+free
224 170 54 9.2 osh-native mut+alloc+free+gc
225 165 60 9.0 osh-native mut+alloc+free+gc+exit
264 182 82 49.3 osh-nosouffle mut+alloc
272 197 75 51.1 osh-nosouffle mut+alloc+free
226 180 46 9.7 osh-nosouffle mut+alloc+free+gc
228 180 48 9.8 osh-nosouffle mut+alloc+free+gc+exit
277 209 68 64.7 _bin/cxx-opt+nopool/osh mut+alloc
255 206 49 10.4 _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 5 3.9 dash -
17 8 9 4.6 bash -
16 7 9 3.9 zsh -
19 8 11 13.4 bumpleak/osh mut
18 9 9 14.2 _bin/cxx-opt+bumproot/osh mut
18 13 6 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 8 12 11.7 osh-native mut+alloc
21 10 11 11.7 osh-native mut+alloc+free
21 13 9 9.4 osh-native mut+alloc+free+gc
21 11 11 9.4 osh-native mut+alloc+free+gc+exit
21 9 12 12.2 osh-nosouffle mut+alloc
22 9 13 12.3 osh-nosouffle mut+alloc+free
21 14 8 10.1 osh-nosouffle mut+alloc+free+gc
22 13 10 10.0 osh-nosouffle mut+alloc+free+gc+exit
23 11 12 13.0 _bin/cxx-opt+nopool/osh mut+alloc
23 14 10 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc