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,271 1,282 6 413,158 5 206,579 osh-native
parse.configure-cpython 35 4 10 12.0 18.6 471,271 1,282 6 413,166 5 206,583 osh-nosouffle
parse.configure-coreutils 144 27 71 45.9 51.7 1,638,010 4,764 12 1,056,656 6 787,849 osh-native
parse.configure-coreutils 160 28 75 45.9 52.1 1,638,009 4,764 12 1,056,664 6 787,853 osh-nosouffle
parse.abuild 10 1 2 2.6 8.8 102,799 180 3 86,644 1 43,322 osh-native
parse.abuild 10 1 2 2.6 9.2 102,799 180 3 86,652 1 43,326 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.3 572,123 22,608 12 50,000 0 2,990 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,123 22,608 12 50,000 0 2,994 osh-nosouffle
ex.bashcomp-parse-help 221 0 4 11.6 9.0 990,269 15,258 21 50,000 0 3,967 osh-native
ex.bashcomp-parse-help 224 0 4 11.6 9.6 990,268 15,258 21 50,000 0 3,973 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,230 277 3 84,006 1 42,003 osh-native
ex.abuild-print-help 22 1 2 3.0 10.1 117,229 277 3 84,014 1 42,007 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 7 0 1.7 dash -
13 11 2 3.1 bash -
90 43 54 3.5 zsh -
16 9 7 30.5 bumpleak/osh mut
17 11 5 30.1 _bin/cxx-opt+bumproot/osh mut
19 14 6 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 13 13 25.4 osh-native mut+alloc
28 18 10 25.8 osh-native mut+alloc+free
32 24 8 18.2 osh-native mut+alloc+free+gc
33 27 6 18.4 osh-native mut+alloc+free+gc+exit
29 22 6 26.0 osh-nosouffle mut+alloc
31 22 9 26.3 osh-nosouffle mut+alloc+free
35 27 8 18.6 osh-nosouffle mut+alloc+free+gc
37 32 5 18.6 osh-nosouffle mut+alloc+free+gc+exit
40 20 20 32.3 _bin/cxx-opt+nopool/osh mut+alloc
48 37 11 23.0 _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 -
43 41 2 3.5 bash -
330 176 179 3.7 zsh -
46 38 8 85.1 bumpleak/osh mut
49 41 8 85.0 _bin/cxx-opt+bumproot/osh mut
60 48 12 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
85 52 33 73.8 osh-native mut+alloc
91 65 26 75.5 osh-native mut+alloc+free
144 120 24 51.7 osh-native mut+alloc+free+gc
151 127 24 52.3 osh-native mut+alloc+free+gc+exit
91 56 35 73.9 osh-nosouffle mut+alloc
101 69 32 76.2 osh-nosouffle mut+alloc+free
160 136 24 52.1 osh-nosouffle mut+alloc+free+gc
170 137 32 52.9 osh-nosouffle mut+alloc+free+gc+exit
124 79 45 99.3 _bin/cxx-opt+nopool/osh mut+alloc
220 187 33 73.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
2 1 1 1.6 dash -
4 3 1 3.1 bash -
6 4 3 3.3 zsh -
6 3 3 11.1 bumpleak/osh mut
7 4 3 12.5 _bin/cxx-opt+bumproot/osh mut
7 3 5 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 2 6 10.6 osh-native mut+alloc
9 8 1 10.6 osh-native mut+alloc+free
10 8 2 8.8 osh-native mut+alloc+free+gc
9 5 4 8.8 osh-native mut+alloc+free+gc+exit
9 7 2 11.0 osh-nosouffle mut+alloc
9 5 4 11.1 osh-nosouffle mut+alloc+free
10 7 4 9.2 osh-nosouffle mut+alloc+free+gc
11 6 5 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 7 4 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 10 3 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 8 2 1.4 dash -
31 29 2 3.3 bash -
21 17 4 3.4 zsh -
17 12 5 33.1 bumpleak/osh mut
19 15 4 33.3 _bin/cxx-opt+bumproot/osh mut
21 20 1 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 15 13 26.7 osh-native mut+alloc
31 19 12 27.0 osh-native mut+alloc+free
20 17 3 8.3 osh-native mut+alloc+free+gc
20 18 2 8.3 osh-native mut+alloc+free+gc+exit
34 19 15 27.3 osh-nosouffle mut+alloc
36 25 11 27.5 osh-nosouffle mut+alloc+free
25 24 1 8.7 osh-nosouffle mut+alloc+free+gc
26 22 4 8.4 osh-nosouffle mut+alloc+free+gc+exit
46 33 13 36.3 _bin/cxx-opt+nopool/osh mut+alloc
31 27 4 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
103 98 5 3.4 bash -
216 158 58 56.6 bumpleak/osh mut
221 170 51 57.4 _bin/cxx-opt+bumproot/osh mut
241 179 62 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
256 187 69 48.8 osh-native mut+alloc
267 196 71 50.9 osh-native mut+alloc+free
221 161 60 9.0 osh-native mut+alloc+free+gc
221 176 46 8.9 osh-native mut+alloc+free+gc+exit
265 191 73 49.3 osh-nosouffle mut+alloc
267 205 62 51.3 osh-nosouffle mut+alloc+free
224 170 54 9.6 osh-nosouffle mut+alloc+free+gc
227 185 41 9.7 osh-nosouffle mut+alloc+free+gc+exit
283 203 80 64.4 _bin/cxx-opt+nopool/osh mut+alloc
252 207 45 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 2 8 3.8 dash -
16 8 8 4.7 bash -
16 5 11 3.9 zsh -
17 7 11 12.2 bumpleak/osh mut
19 8 12 13.3 _bin/cxx-opt+bumproot/osh mut
19 9 11 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 8 12 11.7 osh-native mut+alloc
21 11 10 11.7 osh-native mut+alloc+free
21 11 10 9.4 osh-native mut+alloc+free+gc
21 10 12 9.4 osh-native mut+alloc+free+gc+exit
21 13 9 12.3 osh-nosouffle mut+alloc
22 9 14 12.2 osh-nosouffle mut+alloc+free
22 10 12 10.1 osh-nosouffle mut+alloc+free+gc
22 8 15 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 10 13 13.2 _bin/cxx-opt+nopool/osh mut+alloc
24 11 14 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc