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 33 3 9 12.0 18.6 471,271 1,282 6 413,166 5 206,583 osh-nosouffle
parse.configure-coreutils 142 26 68 45.9 51.9 1,638,010 4,764 12 1,056,656 6 787,849 osh-native
parse.configure-coreutils 146 25 64 45.9 52.1 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 10 1 2 2.6 9.0 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 27 0 1 2.8 8.7 572,123 22,608 12 50,000 0 2,994 osh-nosouffle
ex.bashcomp-parse-help 222 0 4 11.6 9.0 990,269 15,258 21 50,000 0 3,967 osh-native
ex.bashcomp-parse-help 229 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.6 117,230 277 3 84,006 1 42,003 osh-native
ex.abuild-print-help 21 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
7 6 1 1.6 dash -
13 12 1 3.4 bash -
91 52 46 3.5 zsh -
15 10 6 28.8 bumpleak/osh mut
16 12 4 30.5 _bin/cxx-opt+bumproot/osh mut
19 15 4 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 16 9 25.3 osh-native mut+alloc
27 16 12 25.8 osh-native mut+alloc+free
32 24 8 18.2 osh-native mut+alloc+free+gc
33 23 10 18.2 osh-native mut+alloc+free+gc+exit
28 18 10 26.0 osh-nosouffle mut+alloc
30 19 11 26.3 osh-nosouffle mut+alloc+free
33 23 10 18.6 osh-nosouffle mut+alloc+free+gc
35 29 6 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 24 15 32.6 _bin/cxx-opt+nopool/osh mut+alloc
43 30 13 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 -
42 41 1 3.5 bash -
326 174 175 3.7 zsh -
45 36 9 86.5 bumpleak/osh mut
48 40 8 85.5 _bin/cxx-opt+bumproot/osh mut
59 50 9 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 52 31 73.8 osh-native mut+alloc
92 55 37 75.4 osh-native mut+alloc+free
142 119 23 51.9 osh-native mut+alloc+free+gc
147 125 22 52.4 osh-native mut+alloc+free+gc+exit
91 61 30 74.2 osh-nosouffle mut+alloc
100 66 34 76.0 osh-nosouffle mut+alloc+free
146 119 27 52.1 osh-nosouffle mut+alloc+free+gc
149 127 22 53.1 osh-nosouffle mut+alloc+free+gc+exit
124 80 44 98.2 _bin/cxx-opt+nopool/osh mut+alloc
208 174 34 72.5 _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 3 1 3.3 bash -
6 4 2 3.3 zsh -
6 3 3 12.0 bumpleak/osh mut
6 4 2 11.4 _bin/cxx-opt+bumproot/osh mut
7 7 0 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.6 osh-native mut+alloc
8 3 5 10.6 osh-native mut+alloc+free
9 8 1 8.7 osh-native mut+alloc+free+gc
9 5 4 8.9 osh-native mut+alloc+free+gc+exit
9 3 6 11.0 osh-nosouffle mut+alloc
9 5 4 11.0 osh-nosouffle mut+alloc+free
10 7 3 9.0 osh-nosouffle mut+alloc+free+gc
10 8 2 9.4 osh-nosouffle mut+alloc+free+gc+exit
11 5 6 12.0 _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
9 8 1 1.6 dash -
31 30 1 3.3 bash -
21 16 5 3.4 zsh -
17 12 5 33.1 bumpleak/osh mut
18 15 3 32.2 _bin/cxx-opt+bumproot/osh mut
21 16 5 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 18 11 27.0 osh-native mut+alloc
30 18 12 27.0 osh-native mut+alloc+free
20 18 2 8.3 osh-native mut+alloc+free+gc
20 18 2 8.3 osh-native mut+alloc+free+gc+exit
33 24 9 27.4 osh-nosouffle mut+alloc
35 27 8 27.7 osh-nosouffle mut+alloc+free
27 26 1 8.7 osh-nosouffle mut+alloc+free+gc
25 24 1 8.8 osh-nosouffle mut+alloc+free+gc+exit
45 27 18 36.3 _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 99 5 3.4 bash -
213 158 55 56.6 bumpleak/osh mut
221 169 52 57.3 _bin/cxx-opt+bumproot/osh mut
239 182 57 58.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
254 186 68 48.9 osh-native mut+alloc
264 187 77 50.7 osh-native mut+alloc+free
222 173 49 9.0 osh-native mut+alloc+free+gc
221 166 56 9.0 osh-native mut+alloc+free+gc+exit
263 195 69 49.3 osh-nosouffle mut+alloc
271 197 74 51.3 osh-nosouffle mut+alloc+free
229 178 51 9.6 osh-nosouffle mut+alloc+free+gc
228 186 42 9.6 osh-nosouffle mut+alloc+free+gc+exit
276 196 80 65.1 _bin/cxx-opt+nopool/osh mut+alloc
251 204 47 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 5 5 3.8 dash -
16 11 5 4.7 bash -
16 8 8 3.9 zsh -
17 8 10 14.0 bumpleak/osh mut
19 9 11 13.8 _bin/cxx-opt+bumproot/osh mut
19 9 10 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 7 13 11.7 osh-native mut+alloc
21 12 10 11.7 osh-native mut+alloc+free
21 9 13 9.6 osh-native mut+alloc+free+gc
21 11 11 9.7 osh-native mut+alloc+free+gc+exit
20 9 12 12.2 osh-nosouffle mut+alloc
22 11 11 12.2 osh-nosouffle mut+alloc+free
21 9 13 10.0 osh-nosouffle mut+alloc+free+gc
22 14 8 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 8 16 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 13 12 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc