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 33 5 11 12.0 18.4 471,271 1,282 6 413,158 5 206,579 osh-native
parse.configure-cpython 38 5 12 12.0 18.7 471,271 1,282 6 413,166 5 206,583 osh-nosouffle
parse.configure-coreutils 163 29 87 45.9 51.9 1,638,010 4,764 12 1,056,656 6 787,849 osh-native
parse.configure-coreutils 166 29 82 45.9 52.4 1,638,009 4,764 12 1,056,664 6 787,853 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,799 180 3 86,644 1 43,322 osh-native
parse.abuild 11 1 2 2.6 9.2 102,799 180 3 86,652 1 43,326 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.4 572,123 22,608 12 50,000 0 2,990 osh-native
ex.compute-fib 25 0 2 2.8 8.9 572,123 22,608 12 50,000 0 2,994 osh-nosouffle
ex.bashcomp-parse-help 224 0 5 11.6 9.2 990,269 15,258 21 50,000 0 3,967 osh-native
ex.bashcomp-parse-help 233 0 5 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.3 117,230 277 3 84,006 1 42,003 osh-native
ex.abuild-print-help 23 1 2 3.0 10.0 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
8 7 1 1.6 dash -
13 11 2 3.4 bash -
91 51 48 3.5 zsh -
15 10 6 29.5 bumpleak/osh mut
17 11 6 29.1 _bin/cxx-opt+bumproot/osh mut
20 13 7 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 11 15 25.6 osh-native mut+alloc
28 16 12 25.7 osh-native mut+alloc+free
33 25 8 18.4 osh-native mut+alloc+free+gc
34 29 5 18.4 osh-native mut+alloc+free+gc+exit
28 22 6 26.1 osh-nosouffle mut+alloc
31 21 11 26.2 osh-nosouffle mut+alloc+free
38 24 14 18.7 osh-nosouffle mut+alloc+free+gc
43 34 8 18.6 osh-nosouffle mut+alloc+free+gc+exit
40 27 13 33.3 _bin/cxx-opt+nopool/osh mut+alloc
51 37 14 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 -
45 43 2 3.4 bash -
327 190 159 3.7 zsh -
46 37 9 84.8 bumpleak/osh mut
49 39 10 85.9 _bin/cxx-opt+bumproot/osh mut
59 44 14 85.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
84 47 37 73.7 osh-native mut+alloc
93 63 30 75.5 osh-native mut+alloc+free
163 137 26 51.9 osh-native mut+alloc+free+gc
168 148 20 52.5 osh-native mut+alloc+free+gc+exit
95 62 33 74.1 osh-nosouffle mut+alloc
103 68 35 75.9 osh-nosouffle mut+alloc+free
166 139 27 52.4 osh-nosouffle mut+alloc+free+gc
171 146 25 53.1 osh-nosouffle mut+alloc+free+gc+exit
129 77 51 97.8 _bin/cxx-opt+nopool/osh mut+alloc
216 180 37 73.0 _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.7 dash -
4 2 2 3.1 bash -
7 5 2 3.5 zsh -
6 4 2 12.8 bumpleak/osh mut
6 6 0 11.6 _bin/cxx-opt+bumproot/osh mut
7 2 5 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 10.6 osh-native mut+alloc
8 3 5 10.6 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
10 8 1 8.9 osh-native mut+alloc+free+gc+exit
9 2 7 10.7 osh-nosouffle mut+alloc
10 4 6 11.0 osh-nosouffle mut+alloc+free
11 7 4 9.2 osh-nosouffle mut+alloc+free+gc
11 8 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 7 5 12.0 _bin/cxx-opt+nopool/osh mut+alloc
12 9 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
10 10 0 1.6 dash -
32 30 1 3.3 bash -
21 15 6 3.4 zsh -
18 14 4 32.8 bumpleak/osh mut
18 13 5 32.6 _bin/cxx-opt+bumproot/osh mut
21 16 5 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 20 9 26.9 osh-native mut+alloc
31 17 14 27.0 osh-native mut+alloc+free
20 18 2 8.4 osh-native mut+alloc+free+gc
21 18 3 8.3 osh-native mut+alloc+free+gc+exit
34 24 10 27.3 osh-nosouffle mut+alloc
35 20 15 27.7 osh-nosouffle mut+alloc+free
25 25 0 8.9 osh-nosouffle mut+alloc+free+gc
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc+exit
46 31 15 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 28 2 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
104 100 4 3.4 bash -
213 163 50 57.7 bumpleak/osh mut
221 167 54 57.8 _bin/cxx-opt+bumproot/osh mut
242 185 57 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
258 190 68 48.8 osh-native mut+alloc
266 191 75 50.7 osh-native mut+alloc+free
224 179 45 9.2 osh-native mut+alloc+free+gc
224 181 43 8.9 osh-native mut+alloc+free+gc+exit
265 194 72 49.3 osh-nosouffle mut+alloc
270 196 74 51.3 osh-nosouffle mut+alloc+free
233 180 53 9.6 osh-nosouffle mut+alloc+free+gc
230 179 51 9.6 osh-nosouffle mut+alloc+free+gc+exit
281 189 92 64.4 _bin/cxx-opt+nopool/osh mut+alloc
273 222 51 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 5 4 4.1 dash -
16 11 6 4.8 bash -
16 8 8 3.8 zsh -
18 12 6 12.4 bumpleak/osh mut
21 8 13 13.9 _bin/cxx-opt+bumproot/osh mut
19 9 10 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 10 11 11.7 osh-native mut+alloc
22 9 13 11.5 osh-native mut+alloc+free
21 10 13 9.3 osh-native mut+alloc+free+gc
22 10 13 9.7 osh-native mut+alloc+free+gc+exit
21 9 14 12.1 osh-nosouffle mut+alloc
23 9 15 12.2 osh-nosouffle mut+alloc+free
23 12 11 10.0 osh-nosouffle mut+alloc+free+gc
23 11 13 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 8 16 13.2 _bin/cxx-opt+nopool/osh mut+alloc
25 17 9 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc