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 30 4 10 12.0 18.2 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 35 5 12 12.0 18.7 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 120 19 56 45.9 52.0 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 141 21 65 45.9 52.3 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 9 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.4 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 170 0 5 11.6 9.2 990,261 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 176 0 5 11.6 9.6 990,260 15,258 21 50,000 0 3,969 osh-nosouffle
ex.abuild-print-help 17 1 2 3.0 9.6 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 18 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 -
65 46 24 3.7 zsh -
16 10 6 29.5 bumpleak/osh mut
17 12 5 30.1 _bin/cxx-opt+bumproot/osh mut
19 13 6 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 14 8 25.4 osh-native mut+alloc
24 20 4 26.0 osh-native mut+alloc+free
30 26 4 18.2 osh-native mut+alloc+free+gc
33 23 10 18.4 osh-native mut+alloc+free+gc+exit
24 15 9 26.0 osh-nosouffle mut+alloc
27 21 6 26.3 osh-nosouffle mut+alloc+free
35 28 7 18.7 osh-nosouffle mut+alloc+free+gc
35 30 5 18.9 osh-nosouffle mut+alloc+free+gc+exit
33 17 17 32.4 _bin/cxx-opt+nopool/osh mut+alloc
45 39 6 22.7 _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 17 1 1.7 dash -
38 36 2 3.4 bash -
232 140 108 3.7 zsh -
49 35 14 85.3 bumpleak/osh mut
53 36 17 86.0 _bin/cxx-opt+bumproot/osh mut
60 43 17 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
70 42 28 73.7 osh-native mut+alloc
81 52 29 75.8 osh-native mut+alloc+free
120 113 7 52.0 osh-native mut+alloc+free+gc
129 110 19 52.5 osh-native mut+alloc+free+gc+exit
79 55 24 74.1 osh-nosouffle mut+alloc
89 61 28 75.9 osh-nosouffle mut+alloc+free
141 124 17 52.3 osh-nosouffle mut+alloc+free+gc
146 133 13 52.8 osh-nosouffle mut+alloc+free+gc+exit
107 58 49 97.9 _bin/cxx-opt+nopool/osh mut+alloc
171 147 24 73.2 _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
1 1 0 1.7 dash -
3 2 1 3.4 bash -
5 1 3 3.5 zsh -
5 4 2 12.6 bumpleak/osh mut
6 3 2 11.3 _bin/cxx-opt+bumproot/osh mut
6 5 1 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
6 5 1 10.5 osh-native mut+alloc
7 4 3 10.5 osh-native mut+alloc+free
8 7 1 8.8 osh-native mut+alloc+free+gc
8 7 2 8.9 osh-native mut+alloc+free+gc+exit
7 5 3 11.0 osh-nosouffle mut+alloc
8 5 3 11.3 osh-nosouffle mut+alloc+free
9 8 1 9.3 osh-nosouffle mut+alloc+free+gc
9 8 1 9.2 osh-nosouffle mut+alloc+free+gc+exit
9 7 2 12.0 _bin/cxx-opt+nopool/osh mut+alloc
10 8 2 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
9 9 0 1.6 dash -
28 28 0 3.3 bash -
16 13 3 3.5 zsh -
19 13 6 33.1 bumpleak/osh mut
20 15 5 33.1 _bin/cxx-opt+bumproot/osh mut
22 18 4 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 18 6 27.0 osh-native mut+alloc
27 20 7 27.3 osh-native mut+alloc+free
20 18 2 8.4 osh-native mut+alloc+free+gc
20 19 1 8.3 osh-native mut+alloc+free+gc+exit
30 24 6 27.3 osh-nosouffle mut+alloc
33 17 15 27.7 osh-nosouffle mut+alloc+free
25 22 3 8.8 osh-nosouffle mut+alloc+free+gc
25 25 0 8.8 osh-nosouffle mut+alloc+free+gc+exit
40 24 16 36.4 _bin/cxx-opt+nopool/osh mut+alloc
28 24 3 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
96 93 2 3.4 bash -
171 147 24 57.5 bumpleak/osh mut
180 146 34 56.5 _bin/cxx-opt+bumproot/osh mut
186 155 30 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
194 157 37 48.8 osh-native mut+alloc
200 159 41 50.9 osh-native mut+alloc+free
170 142 28 9.2 osh-native mut+alloc+free+gc
171 152 19 9.2 osh-native mut+alloc+free+gc+exit
197 167 30 49.3 osh-nosouffle mut+alloc
204 186 18 51.1 osh-nosouffle mut+alloc+free
176 158 18 9.6 osh-nosouffle mut+alloc+free+gc
175 155 20 9.6 osh-nosouffle mut+alloc+free+gc+exit
220 183 37 65.0 _bin/cxx-opt+nopool/osh mut+alloc
202 180 22 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
7 5 2 4.1 dash -
13 6 6 4.7 bash -
11 5 7 4.1 zsh -
16 8 7 13.2 bumpleak/osh mut
14 8 7 12.6 _bin/cxx-opt+bumproot/osh mut
15 10 6 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
15 9 7 11.7 osh-native mut+alloc
17 10 7 11.8 osh-native mut+alloc+free
17 13 4 9.6 osh-native mut+alloc+free+gc
17 11 7 9.4 osh-native mut+alloc+free+gc+exit
16 10 7 12.2 osh-nosouffle mut+alloc
18 11 7 12.5 osh-nosouffle mut+alloc+free
18 12 7 10.0 osh-nosouffle mut+alloc+free+gc
18 11 8 10.0 osh-nosouffle mut+alloc+free+gc+exit
18 9 10 13.3 _bin/cxx-opt+nopool/osh mut+alloc
20 13 8 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc