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.1 471,265 1,282 6 413,146 5 206,573 osh-native
parse.configure-cpython 34 4 9 12.0 18.6 471,265 1,282 6 413,154 5 206,577 osh-nosouffle
parse.configure-coreutils 144 27 70 45.9 51.7 1,638,004 4,764 12 1,056,644 6 787,843 osh-native
parse.configure-coreutils 144 25 62 45.9 52.3 1,638,003 4,764 12 1,056,652 6 787,847 osh-nosouffle
parse.abuild 9 1 2 2.6 8.5 102,793 180 3 86,632 1 43,316 osh-native
parse.abuild 10 1 2 2.6 9.0 102,793 180 3 86,640 1 43,320 osh-nosouffle
ex.compute-fib 20 0 1 2.8 8.3 572,117 22,608 12 50,000 0 2,984 osh-native
ex.compute-fib 25 0 1 2.8 8.8 572,117 22,608 12 50,000 0 2,987 osh-nosouffle
ex.bashcomp-parse-help 220 0 3 11.6 8.9 990,263 15,258 21 50,000 0 3,965 osh-native
ex.bashcomp-parse-help 228 0 3 11.6 9.6 990,262 15,258 21 50,000 0 3,967 osh-nosouffle
ex.abuild-print-help 20 1 2 3.0 9.4 117,221 277 3 83,994 1 41,997 osh-native
ex.abuild-print-help 21 1 2 3.0 10.0 117,220 277 3 84,002 1 42,001 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.7 dash -
13 12 1 3.3 bash -
88 52 44 3.5 zsh -
16 9 7 29.1 bumpleak/osh mut
16 11 5 28.8 _bin/cxx-opt+bumproot/osh mut
18 14 4 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 17 9 25.4 osh-native mut+alloc
28 18 10 25.8 osh-native mut+alloc+free
31 23 8 18.1 osh-native mut+alloc+free+gc
32 24 7 18.4 osh-native mut+alloc+free+gc+exit
28 23 5 26.0 osh-nosouffle mut+alloc
29 23 6 26.3 osh-nosouffle mut+alloc+free
34 28 6 18.6 osh-nosouffle mut+alloc+free+gc
35 28 7 18.7 osh-nosouffle mut+alloc+free+gc+exit
39 21 18 32.7 _bin/cxx-opt+nopool/osh mut+alloc
44 36 7 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
23 23 0 1.7 dash -
42 41 1 3.4 bash -
321 185 157 3.8 zsh -
44 33 12 86.3 bumpleak/osh mut
47 38 9 85.3 _bin/cxx-opt+bumproot/osh mut
59 44 14 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 53 30 73.5 osh-native mut+alloc
92 65 27 75.4 osh-native mut+alloc+free
144 127 17 51.7 osh-native mut+alloc+free+gc
142 127 15 52.4 osh-native mut+alloc+free+gc+exit
92 65 27 74.1 osh-nosouffle mut+alloc
100 72 28 75.9 osh-nosouffle mut+alloc+free
144 124 20 52.3 osh-nosouffle mut+alloc+free+gc
143 125 18 52.9 osh-nosouffle mut+alloc+free+gc+exit
127 81 46 98.9 _bin/cxx-opt+nopool/osh mut+alloc
199 170 29 72.7 _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 3 1 3.3 bash -
6 4 2 3.4 zsh -
6 4 2 11.8 bumpleak/osh mut
6 5 1 12.8 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.6 osh-native mut+alloc
8 4 4 10.6 osh-native mut+alloc+free
9 5 4 8.5 osh-native mut+alloc+free+gc
9 7 2 8.9 osh-native mut+alloc+free+gc+exit
8 6 2 10.9 osh-nosouffle mut+alloc
9 4 5 11.0 osh-nosouffle mut+alloc+free
10 5 5 9.0 osh-nosouffle mut+alloc+free+gc
10 8 2 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 3 8 11.8 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.7 _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 -
31 30 1 3.1 bash -
21 18 3 3.4 zsh -
17 14 3 31.9 bumpleak/osh mut
18 13 5 33.3 _bin/cxx-opt+bumproot/osh mut
21 19 2 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 17 10 27.1 osh-native mut+alloc
30 21 8 27.1 osh-native mut+alloc+free
20 17 3 8.3 osh-native mut+alloc+free+gc
20 19 1 8.3 osh-native mut+alloc+free+gc+exit
33 24 9 27.5 osh-nosouffle mut+alloc
35 27 8 27.5 osh-nosouffle mut+alloc+free
25 19 6 8.8 osh-nosouffle mut+alloc+free+gc
25 25 0 8.7 osh-nosouffle mut+alloc+free+gc+exit
45 34 10 36.6 _bin/cxx-opt+nopool/osh mut+alloc
30 27 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
104 101 3 3.4 bash -
214 170 44 56.9 bumpleak/osh mut
220 170 50 57.4 _bin/cxx-opt+bumproot/osh mut
240 194 45 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
253 192 61 48.9 osh-native mut+alloc
259 195 64 50.7 osh-native mut+alloc+free
220 172 47 8.9 osh-native mut+alloc+free+gc
220 171 49 8.9 osh-native mut+alloc+free+gc+exit
259 188 70 49.3 osh-nosouffle mut+alloc
267 194 73 51.3 osh-nosouffle mut+alloc+free
228 166 62 9.6 osh-nosouffle mut+alloc+free+gc
226 176 50 9.7 osh-nosouffle mut+alloc+free+gc+exit
281 197 84 64.3 _bin/cxx-opt+nopool/osh mut+alloc
250 207 43 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 6 3.9 dash -
15 7 9 4.8 bash -
15 11 5 3.9 zsh -
18 11 7 13.1 bumpleak/osh mut
19 9 10 13.9 _bin/cxx-opt+bumproot/osh mut
18 9 9 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 9 10 11.7 osh-native mut+alloc
20 9 12 11.7 osh-native mut+alloc+free
20 13 8 9.4 osh-native mut+alloc+free+gc
21 10 12 9.6 osh-native mut+alloc+free+gc+exit
23 11 13 12.2 osh-nosouffle mut+alloc
22 8 14 12.3 osh-nosouffle mut+alloc+free
21 11 11 10.0 osh-nosouffle mut+alloc+free+gc
28 14 15 10.2 osh-nosouffle mut+alloc+free+gc+exit
22 13 10 13.1 _bin/cxx-opt+nopool/osh mut+alloc
23 13 10 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc