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 33 5 12 12.0 18.4 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 34 4 12 12.0 18.9 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 135 22 67 45.9 52.0 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 141 22 65 45.9 52.4 1,638,001 4,764 12 1,056,648 6 787,845 osh-nosouffle
parse.abuild 8 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.3 102,791 180 3 86,636 1 43,318 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.3 572,115 22,608 12 50,000 0 2,982 osh-native
ex.compute-fib 25 0 2 2.8 8.8 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 172 0 5 11.6 9.3 990,261 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 181 0 5 11.6 9.7 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 18 1 2 3.0 9.4 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 19 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
5 5 0 1.7 dash -
11 10 1 3.4 bash -
66 45 26 3.5 zsh -
16 9 7 29.3 bumpleak/osh mut
18 13 4 30.5 _bin/cxx-opt+bumproot/osh mut
20 14 6 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 9 25.4 osh-native mut+alloc
25 16 10 25.8 osh-native mut+alloc+free
33 30 3 18.4 osh-native mut+alloc+free+gc
34 29 5 18.4 osh-native mut+alloc+free+gc+exit
25 18 6 26.0 osh-nosouffle mut+alloc
28 21 6 26.3 osh-nosouffle mut+alloc+free
34 29 5 18.9 osh-nosouffle mut+alloc+free+gc
35 29 6 18.9 osh-nosouffle mut+alloc+free+gc+exit
34 18 16 33.4 _bin/cxx-opt+nopool/osh mut+alloc
46 41 5 23.1 _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
18 18 0 1.7 dash -
38 36 2 3.5 bash -
239 150 108 3.8 zsh -
51 33 18 85.4 bumpleak/osh mut
55 38 17 85.5 _bin/cxx-opt+bumproot/osh mut
61 43 18 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
72 45 27 73.7 osh-native mut+alloc
84 56 28 75.5 osh-native mut+alloc+free
135 115 20 52.0 osh-native mut+alloc+free+gc
142 125 16 52.4 osh-native mut+alloc+free+gc+exit
81 53 28 74.2 osh-nosouffle mut+alloc
92 60 31 76.2 osh-nosouffle mut+alloc+free
141 125 16 52.4 osh-nosouffle mut+alloc+free+gc
147 128 19 52.9 osh-nosouffle mut+alloc+free+gc+exit
111 69 42 99.5 _bin/cxx-opt+nopool/osh mut+alloc
198 172 26 73.1 _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 -
3 2 1 3.1 bash -
5 5 0 3.4 zsh -
6 3 3 11.6 bumpleak/osh mut
6 4 2 12.0 _bin/cxx-opt+bumproot/osh mut
7 3 4 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
7 4 3 10.6 osh-native mut+alloc
7 6 2 10.7 osh-native mut+alloc+free
8 6 2 8.8 osh-native mut+alloc+free+gc
9 8 1 8.8 osh-native mut+alloc+free+gc+exit
8 4 4 11.3 osh-nosouffle mut+alloc
8 5 3 11.3 osh-nosouffle mut+alloc+free
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc
10 7 3 9.3 osh-nosouffle mut+alloc+free+gc+exit
9 7 2 12.2 _bin/cxx-opt+nopool/osh mut+alloc
11 8 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 8 1 1.6 dash -
29 28 1 3.4 bash -
16 13 3 3.5 zsh -
19 12 7 33.5 bumpleak/osh mut
21 12 9 33.3 _bin/cxx-opt+bumproot/osh mut
24 16 8 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 21 4 27.0 osh-native mut+alloc
29 18 10 27.3 osh-native mut+alloc+free
20 20 0 8.3 osh-native mut+alloc+free+gc
20 20 0 8.4 osh-native mut+alloc+free+gc+exit
30 23 8 27.3 osh-nosouffle mut+alloc
33 27 6 27.7 osh-nosouffle mut+alloc+free
25 19 6 8.8 osh-nosouffle mut+alloc+free+gc
25 22 3 8.7 osh-nosouffle mut+alloc+free+gc+exit
40 26 14 36.6 _bin/cxx-opt+nopool/osh mut+alloc
28 26 2 9.7 _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
97 93 3 3.4 bash -
171 145 26 57.5 bumpleak/osh mut
181 158 23 56.6 _bin/cxx-opt+bumproot/osh mut
191 155 35 57.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
195 161 34 48.8 osh-native mut+alloc
203 165 38 51.0 osh-native mut+alloc+free
172 147 25 9.3 osh-native mut+alloc+free+gc
174 149 25 9.0 osh-native mut+alloc+free+gc+exit
202 162 40 49.2 osh-nosouffle mut+alloc
209 175 34 51.4 osh-nosouffle mut+alloc+free
181 160 21 9.7 osh-nosouffle mut+alloc+free+gc
176 145 31 9.7 osh-nosouffle mut+alloc+free+gc+exit
223 181 42 64.7 _bin/cxx-opt+nopool/osh mut+alloc
203 186 17 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
7 3 4 4.1 dash -
13 8 6 5.0 bash -
11 6 6 3.9 zsh -
15 8 7 12.8 bumpleak/osh mut
15 10 5 12.8 _bin/cxx-opt+bumproot/osh mut
15 7 9 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
16 7 10 11.7 osh-native mut+alloc
17 11 7 11.9 osh-native mut+alloc+free
18 7 11 9.4 osh-native mut+alloc+free+gc
18 10 9 9.7 osh-native mut+alloc+free+gc+exit
17 11 7 12.2 osh-nosouffle mut+alloc
19 10 9 12.1 osh-nosouffle mut+alloc+free
19 13 7 10.0 osh-nosouffle mut+alloc+free+gc
19 11 9 10.1 osh-nosouffle mut+alloc+free+gc+exit
19 12 8 13.2 _bin/cxx-opt+nopool/osh mut+alloc
20 11 10 10.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc