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 3 9 12.0 18.2 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 34 3 9 12.0 18.7 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 134 24 61 45.9 51.7 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 147 25 64 45.9 52.1 1,638,001 4,764 12 1,056,648 6 787,845 osh-nosouffle
parse.abuild 9 1 2 2.6 8.8 102,791 180 3 86,628 1 43,314 osh-native
parse.abuild 10 1 2 2.6 9.0 102,791 180 3 86,636 1 43,318 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.3 572,115 22,608 12 50,000 0 2,982 osh-native
ex.compute-fib 24 0 1 2.8 8.8 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 220 0 3 11.6 9.0 990,261 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 226 0 4 11.6 9.7 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,218 277 3 83,998 1 41,999 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.8 dash -
13 12 1 3.3 bash -
89 54 43 3.5 zsh -
15 10 5 28.6 bumpleak/osh mut
16 12 4 29.5 _bin/cxx-opt+bumproot/osh mut
20 16 3 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 12 13 25.6 osh-native mut+alloc
28 17 11 25.7 osh-native mut+alloc+free
31 25 6 18.2 osh-native mut+alloc+free+gc
32 26 6 18.4 osh-native mut+alloc+free+gc+exit
28 21 7 25.8 osh-nosouffle mut+alloc
31 21 10 26.2 osh-nosouffle mut+alloc+free
34 27 6 18.7 osh-nosouffle mut+alloc+free+gc
34 27 7 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 23 16 32.5 _bin/cxx-opt+nopool/osh mut+alloc
47 37 10 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.4 bash -
319 205 137 3.5 zsh -
45 39 6 85.6 bumpleak/osh mut
49 40 8 85.6 _bin/cxx-opt+bumproot/osh mut
60 51 9 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
86 60 26 73.7 osh-native mut+alloc
92 52 40 75.5 osh-native mut+alloc+free
134 107 27 51.7 osh-native mut+alloc+free+gc
146 124 22 52.4 osh-native mut+alloc+free+gc+exit
91 57 34 74.1 osh-nosouffle mut+alloc
101 58 43 75.9 osh-nosouffle mut+alloc+free
147 111 36 52.1 osh-nosouffle mut+alloc+free+gc
151 129 22 52.9 osh-nosouffle mut+alloc+free+gc+exit
126 86 40 97.7 _bin/cxx-opt+nopool/osh mut+alloc
203 164 39 74.3 _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 2 0 1.7 dash -
4 2 1 3.1 bash -
6 4 3 3.4 zsh -
6 3 2 11.2 bumpleak/osh mut
6 3 3 11.3 _bin/cxx-opt+bumproot/osh mut
6 4 2 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 1 7 10.5 osh-native mut+alloc
8 3 5 10.6 osh-native mut+alloc+free
9 7 2 8.8 osh-native mut+alloc+free+gc
9 6 3 8.8 osh-native mut+alloc+free+gc+exit
9 6 3 11.0 osh-nosouffle mut+alloc
9 7 2 11.1 osh-nosouffle mut+alloc+free
10 10 0 9.0 osh-nosouffle mut+alloc+free+gc
10 8 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 8 3 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 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 9 1 1.6 dash -
30 29 1 3.3 bash -
21 16 5 3.3 zsh -
16 14 3 32.3 bumpleak/osh mut
19 11 8 33.4 _bin/cxx-opt+bumproot/osh mut
21 15 6 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 26.7 osh-native mut+alloc
30 18 13 27.0 osh-native mut+alloc+free
20 20 0 8.3 osh-native mut+alloc+free+gc
20 17 2 8.3 osh-native mut+alloc+free+gc+exit
33 23 10 27.1 osh-nosouffle mut+alloc
35 26 9 27.5 osh-nosouffle mut+alloc+free
24 21 3 8.8 osh-nosouffle mut+alloc+free+gc
25 23 1 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 32 14 36.2 _bin/cxx-opt+nopool/osh mut+alloc
30 26 4 9.6 _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 98 5 3.5 bash -
210 168 42 56.2 bumpleak/osh mut
219 171 48 57.3 _bin/cxx-opt+bumproot/osh mut
237 185 52 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
255 189 66 48.8 osh-native mut+alloc
262 188 75 50.7 osh-native mut+alloc+free
220 174 46 9.0 osh-native mut+alloc+free+gc
221 179 42 9.0 osh-native mut+alloc+free+gc+exit
262 182 80 49.2 osh-nosouffle mut+alloc
270 195 75 51.2 osh-nosouffle mut+alloc+free
226 182 44 9.7 osh-nosouffle mut+alloc+free+gc
225 180 45 9.6 osh-nosouffle mut+alloc+free+gc+exit
277 201 76 66.0 _bin/cxx-opt+nopool/osh mut+alloc
251 206 45 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 5 4 4.1 dash -
16 8 8 4.7 bash -
15 5 10 4.1 zsh -
17 8 10 12.2 bumpleak/osh mut
19 7 12 13.7 _bin/cxx-opt+bumproot/osh mut
20 7 15 14.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 11 9 11.5 osh-native mut+alloc
20 13 8 11.7 osh-native mut+alloc+free
20 10 11 9.4 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 9 13 12.2 osh-nosouffle mut+alloc+free
21 9 13 10.1 osh-nosouffle mut+alloc+free+gc
23 12 11 10.2 osh-nosouffle mut+alloc+free+gc+exit
23 9 14 13.2 _bin/cxx-opt+nopool/osh mut+alloc
23 14 10 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc