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 35 3 9 12.0 17.8 476,689 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 150 26 62 46.1 51.4 1,653,277 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.4 101,880 180 2 75,098 1 37,549 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,145 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 182 0 3 10.6 8.7 995,222 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 22 1 2 2.8 8.8 116,289 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 6 0 1.6 dash -
23 23 0 3.1 bash -
105 56 55 3.4 zsh -
16 12 4 29.8 bumpleak/osh mut
22 15 7 30.0 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.2 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
35 31 4 17.8 osh-native mut+alloc+free+gc
36 32 4 18.0 osh-native mut+alloc+free+gc+exit
42 23 19 32.4 _bin/cxx-opt+nopool/osh mut+alloc
46 27 19 22.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
21 21 0 1.6 dash -
78 74 4 3.1 bash -
379 217 184 3.7 zsh -
48 40 8 84.3 bumpleak/osh mut
61 57 4 84.4 _bin/cxx-opt+bumproot/osh mut
83 78 4 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 62 35 73.6 osh-native mut+alloc
106 77 28 75.3 osh-native mut+alloc+free
150 137 12 51.4 osh-native mut+alloc+free+gc
155 124 32 52.2 osh-native mut+alloc+free+gc+exit
138 89 49 98.8 _bin/cxx-opt+nopool/osh mut+alloc
211 179 32 73.3 _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.4 dash -
6 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 10.1 bumpleak/osh mut
7 7 0 11.8 _bin/cxx-opt+bumproot/osh mut
7 3 3 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 4 4 8.4 osh-native mut+alloc+free+gc
9 4 4 8.5 osh-native mut+alloc+free+gc+exit
11 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 6 6 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
10 7 3 1.4 dash -
29 29 0 3.0 bash -
24 12 12 3.3 zsh -
19 15 4 32.0 bumpleak/osh mut
25 21 4 31.8 _bin/cxx-opt+bumproot/osh mut
28 20 8 31.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 16 26.5 osh-native mut+alloc
38 23 15 26.7 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 28 0 7.9 osh-native mut+alloc+free+gc+exit
53 37 16 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 32 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
72 72 0 3.1 bash -
171 123 48 53.7 bumpleak/osh mut
181 132 48 55.5 _bin/cxx-opt+bumproot/osh mut
194 134 59 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 136 76 47.1 osh-native mut+alloc
220 156 64 48.8 osh-native mut+alloc+free
182 129 52 8.7 osh-native mut+alloc+free+gc
180 132 48 8.8 osh-native mut+alloc+free+gc+exit
230 182 48 63.9 _bin/cxx-opt+nopool/osh mut+alloc
210 158 51 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 5 6 3.5 dash -
20 7 13 4.5 bash -
17 8 10 3.4 zsh -
20 11 9 12.9 bumpleak/osh mut
21 19 2 12.5 _bin/cxx-opt+bumproot/osh mut
20 17 3 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 20 2 10.9 osh-native mut+alloc
23 11 12 11.1 osh-native mut+alloc+free
22 16 7 8.8 osh-native mut+alloc+free+gc
22 16 7 8.7 osh-native mut+alloc+free+gc+exit
25 25 0 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 23 2 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc