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,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 35 3 10 12.0 18.6 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 145 28 71 45.9 51.7 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 150 26 66 45.9 52.1 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 10 1 2 2.6 8.7 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 10 1 2 2.6 9.0 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 21 0 2 2.8 8.1 576,705 22,608 12 50,000 0 2,976 osh-native
ex.compute-fib 25 0 1 2.8 8.7 576,705 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 220 0 3 11.6 9.0 990,260 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 228 0 3 11.6 9.4 990,259 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.3 117,247 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 21 1 2 3.0 10.1 117,246 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
6 6 0 1.7 dash -
13 12 1 3.3 bash -
90 48 48 3.4 zsh -
16 12 4 29.1 bumpleak/osh mut
17 12 5 28.7 _bin/cxx-opt+bumproot/osh mut
19 11 8 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 14 11 25.4 osh-native mut+alloc
27 18 9 25.7 osh-native mut+alloc+free
31 23 8 18.2 osh-native mut+alloc+free+gc
32 24 8 18.2 osh-native mut+alloc+free+gc+exit
28 15 13 26.0 osh-nosouffle mut+alloc
31 25 6 26.3 osh-nosouffle mut+alloc+free
35 28 7 18.6 osh-nosouffle mut+alloc+free+gc
35 28 7 18.7 osh-nosouffle mut+alloc+free+gc+exit
40 21 19 33.0 _bin/cxx-opt+nopool/osh mut+alloc
47 35 12 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 23 0 1.6 dash -
42 40 2 3.4 bash -
329 188 164 3.5 zsh -
44 34 10 84.6 bumpleak/osh mut
48 37 11 84.7 _bin/cxx-opt+bumproot/osh mut
63 49 14 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 51 31 73.7 osh-native mut+alloc
95 66 29 75.6 osh-native mut+alloc+free
145 123 22 51.7 osh-native mut+alloc+free+gc
150 127 23 52.5 osh-native mut+alloc+free+gc+exit
92 58 34 74.1 osh-nosouffle mut+alloc
100 67 34 76.0 osh-nosouffle mut+alloc+free
150 126 24 52.1 osh-nosouffle mut+alloc+free+gc
161 135 26 52.9 osh-nosouffle mut+alloc+free+gc+exit
127 82 45 98.5 _bin/cxx-opt+nopool/osh mut+alloc
202 180 22 71.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 2 0 1.6 dash -
4 2 1 3.1 bash -
7 5 1 3.4 zsh -
6 5 1 12.3 bumpleak/osh mut
6 4 2 11.2 _bin/cxx-opt+bumproot/osh mut
6 5 2 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.6 osh-native mut+alloc
9 6 2 10.6 osh-native mut+alloc+free
10 8 1 8.7 osh-native mut+alloc+free+gc
10 7 3 8.8 osh-native mut+alloc+free+gc+exit
9 3 6 11.0 osh-nosouffle mut+alloc
9 6 4 11.1 osh-nosouffle mut+alloc+free
10 8 2 9.0 osh-nosouffle mut+alloc+free+gc
10 10 0 9.3 osh-nosouffle mut+alloc+free+gc+exit
12 8 3 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 6 6 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
9 9 0 1.6 dash -
31 30 1 3.1 bash -
21 18 3 3.4 zsh -
17 13 4 33.2 bumpleak/osh mut
18 15 3 34.1 _bin/cxx-opt+bumproot/osh mut
21 13 8 33.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 15 13 27.0 osh-native mut+alloc
30 16 14 27.1 osh-native mut+alloc+free
21 18 3 8.1 osh-native mut+alloc+free+gc
20 18 2 8.3 osh-native mut+alloc+free+gc+exit
34 26 8 27.5 osh-nosouffle mut+alloc
35 27 8 27.7 osh-nosouffle mut+alloc+free
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc
25 21 4 8.8 osh-nosouffle mut+alloc+free+gc+exit
46 29 17 36.5 _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
104 98 6 3.4 bash -
213 165 48 57.8 bumpleak/osh mut
222 173 49 56.0 _bin/cxx-opt+bumproot/osh mut
237 178 59 57.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
257 174 83 48.8 osh-native mut+alloc
264 195 69 50.7 osh-native mut+alloc+free
220 173 47 9.0 osh-native mut+alloc+free+gc
222 173 49 9.0 osh-native mut+alloc+free+gc+exit
263 192 71 49.3 osh-nosouffle mut+alloc
268 195 74 51.1 osh-nosouffle mut+alloc+free
228 183 44 9.4 osh-nosouffle mut+alloc+free+gc
228 193 35 9.6 osh-nosouffle mut+alloc+free+gc+exit
282 198 84 65.9 _bin/cxx-opt+nopool/osh mut+alloc
252 198 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
9 6 4 3.8 dash -
16 9 8 4.8 bash -
16 7 10 3.9 zsh -
18 6 13 13.3 bumpleak/osh mut
18 10 9 14.3 _bin/cxx-opt+bumproot/osh mut
19 8 11 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 12 8 11.4 osh-native mut+alloc
21 7 15 11.8 osh-native mut+alloc+free
21 8 13 9.3 osh-native mut+alloc+free+gc
21 10 12 9.7 osh-native mut+alloc+free+gc+exit
21 10 11 12.1 osh-nosouffle mut+alloc
22 8 15 12.1 osh-nosouffle mut+alloc+free
21 10 12 10.1 osh-nosouffle mut+alloc+free+gc
22 14 9 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 7 17 13.1 _bin/cxx-opt+nopool/osh mut+alloc
23 12 12 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc