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 31 4 10 12.0 18.4 471,269 1,282 6 413,154 5 206,577 osh-native
parse.configure-cpython 34 4 10 12.0 18.6 471,269 1,282 6 413,162 5 206,581 osh-nosouffle
parse.configure-coreutils 135 26 62 45.9 51.6 1,638,008 4,764 12 1,056,652 6 787,847 osh-native
parse.configure-coreutils 141 25 60 45.9 52.1 1,638,007 4,764 12 1,056,660 6 787,851 osh-nosouffle
parse.abuild 10 1 2 2.6 8.8 102,797 180 3 86,640 1 43,320 osh-native
parse.abuild 10 1 2 2.6 9.2 102,797 180 3 86,648 1 43,324 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.1 572,121 22,608 12 50,000 0 2,987 osh-native
ex.compute-fib 25 0 2 2.8 8.5 572,121 22,608 12 50,000 0 2,992 osh-nosouffle
ex.bashcomp-parse-help 226 0 5 11.6 9.2 990,267 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 231 0 4 11.6 9.7 990,266 15,258 21 50,000 0 3,971 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,225 277 3 84,002 1 42,001 osh-native
ex.abuild-print-help 23 1 2 3.0 10.1 117,224 277 3 84,010 1 42,005 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 1 1.7 dash -
13 11 1 3.3 bash -
90 57 40 3.5 zsh -
16 12 4 30.4 bumpleak/osh mut
16 13 4 30.2 _bin/cxx-opt+bumproot/osh mut
19 14 5 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 17 8 25.4 osh-native mut+alloc
27 18 9 25.7 osh-native mut+alloc+free
31 23 8 18.4 osh-native mut+alloc+free+gc
33 27 6 18.4 osh-native mut+alloc+free+gc+exit
28 21 7 26.0 osh-nosouffle mut+alloc
30 21 9 26.2 osh-nosouffle mut+alloc+free
34 27 7 18.6 osh-nosouffle mut+alloc+free+gc
35 28 7 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 25 14 32.5 _bin/cxx-opt+nopool/osh mut+alloc
46 32 14 22.5 _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 20 3 1.6 dash -
42 40 2 3.4 bash -
328 191 159 3.8 zsh -
45 39 6 85.3 bumpleak/osh mut
48 39 9 85.7 _bin/cxx-opt+bumproot/osh mut
58 43 14 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
81 50 32 73.8 osh-native mut+alloc
92 53 39 75.5 osh-native mut+alloc+free
135 114 21 51.6 osh-native mut+alloc+free+gc
142 114 28 52.4 osh-native mut+alloc+free+gc+exit
91 56 35 74.1 osh-nosouffle mut+alloc
100 66 33 76.0 osh-nosouffle mut+alloc+free
141 120 21 52.1 osh-nosouffle mut+alloc+free+gc
149 127 22 52.8 osh-nosouffle mut+alloc+free+gc+exit
124 72 52 98.5 _bin/cxx-opt+nopool/osh mut+alloc
215 181 34 73.2 _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 -
8 5 3 3.4 zsh -
10 5 3 12.7 bumpleak/osh mut
6 4 2 12.9 _bin/cxx-opt+bumproot/osh mut
7 6 1 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 10.6 osh-native mut+alloc
9 4 4 10.6 osh-native mut+alloc+free
10 8 2 8.8 osh-native mut+alloc+free+gc
10 8 2 8.9 osh-native mut+alloc+free+gc+exit
9 5 4 10.9 osh-nosouffle mut+alloc
9 5 5 11.1 osh-nosouffle mut+alloc+free
10 6 4 9.2 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 10 2 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
10 10 0 1.6 dash -
31 29 2 3.3 bash -
24 16 8 3.4 zsh -
16 11 5 31.9 bumpleak/osh mut
19 16 3 33.0 _bin/cxx-opt+bumproot/osh mut
21 17 4 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 22 7 26.7 osh-native mut+alloc
31 22 10 27.3 osh-native mut+alloc+free
20 19 1 8.1 osh-native mut+alloc+free+gc
21 18 3 8.4 osh-native mut+alloc+free+gc+exit
34 18 16 27.3 osh-nosouffle mut+alloc
36 29 7 27.4 osh-nosouffle mut+alloc+free
25 23 2 8.5 osh-nosouffle mut+alloc+free+gc
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
45 32 13 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 27 3 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
105 100 5 3.5 bash -
212 159 53 56.2 bumpleak/osh mut
221 162 59 57.5 _bin/cxx-opt+bumproot/osh mut
236 184 52 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
257 176 81 48.8 osh-native mut+alloc
268 192 77 50.7 osh-native mut+alloc+free
226 175 50 9.2 osh-native mut+alloc+free+gc
225 174 51 9.0 osh-native mut+alloc+free+gc+exit
260 187 74 49.3 osh-nosouffle mut+alloc
278 210 68 51.4 osh-nosouffle mut+alloc+free
231 176 55 9.7 osh-nosouffle mut+alloc+free+gc
230 181 49 9.7 osh-nosouffle mut+alloc+free+gc+exit
278 199 79 65.0 _bin/cxx-opt+nopool/osh mut+alloc
265 211 54 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
11 6 6 3.9 dash -
17 7 10 4.8 bash -
17 7 10 3.9 zsh -
19 8 12 13.5 bumpleak/osh mut
19 8 12 14.4 _bin/cxx-opt+bumproot/osh mut
20 9 11 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 10 11 11.7 osh-native mut+alloc
21 9 13 11.5 osh-native mut+alloc+free
21 12 10 9.4 osh-native mut+alloc+free+gc
22 10 13 9.7 osh-native mut+alloc+free+gc+exit
21 12 10 12.1 osh-nosouffle mut+alloc
22 9 14 12.2 osh-nosouffle mut+alloc+free
23 14 10 10.1 osh-nosouffle mut+alloc+free+gc
23 12 12 10.2 osh-nosouffle mut+alloc+free+gc+exit
28 12 17 13.1 _bin/cxx-opt+nopool/osh mut+alloc
27 12 14 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc