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,271 1,282 6 413,158 5 206,579 osh-native
parse.configure-cpython 35 4 10 12.0 18.7 471,271 1,282 6 413,166 5 206,583 osh-nosouffle
parse.configure-coreutils 140 26 66 45.9 51.7 1,638,010 4,764 12 1,056,656 6 787,849 osh-native
parse.configure-coreutils 159 26 74 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.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 2 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 220 0 4 11.6 9.0 990,269 15,258 21 50,000 0 3,967 osh-native
ex.bashcomp-parse-help 223 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
7 5 2 1.7 dash -
13 12 1 3.3 bash -
91 51 48 3.7 zsh -
15 11 5 29.6 bumpleak/osh mut
17 13 4 30.6 _bin/cxx-opt+bumproot/osh mut
19 14 5 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 15 10 25.3 osh-native mut+alloc
28 15 13 25.8 osh-native mut+alloc+free
32 23 9 18.4 osh-native mut+alloc+free+gc
32 23 9 18.2 osh-native mut+alloc+free+gc+exit
29 16 13 25.8 osh-nosouffle mut+alloc
31 18 13 26.3 osh-nosouffle mut+alloc+free
35 26 9 18.7 osh-nosouffle mut+alloc+free+gc
36 25 11 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 23 16 32.9 _bin/cxx-opt+nopool/osh mut+alloc
44 38 6 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 -
46 45 1 3.4 bash -
331 189 162 3.5 zsh -
46 38 9 85.0 bumpleak/osh mut
49 42 7 84.8 _bin/cxx-opt+bumproot/osh mut
60 49 11 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 54 27 73.8 osh-native mut+alloc
92 60 32 75.6 osh-native mut+alloc+free
140 123 17 51.7 osh-native mut+alloc+free+gc
151 136 15 52.4 osh-native mut+alloc+free+gc+exit
92 68 24 74.3 osh-nosouffle mut+alloc
100 62 38 75.8 osh-nosouffle mut+alloc+free
159 132 27 52.4 osh-nosouffle mut+alloc+free+gc
166 147 19 52.9 osh-nosouffle mut+alloc+free+gc+exit
125 77 48 98.0 _bin/cxx-opt+nopool/osh mut+alloc
204 164 40 73.4 _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 -
7 4 3 3.4 zsh -
6 6 0 11.9 bumpleak/osh mut
6 4 2 13.1 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.6 osh-native mut+alloc
9 3 6 10.7 osh-native mut+alloc+free
9 6 3 8.8 osh-native mut+alloc+free+gc
10 6 4 8.9 osh-native mut+alloc+free+gc+exit
9 7 2 11.0 osh-nosouffle mut+alloc
9 5 4 11.3 osh-nosouffle mut+alloc+free
10 8 2 9.2 osh-nosouffle mut+alloc+free+gc
10 5 5 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 11.8 _bin/cxx-opt+nopool/osh mut+alloc
12 8 5 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 16 5 3.4 zsh -
17 13 4 31.9 bumpleak/osh mut
18 15 3 32.5 _bin/cxx-opt+bumproot/osh mut
20 19 1 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 18 10 26.9 osh-native mut+alloc
31 23 8 27.1 osh-native mut+alloc+free
20 16 4 8.3 osh-native mut+alloc+free+gc
20 19 1 8.1 osh-native mut+alloc+free+gc+exit
33 24 9 27.3 osh-nosouffle mut+alloc
36 31 5 27.7 osh-nosouffle mut+alloc+free
25 25 0 8.7 osh-nosouffle mut+alloc+free+gc
25 21 4 8.9 osh-nosouffle mut+alloc+free+gc+exit
45 28 17 36.5 _bin/cxx-opt+nopool/osh mut+alloc
30 24 5 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 97 6 3.4 bash -
211 154 57 56.8 bumpleak/osh mut
221 176 45 57.9 _bin/cxx-opt+bumproot/osh mut
239 174 65 58.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
254 184 70 48.8 osh-native mut+alloc
265 198 66 50.7 osh-native mut+alloc+free
220 174 46 9.0 osh-native mut+alloc+free+gc
220 171 49 9.2 osh-native mut+alloc+free+gc+exit
261 177 84 49.4 osh-nosouffle mut+alloc
269 196 73 51.3 osh-nosouffle mut+alloc+free
223 183 40 9.6 osh-nosouffle mut+alloc+free+gc
226 171 55 9.6 osh-nosouffle mut+alloc+free+gc+exit
280 205 75 64.5 _bin/cxx-opt+nopool/osh mut+alloc
251 198 53 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 6 3.8 dash -
16 8 8 4.6 bash -
19 8 12 3.8 zsh -
18 9 9 12.4 bumpleak/osh mut
19 10 10 13.1 _bin/cxx-opt+bumproot/osh mut
20 8 13 14.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 8 12 11.5 osh-native mut+alloc
21 9 13 11.7 osh-native mut+alloc+free
21 11 11 9.4 osh-native mut+alloc+free+gc
22 13 10 9.6 osh-native mut+alloc+free+gc+exit
21 10 11 12.2 osh-nosouffle mut+alloc
22 8 15 12.2 osh-nosouffle mut+alloc+free
22 11 11 10.1 osh-nosouffle mut+alloc+free+gc
23 15 8 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 12 11 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 11 14 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc