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.1 471,263 1,282 6 413,142 5 206,571 osh-native
parse.configure-cpython 32 4 10 12.0 18.7 471,263 1,282 6 413,150 5 206,575 osh-nosouffle
parse.configure-coreutils 121 19 57 45.9 51.9 1,638,002 4,764 12 1,056,640 6 787,841 osh-native
parse.configure-coreutils 134 19 59 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.7 572,115 22,608 12 50,000 0 2,985 osh-nosouffle
ex.bashcomp-parse-help 172 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.4 117,219 277 3 83,990 1 41,995 osh-native
ex.abuild-print-help 18 1 2 3.0 10.1 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 4 2 1.7 dash -
11 11 0 3.1 bash -
66 42 29 3.5 zsh -
16 11 5 30.1 bumpleak/osh mut
17 11 6 29.9 _bin/cxx-opt+bumproot/osh mut
19 17 2 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 14 7 25.6 osh-native mut+alloc
25 17 7 25.8 osh-native mut+alloc+free
30 25 4 18.1 osh-native mut+alloc+free+gc
31 26 5 18.4 osh-native mut+alloc+free+gc+exit
24 16 8 26.1 osh-nosouffle mut+alloc
27 17 10 26.2 osh-nosouffle mut+alloc+free
32 30 2 18.7 osh-nosouffle mut+alloc+free+gc
34 28 6 18.7 osh-nosouffle mut+alloc+free+gc+exit
33 22 11 33.3 _bin/cxx-opt+nopool/osh mut+alloc
43 33 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
18 18 0 1.7 dash -
38 37 1 3.5 bash -
232 148 98 3.8 zsh -
50 35 15 85.6 bumpleak/osh mut
53 38 14 86.5 _bin/cxx-opt+bumproot/osh mut
61 43 18 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
69 47 22 73.7 osh-native mut+alloc
80 48 32 75.8 osh-native mut+alloc+free
121 106 15 51.9 osh-native mut+alloc+free+gc
129 105 23 52.4 osh-native mut+alloc+free+gc+exit
80 57 23 74.0 osh-nosouffle mut+alloc
89 69 20 76.0 osh-nosouffle mut+alloc+free
134 116 18 52.3 osh-nosouffle mut+alloc+free+gc
141 121 20 52.9 osh-nosouffle mut+alloc+free+gc+exit
107 71 36 98.4 _bin/cxx-opt+nopool/osh mut+alloc
177 152 25 74.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.3 bash -
5 2 2 3.3 zsh -
6 2 4 12.4 bumpleak/osh mut
6 5 1 11.5 _bin/cxx-opt+bumproot/osh mut
6 5 1 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
7 4 3 10.7 osh-native mut+alloc
7 4 3 10.7 osh-native mut+alloc+free
8 8 0 8.8 osh-native mut+alloc+free+gc
9 7 2 8.9 osh-native mut+alloc+free+gc+exit
7 5 2 11.1 osh-nosouffle mut+alloc
8 4 4 11.1 osh-nosouffle mut+alloc+free
9 7 2 9.3 osh-nosouffle mut+alloc+free+gc
9 8 1 9.3 osh-nosouffle mut+alloc+free+gc+exit
9 6 3 12.2 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 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 -
29 28 1 3.3 bash -
17 15 2 3.4 zsh -
19 12 6 33.3 bumpleak/osh mut
20 13 6 32.1 _bin/cxx-opt+bumproot/osh mut
23 16 7 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 15 10 26.9 osh-native mut+alloc
28 17 11 27.4 osh-native mut+alloc+free
20 19 1 8.4 osh-native mut+alloc+free+gc
20 17 3 8.4 osh-native mut+alloc+free+gc+exit
30 18 12 27.4 osh-nosouffle mut+alloc
38 25 13 27.5 osh-nosouffle mut+alloc+free
25 23 2 8.7 osh-nosouffle mut+alloc+free+gc
25 23 2 8.9 osh-nosouffle mut+alloc+free+gc+exit
40 31 9 36.8 _bin/cxx-opt+nopool/osh mut+alloc
28 25 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 94 2 3.4 bash -
170 142 28 56.3 bumpleak/osh mut
178 151 27 57.6 _bin/cxx-opt+bumproot/osh mut
186 151 35 57.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
193 154 39 48.8 osh-native mut+alloc
201 165 36 50.9 osh-native mut+alloc+free
172 152 20 9.2 osh-native mut+alloc+free+gc
173 159 14 9.2 osh-native mut+alloc+free+gc+exit
201 162 39 49.3 osh-nosouffle mut+alloc
207 171 36 51.3 osh-nosouffle mut+alloc+free
176 162 14 9.6 osh-nosouffle mut+alloc+free+gc
177 156 21 9.4 osh-nosouffle mut+alloc+free+gc+exit
218 171 47 64.1 _bin/cxx-opt+nopool/osh mut+alloc
200 172 28 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 7 6 4.8 bash -
11 6 6 4.1 zsh -
16 8 8 13.4 bumpleak/osh mut
16 8 9 13.2 _bin/cxx-opt+bumproot/osh mut
15 7 8 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
16 9 7 11.5 osh-native mut+alloc
17 9 9 11.8 osh-native mut+alloc+free
17 10 7 9.4 osh-native mut+alloc+free+gc
18 10 8 9.7 osh-native mut+alloc+free+gc+exit
17 8 9 12.1 osh-nosouffle mut+alloc
18 9 9 12.2 osh-nosouffle mut+alloc+free
18 13 6 10.1 osh-nosouffle mut+alloc+free+gc
19 12 7 10.2 osh-nosouffle mut+alloc+free+gc+exit
19 10 9 13.2 _bin/cxx-opt+nopool/osh mut+alloc
20 14 6 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc