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.4 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 36 5 11 12.0 18.7 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 144 24 69 45.9 51.7 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 151 26 69 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.4 572,115 22,608 12 50,000 0 2,982 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 226 0 4 11.6 9.2 990,261 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 228 0 4 11.6 9.4 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.6 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 22 1 2 3.0 10.0 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
7 6 1 1.8 dash -
13 12 1 3.3 bash -
90 55 42 3.5 zsh -
15 10 5 30.2 bumpleak/osh mut
17 13 4 30.5 _bin/cxx-opt+bumproot/osh mut
19 16 3 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 18 8 25.6 osh-native mut+alloc
27 19 8 25.7 osh-native mut+alloc+free
31 24 7 18.4 osh-native mut+alloc+free+gc
36 31 5 18.1 osh-native mut+alloc+free+gc+exit
28 24 5 26.0 osh-nosouffle mut+alloc
30 18 12 26.3 osh-nosouffle mut+alloc+free
36 29 7 18.7 osh-nosouffle mut+alloc+free+gc
36 30 6 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 24 15 32.2 _bin/cxx-opt+nopool/osh mut+alloc
47 36 11 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.7 dash -
47 44 3 3.4 bash -
318 182 158 3.7 zsh -
45 36 9 84.8 bumpleak/osh mut
48 38 10 86.1 _bin/cxx-opt+bumproot/osh mut
59 46 13 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
81 53 28 73.5 osh-native mut+alloc
91 55 36 75.5 osh-native mut+alloc+free
144 121 23 51.7 osh-native mut+alloc+free+gc
139 113 26 52.4 osh-native mut+alloc+free+gc+exit
93 52 41 74.3 osh-nosouffle mut+alloc
99 63 36 75.9 osh-nosouffle mut+alloc+free
151 127 24 52.1 osh-nosouffle mut+alloc+free+gc
160 138 22 52.9 osh-nosouffle mut+alloc+free+gc+exit
126 85 42 97.4 _bin/cxx-opt+nopool/osh mut+alloc
232 204 28 72.6 _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 2 2 3.1 bash -
6 4 2 3.4 zsh -
6 5 1 13.0 bumpleak/osh mut
7 4 3 12.3 _bin/cxx-opt+bumproot/osh mut
7 4 3 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.5 osh-native mut+alloc
8 4 4 10.7 osh-native mut+alloc+free
9 8 1 8.8 osh-native mut+alloc+free+gc
9 7 2 8.9 osh-native mut+alloc+free+gc+exit
9 4 5 11.0 osh-nosouffle mut+alloc
9 4 5 11.1 osh-nosouffle mut+alloc+free
10 7 3 9.0 osh-nosouffle mut+alloc+free+gc
10 8 2 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.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 9 1 1.7 dash -
31 29 2 3.4 bash -
21 17 4 3.5 zsh -
16 11 5 32.0 bumpleak/osh mut
19 13 6 32.7 _bin/cxx-opt+bumproot/osh mut
21 17 4 34.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 13 16 26.7 osh-native mut+alloc
30 16 15 27.1 osh-native mut+alloc+free
20 20 0 8.4 osh-native mut+alloc+free+gc
20 17 3 8.3 osh-native mut+alloc+free+gc+exit
33 19 14 27.3 osh-nosouffle mut+alloc
35 21 14 27.7 osh-nosouffle mut+alloc+free
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc
25 21 4 8.7 osh-nosouffle mut+alloc+free+gc+exit
45 25 20 36.3 _bin/cxx-opt+nopool/osh mut+alloc
30 25 5 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 99 5 3.4 bash -
213 162 51 57.7 bumpleak/osh mut
222 155 67 56.8 _bin/cxx-opt+bumproot/osh mut
239 179 60 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
259 192 67 48.8 osh-native mut+alloc
267 198 69 50.7 osh-native mut+alloc+free
226 187 39 9.2 osh-native mut+alloc+free+gc
220 174 46 9.0 osh-native mut+alloc+free+gc+exit
260 193 67 49.2 osh-nosouffle mut+alloc
271 202 69 51.3 osh-nosouffle mut+alloc+free
228 182 46 9.4 osh-nosouffle mut+alloc+free+gc
227 168 59 9.6 osh-nosouffle mut+alloc+free+gc+exit
277 193 84 64.6 _bin/cxx-opt+nopool/osh mut+alloc
254 199 55 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 3 7 3.9 dash -
16 5 11 4.7 bash -
16 6 10 3.9 zsh -
19 9 10 13.9 bumpleak/osh mut
18 8 10 12.6 _bin/cxx-opt+bumproot/osh mut
19 6 13 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 9 11 11.5 osh-native mut+alloc
21 8 13 11.8 osh-native mut+alloc+free
21 11 10 9.6 osh-native mut+alloc+free+gc
21 10 11 9.7 osh-native mut+alloc+free+gc+exit
20 13 8 12.2 osh-nosouffle mut+alloc
22 11 11 12.2 osh-nosouffle mut+alloc+free
22 9 13 10.0 osh-nosouffle mut+alloc+free+gc
22 11 12 10.1 osh-nosouffle mut+alloc+free+gc+exit
23 13 11 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 15 9 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc