Memory Management Overhead

Source code: oil/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 37 4 10 12.0 18.0 476,685 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 160 26 73 46.1 51.6 1,653,273 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.3 101,876 180 2 75,098 1 37,549 osh-native
ex.compute-fib 29 0 2 2.6 7.9 584,141 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 180 0 4 10.6 8.8 995,218 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 23 1 2 2.8 9.0 116,285 478 3 85,334 1 42,667 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 3 3 1.6 dash -
24 23 0 3.0 bash -
104 52 58 3.4 zsh -
16 16 0 29.8 bumpleak/osh mut
20 20 0 29.7 _bin/cxx-opt+bumproot/osh mut
23 22 0 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.0 osh-native mut+alloc
33 20 12 25.4 osh-native mut+alloc+free
37 33 4 18.0 osh-native mut+alloc+free+gc
40 32 8 17.8 osh-native mut+alloc+free+gc+exit
44 24 20 33.5 _bin/cxx-opt+nopool/osh mut+alloc
49 37 12 21.9 _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
22 18 4 1.6 dash -
77 77 0 3.1 bash -
380 227 174 3.3 zsh -
49 37 12 84.2 bumpleak/osh mut
59 47 12 85.6 _bin/cxx-opt+bumproot/osh mut
70 62 8 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 82 16 73.3 osh-native mut+alloc
107 79 28 75.1 osh-native mut+alloc+free
160 136 24 51.6 osh-native mut+alloc+free+gc
168 148 20 52.1 osh-native mut+alloc+free+gc+exit
140 82 57 98.7 _bin/cxx-opt+nopool/osh mut+alloc
225 193 32 73.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 2 0 1.3 dash -
6 6 0 2.9 bash -
8 8 0 3.3 zsh -
6 0 6 10.5 bumpleak/osh mut
7 7 0 12.4 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 0 8 9.8 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 9 0 8.3 osh-native mut+alloc+free+gc
10 10 0 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 4 8 9.5 _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 10 0 1.3 dash -
29 29 0 2.9 bash -
24 24 0 3.3 zsh -
20 16 4 31.9 bumpleak/osh mut
28 24 4 32.6 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 16 26.3 osh-native mut+alloc
39 27 12 26.7 osh-native mut+alloc+free
29 24 4 7.9 osh-native mut+alloc+free+gc
28 20 8 7.9 osh-native mut+alloc+free+gc+exit
53 32 20 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.4 _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
73 65 8 3.3 bash -
169 129 40 55.1 bumpleak/osh mut
181 137 44 56.3 _bin/cxx-opt+bumproot/osh mut
197 129 68 56.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 140 72 46.9 osh-native mut+alloc
218 157 61 48.9 osh-native mut+alloc+free
180 144 36 8.8 osh-native mut+alloc+free+gc
180 140 40 8.7 osh-native mut+alloc+free+gc+exit
234 154 79 64.3 _bin/cxx-opt+nopool/osh mut+alloc
209 148 60 10.2 _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
10 7 3 3.4 dash -
20 18 3 4.3 bash -
18 14 5 3.4 zsh -
19 13 7 11.6 bumpleak/osh mut
20 8 12 11.7 _bin/cxx-opt+bumproot/osh mut
22 19 3 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 16 6 10.9 osh-native mut+alloc
23 11 12 10.9 osh-native mut+alloc+free
23 16 7 9.0 osh-native mut+alloc+free+gc
24 15 9 8.8 osh-native mut+alloc+free+gc+exit
25 18 7 12.6 _bin/cxx-opt+nopool/osh mut+alloc
26 21 5 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc