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 34 3 10 12.0 18.7 471,271 1,282 6 413,166 5 206,583 osh-nosouffle
parse.configure-coreutils 132 24 59 45.9 51.7 1,638,010 4,764 12 1,056,656 6 787,849 osh-native
parse.configure-coreutils 141 23 59 45.9 52.2 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.2 102,799 180 3 86,652 1 43,326 osh-nosouffle
ex.compute-fib 19 0 2 2.8 8.3 572,123 22,608 12 50,000 0 2,990 osh-native
ex.compute-fib 24 0 2 2.8 8.8 572,123 22,608 12 50,000 0 2,994 osh-nosouffle
ex.bashcomp-parse-help 219 0 3 11.6 9.0 990,269 15,258 21 50,000 0 3,967 osh-native
ex.bashcomp-parse-help 225 0 3 11.6 9.7 990,268 15,258 21 50,000 0 3,973 osh-nosouffle
ex.abuild-print-help 20 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 7 0 1.8 dash -
13 12 1 3.3 bash -
90 57 40 3.7 zsh -
15 13 2 29.3 bumpleak/osh mut
16 12 4 28.8 _bin/cxx-opt+bumproot/osh mut
19 16 3 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 15 10 25.4 osh-native mut+alloc
27 22 5 25.8 osh-native mut+alloc+free
32 25 7 18.2 osh-native mut+alloc+free+gc
35 28 7 18.2 osh-native mut+alloc+free+gc+exit
28 17 11 25.8 osh-nosouffle mut+alloc
31 18 13 26.5 osh-nosouffle mut+alloc+free
34 28 6 18.7 osh-nosouffle mut+alloc+free+gc
35 26 8 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 28 11 33.3 _bin/cxx-opt+nopool/osh mut+alloc
46 36 10 22.9 _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 40 2 3.4 bash -
324 186 162 3.7 zsh -
46 32 14 85.7 bumpleak/osh mut
48 37 11 85.0 _bin/cxx-opt+bumproot/osh mut
59 44 15 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 50 33 73.7 osh-native mut+alloc
91 64 27 75.5 osh-native mut+alloc+free
132 103 29 51.7 osh-native mut+alloc+free+gc
136 110 26 52.4 osh-native mut+alloc+free+gc+exit
92 55 37 74.2 osh-nosouffle mut+alloc
101 62 39 76.2 osh-nosouffle mut+alloc+free
141 119 22 52.2 osh-nosouffle mut+alloc+free+gc
153 124 29 53.1 osh-nosouffle mut+alloc+free+gc+exit
125 77 48 97.6 _bin/cxx-opt+nopool/osh mut+alloc
190 157 33 72.8 _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 2 4 3.4 zsh -
6 4 2 11.9 bumpleak/osh mut
6 5 1 12.8 _bin/cxx-opt+bumproot/osh mut
7 3 4 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 3 10.6 osh-native mut+alloc
8 3 5 10.7 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 5 4 8.7 osh-native mut+alloc+free+gc+exit
8 5 4 11.0 osh-nosouffle mut+alloc
9 4 5 11.0 osh-nosouffle mut+alloc+free
10 7 3 9.2 osh-nosouffle mut+alloc+free+gc
10 6 4 9.4 osh-nosouffle mut+alloc+free+gc+exit
11 5 6 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 8 3 9.6 _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.6 dash -
30 28 2 3.3 bash -
21 18 3 3.4 zsh -
17 14 3 33.5 bumpleak/osh mut
18 11 7 33.0 _bin/cxx-opt+bumproot/osh mut
21 11 10 34.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 13 15 26.9 osh-native mut+alloc
29 21 9 27.0 osh-native mut+alloc+free
19 19 0 8.3 osh-native mut+alloc+free+gc
19 18 1 8.3 osh-native mut+alloc+free+gc+exit
33 17 16 27.4 osh-nosouffle mut+alloc
35 22 13 27.7 osh-nosouffle mut+alloc+free
24 23 1 8.8 osh-nosouffle mut+alloc+free+gc
25 20 4 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 28 18 36.3 _bin/cxx-opt+nopool/osh mut+alloc
29 26 3 9.7 _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
102 98 4 3.5 bash -
215 152 63 56.1 bumpleak/osh mut
221 165 55 57.8 _bin/cxx-opt+bumproot/osh mut
239 186 53 57.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
253 191 62 48.9 osh-native mut+alloc
261 184 77 50.7 osh-native mut+alloc+free
219 173 46 9.0 osh-native mut+alloc+free+gc
219 164 55 9.2 osh-native mut+alloc+free+gc+exit
260 200 60 49.4 osh-nosouffle mut+alloc
271 201 70 51.1 osh-nosouffle mut+alloc+free
225 185 40 9.7 osh-nosouffle mut+alloc+free+gc
224 177 47 9.6 osh-nosouffle mut+alloc+free+gc+exit
278 193 85 66.0 _bin/cxx-opt+nopool/osh mut+alloc
249 206 43 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 4 6 4.1 dash -
16 7 9 4.7 bash -
15 7 9 3.9 zsh -
19 12 8 13.6 bumpleak/osh mut
18 7 11 12.8 _bin/cxx-opt+bumproot/osh mut
18 7 12 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 8 11 11.5 osh-native mut+alloc
20 9 11 11.8 osh-native mut+alloc+free
20 13 7 9.6 osh-native mut+alloc+free+gc
20 6 15 9.7 osh-native mut+alloc+free+gc+exit
20 12 9 12.1 osh-nosouffle mut+alloc
21 13 9 12.3 osh-nosouffle mut+alloc+free
21 12 10 10.0 osh-nosouffle mut+alloc+free+gc
22 15 7 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 12 12 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 12 12 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc