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.4 471,276 1,282 6 413,160 5 206,580 osh-native
parse.configure-cpython 37 5 12 12.0 18.7 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 140 26 65 45.9 51.9 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 148 25 65 45.9 52.1 1,638,014 4,764 12 1,056,666 6 787,854 osh-nosouffle
parse.abuild 9 1 2 2.6 8.8 102,804 180 3 86,646 1 43,323 osh-native
parse.abuild 11 1 2 2.6 9.2 102,804 180 3 86,654 1 43,327 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 572,128 22,608 12 50,000 0 2,991 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,128 22,608 12 50,000 0 2,995 osh-nosouffle
ex.bashcomp-parse-help 223 0 4 11.6 9.0 990,274 15,258 21 50,000 0 3,968 osh-native
ex.bashcomp-parse-help 226 0 4 11.6 9.6 990,273 15,258 21 50,000 0 3,974 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.6 117,259 277 3 84,008 1 42,004 osh-native
ex.abuild-print-help 22 1 2 3.0 10.1 117,258 277 3 84,016 1 42,008 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.7 dash -
13 11 2 3.3 bash -
92 56 44 3.4 zsh -
15 12 3 29.1 bumpleak/osh mut
17 11 6 29.3 _bin/cxx-opt+bumproot/osh mut
19 10 9 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 15 11 25.6 osh-native mut+alloc
28 14 14 25.7 osh-native mut+alloc+free
32 25 7 18.4 osh-native mut+alloc+free+gc
35 29 6 18.2 osh-native mut+alloc+free+gc+exit
28 20 8 26.0 osh-nosouffle mut+alloc
31 21 10 26.2 osh-nosouffle mut+alloc+free
37 30 7 18.7 osh-nosouffle mut+alloc+free+gc
36 30 6 18.7 osh-nosouffle mut+alloc+free+gc+exit
40 20 19 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 38 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 23 0 1.7 dash -
42 39 3 3.4 bash -
330 183 170 3.8 zsh -
45 37 8 84.5 bumpleak/osh mut
49 40 9 86.4 _bin/cxx-opt+bumproot/osh mut
59 46 13 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
85 54 31 73.7 osh-native mut+alloc
92 61 31 75.5 osh-native mut+alloc+free
140 117 23 51.9 osh-native mut+alloc+free+gc
154 129 25 52.4 osh-native mut+alloc+free+gc+exit
92 60 32 74.2 osh-nosouffle mut+alloc
101 65 36 76.2 osh-nosouffle mut+alloc+free
148 118 30 52.1 osh-nosouffle mut+alloc+free+gc
152 132 20 52.8 osh-nosouffle mut+alloc+free+gc+exit
126 86 40 98.8 _bin/cxx-opt+nopool/osh mut+alloc
215 189 26 74.0 _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 4 0 3.1 bash -
7 2 4 3.5 zsh -
6 4 2 11.5 bumpleak/osh mut
7 2 5 12.5 _bin/cxx-opt+bumproot/osh mut
6 5 1 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.5 osh-native mut+alloc
8 4 4 10.9 osh-native mut+alloc+free
9 7 3 8.8 osh-native mut+alloc+free+gc
9 8 1 8.9 osh-native mut+alloc+free+gc+exit
9 4 5 10.9 osh-nosouffle mut+alloc
9 5 4 11.0 osh-nosouffle mut+alloc+free
11 7 4 9.2 osh-nosouffle mut+alloc+free+gc
10 4 7 9.2 osh-nosouffle mut+alloc+free+gc+exit
12 9 2 11.9 _bin/cxx-opt+nopool/osh mut+alloc
16 13 3 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
10 9 1 1.4 dash -
31 29 2 3.3 bash -
22 17 4 3.4 zsh -
16 14 2 31.8 bumpleak/osh mut
19 13 6 32.9 _bin/cxx-opt+bumproot/osh mut
22 15 7 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 17 12 26.7 osh-native mut+alloc
31 17 14 27.0 osh-native mut+alloc+free
20 19 1 8.3 osh-native mut+alloc+free+gc
20 19 1 8.1 osh-native mut+alloc+free+gc+exit
34 23 11 27.4 osh-nosouffle mut+alloc
36 26 10 27.5 osh-nosouffle mut+alloc+free
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 27 19 36.4 _bin/cxx-opt+nopool/osh mut+alloc
30 26 4 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
103 97 6 3.4 bash -
213 153 60 57.1 bumpleak/osh mut
222 175 47 56.8 _bin/cxx-opt+bumproot/osh mut
241 189 52 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
258 189 69 48.8 osh-native mut+alloc
264 197 67 50.9 osh-native mut+alloc+free
223 178 45 9.0 osh-native mut+alloc+free+gc
223 173 50 9.0 osh-native mut+alloc+free+gc+exit
262 193 69 49.2 osh-nosouffle mut+alloc
271 196 75 51.2 osh-nosouffle mut+alloc+free
226 180 46 9.6 osh-nosouffle mut+alloc+free+gc
228 174 54 9.7 osh-nosouffle mut+alloc+free+gc+exit
278 206 72 65.7 _bin/cxx-opt+nopool/osh mut+alloc
253 208 45 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 5 5 4.1 dash -
16 7 9 4.7 bash -
16 9 7 3.9 zsh -
17 9 9 14.3 bumpleak/osh mut
18 7 11 14.2 _bin/cxx-opt+bumproot/osh mut
18 9 9 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 10 10 11.5 osh-native mut+alloc
21 9 13 11.7 osh-native mut+alloc+free
21 10 12 9.6 osh-native mut+alloc+free+gc
22 10 13 9.6 osh-native mut+alloc+free+gc+exit
21 10 11 12.1 osh-nosouffle mut+alloc
22 9 14 12.3 osh-nosouffle mut+alloc+free
22 12 11 10.1 osh-nosouffle mut+alloc+free+gc
22 12 10 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 15 9 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 15 9 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc