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 34 5 11 12.0 18.1 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 35 3 9 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 170 30 88 45.9 51.9 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 176 38 88 45.9 52.3 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 10 1 3 2.6 8.7 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 11 1 3 2.6 9.2 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 21 0 2 2.8 8.3 572,104 22,608 12 50,000 0 2,977 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,104 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 224 0 4 11.6 9.2 990,250 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 235 0 6 11.6 9.6 990,249 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 22 1 2 3.0 9.4 117,208 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 24 1 2 3.0 9.8 117,207 277 3 83,988 1 41,994 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 5 1 1.7 dash -
13 11 2 3.4 bash -
96 54 50 3.5 zsh -
16 11 5 29.7 bumpleak/osh mut
17 13 4 29.1 _bin/cxx-opt+bumproot/osh mut
19 15 4 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 15 11 25.4 osh-native mut+alloc
29 21 8 25.8 osh-native mut+alloc+free
34 28 6 18.1 osh-native mut+alloc+free+gc
37 27 10 18.2 osh-native mut+alloc+free+gc+exit
29 19 10 26.1 osh-nosouffle mut+alloc
33 19 15 26.3 osh-nosouffle mut+alloc+free
35 25 9 18.7 osh-nosouffle mut+alloc+free+gc
37 30 7 18.6 osh-nosouffle mut+alloc+free+gc+exit
42 23 18 32.5 _bin/cxx-opt+nopool/osh mut+alloc
64 50 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 21 2 1.7 dash -
43 42 0 3.5 bash -
333 188 168 3.5 zsh -
45 39 6 86.5 bumpleak/osh mut
50 36 14 85.7 _bin/cxx-opt+bumproot/osh mut
63 50 12 87.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 52 31 73.7 osh-native mut+alloc
100 60 40 75.4 osh-native mut+alloc+free
170 144 26 51.9 osh-native mut+alloc+free+gc
161 135 26 52.5 osh-native mut+alloc+free+gc+exit
93 70 23 74.1 osh-nosouffle mut+alloc
104 63 41 75.9 osh-nosouffle mut+alloc+free
176 148 28 52.3 osh-nosouffle mut+alloc+free+gc
177 148 29 52.8 osh-nosouffle mut+alloc+free+gc+exit
135 86 49 98.7 _bin/cxx-opt+nopool/osh mut+alloc
261 225 36 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 2 4 3.5 zsh -
6 5 1 12.9 bumpleak/osh mut
7 4 3 12.7 _bin/cxx-opt+bumproot/osh mut
7 3 5 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 7 2 10.5 osh-native mut+alloc
9 4 5 10.7 osh-native mut+alloc+free
10 9 1 8.7 osh-native mut+alloc+free+gc
11 9 2 8.8 osh-native mut+alloc+free+gc+exit
9 8 2 10.9 osh-nosouffle mut+alloc
10 6 4 11.1 osh-nosouffle mut+alloc+free
11 9 2 9.2 osh-nosouffle mut+alloc+free+gc
12 8 4 9.3 osh-nosouffle mut+alloc+free+gc+exit
12 6 6 12.0 _bin/cxx-opt+nopool/osh mut+alloc
14 9 5 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 10 0 1.4 dash -
30 28 2 3.3 bash -
21 15 6 3.4 zsh -
18 14 3 31.9 bumpleak/osh mut
19 16 3 32.1 _bin/cxx-opt+bumproot/osh mut
23 17 6 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 27.1 osh-native mut+alloc
31 18 14 27.1 osh-native mut+alloc+free
21 19 2 8.3 osh-native mut+alloc+free+gc
21 19 2 8.3 osh-native mut+alloc+free+gc+exit
34 22 11 27.3 osh-nosouffle mut+alloc
35 27 8 27.5 osh-nosouffle mut+alloc+free
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc
25 23 2 8.8 osh-nosouffle mut+alloc+free+gc+exit
48 24 25 36.5 _bin/cxx-opt+nopool/osh mut+alloc
32 27 5 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
103 97 6 3.5 bash -
225 170 55 57.4 bumpleak/osh mut
223 185 38 56.9 _bin/cxx-opt+bumproot/osh mut
248 184 64 58.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
262 193 69 48.9 osh-native mut+alloc
284 215 70 50.9 osh-native mut+alloc+free
224 180 44 9.2 osh-native mut+alloc+free+gc
232 180 51 9.0 osh-native mut+alloc+free+gc+exit
271 203 68 49.2 osh-nosouffle mut+alloc
276 193 83 51.3 osh-nosouffle mut+alloc+free
235 190 45 9.6 osh-nosouffle mut+alloc+free+gc
235 190 45 9.6 osh-nosouffle mut+alloc+free+gc+exit
281 196 84 65.6 _bin/cxx-opt+nopool/osh mut+alloc
310 246 64 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 4 5 3.9 dash -
16 8 10 4.7 bash -
17 6 11 4.1 zsh -
20 11 10 13.3 bumpleak/osh mut
19 10 10 12.6 _bin/cxx-opt+bumproot/osh mut
24 15 9 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 12 11.5 osh-native mut+alloc
23 11 14 11.8 osh-native mut+alloc+free
22 11 12 9.4 osh-native mut+alloc+free+gc
23 16 8 9.6 osh-native mut+alloc+free+gc+exit
21 10 12 12.1 osh-nosouffle mut+alloc
23 9 15 12.2 osh-nosouffle mut+alloc+free
24 16 9 9.8 osh-nosouffle mut+alloc+free+gc
28 17 12 10.2 osh-nosouffle mut+alloc+free+gc+exit
24 10 14 13.1 _bin/cxx-opt+nopool/osh mut+alloc
27 16 12 10.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc