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.2 471,276 1,282 6 413,160 5 206,580 osh-native
parse.configure-cpython 34 3 10 12.0 18.6 471,276 1,282 6 413,168 5 206,584 osh-nosouffle
parse.configure-coreutils 133 24 60 45.9 51.9 1,638,015 4,764 12 1,056,658 6 787,850 osh-native
parse.configure-coreutils 147 25 63 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 10 1 2 2.6 9.0 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.8 572,128 22,608 12 50,000 0 2,995 osh-nosouffle
ex.bashcomp-parse-help 221 0 3 11.6 9.0 990,274 15,258 21 50,000 0 3,968 osh-native
ex.bashcomp-parse-help 228 0 4 11.6 9.7 990,273 15,258 21 50,000 0 3,974 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,259 277 3 84,008 1 42,004 osh-native
ex.abuild-print-help 22 1 2 3.0 10.0 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 12 1 3.3 bash -
89 56 39 3.5 zsh -
15 12 3 29.9 bumpleak/osh mut
17 16 1 30.7 _bin/cxx-opt+bumproot/osh mut
19 14 5 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 18 7 25.4 osh-native mut+alloc
27 20 7 25.8 osh-native mut+alloc+free
32 25 7 18.2 osh-native mut+alloc+free+gc
32 26 6 18.2 osh-native mut+alloc+free+gc+exit
28 16 12 25.8 osh-nosouffle mut+alloc
30 20 11 26.3 osh-nosouffle mut+alloc+free
34 27 7 18.6 osh-nosouffle mut+alloc+free+gc
35 27 8 19.0 osh-nosouffle mut+alloc+free+gc+exit
38 23 16 32.1 _bin/cxx-opt+nopool/osh mut+alloc
46 33 13 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.8 dash -
43 41 2 3.5 bash -
326 186 161 3.7 zsh -
45 41 4 85.2 bumpleak/osh mut
49 41 8 85.5 _bin/cxx-opt+bumproot/osh mut
59 43 16 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
82 58 24 73.5 osh-native mut+alloc
90 58 32 75.5 osh-native mut+alloc+free
133 115 18 51.9 osh-native mut+alloc+free+gc
137 115 23 52.4 osh-native mut+alloc+free+gc+exit
91 55 36 74.2 osh-nosouffle mut+alloc
100 64 36 75.9 osh-nosouffle mut+alloc+free
147 114 33 52.1 osh-nosouffle mut+alloc+free+gc
148 116 32 52.8 osh-nosouffle mut+alloc+free+gc+exit
126 80 46 98.0 _bin/cxx-opt+nopool/osh mut+alloc
198 168 30 73.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 2 0 1.6 dash -
4 4 0 3.3 bash -
7 1 5 3.4 zsh -
6 3 3 12.7 bumpleak/osh mut
6 4 2 11.8 _bin/cxx-opt+bumproot/osh mut
7 2 5 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.5 osh-native mut+alloc
8 5 3 10.6 osh-native mut+alloc+free
9 5 4 8.8 osh-native mut+alloc+free+gc
9 6 3 8.8 osh-native mut+alloc+free+gc+exit
9 5 4 11.0 osh-nosouffle mut+alloc
9 5 4 11.0 osh-nosouffle mut+alloc+free
10 7 3 9.0 osh-nosouffle mut+alloc+free+gc
10 6 4 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 6 5 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 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.4 dash -
32 32 0 3.4 bash -
22 14 8 3.4 zsh -
18 13 5 33.2 bumpleak/osh mut
19 14 5 33.3 _bin/cxx-opt+bumproot/osh mut
21 14 7 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 15 14 26.9 osh-native mut+alloc
31 20 11 27.1 osh-native mut+alloc+free
20 16 4 8.3 osh-native mut+alloc+free+gc
20 16 4 8.3 osh-native mut+alloc+free+gc+exit
34 25 9 27.4 osh-nosouffle mut+alloc
35 27 8 27.6 osh-nosouffle mut+alloc+free
25 21 4 8.8 osh-nosouffle mut+alloc+free+gc
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
45 29 16 36.3 _bin/cxx-opt+nopool/osh mut+alloc
30 29 1 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 99 4 3.5 bash -
212 165 47 57.5 bumpleak/osh mut
222 173 48 56.8 _bin/cxx-opt+bumproot/osh mut
240 181 59 57.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
257 175 82 48.8 osh-native mut+alloc
265 192 72 50.9 osh-native mut+alloc+free
221 168 53 9.0 osh-native mut+alloc+free+gc
221 175 46 9.2 osh-native mut+alloc+free+gc+exit
260 190 70 49.3 osh-nosouffle mut+alloc
267 182 85 51.2 osh-nosouffle mut+alloc+free
228 179 49 9.7 osh-nosouffle mut+alloc+free+gc
228 188 40 9.7 osh-nosouffle mut+alloc+free+gc+exit
279 191 88 64.6 _bin/cxx-opt+nopool/osh mut+alloc
252 207 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 5 3.9 dash -
16 9 8 4.7 bash -
16 6 10 3.9 zsh -
19 8 12 12.8 bumpleak/osh mut
19 10 9 13.0 _bin/cxx-opt+bumproot/osh mut
20 10 10 13.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 10 11 11.5 osh-native mut+alloc
21 13 9 11.7 osh-native mut+alloc+free
21 10 12 9.4 osh-native mut+alloc+free+gc
22 14 9 9.6 osh-native mut+alloc+free+gc+exit
21 7 15 12.1 osh-nosouffle mut+alloc
23 13 10 12.3 osh-nosouffle mut+alloc+free
22 13 10 10.0 osh-nosouffle mut+alloc+free+gc
23 10 13 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 11 13 13.1 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc