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.7 476,636 1,282 6 408,686 5 204,343 osh-native
parse.configure-coreutils 149 25 61 46.1 51.3 1,653,224 4,764 12 1,069,052 6 798,607 osh-native
parse.abuild 9 1 1 2.6 8.5 101,827 180 2 75,028 1 37,514 osh-native
ex.compute-fib 29 0 1 3.1 7.7 584,088 31,810 12 50,000 0 2,788 osh-native
ex.bashcomp-parse-help 183 0 3 12.3 8.5 1,001,962 27,376 21 50,000 0 3,776 osh-native
ex.abuild-print-help 23 1 2 2.8 9.0 116,032 478 3 85,262 1 42,631 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 -
103 70 40 3.3 zsh -
16 12 4 29.0 bumpleak/osh mut
19 15 4 29.6 _bin/cxx-opt+bumproot/osh mut
23 18 4 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
31 15 15 25.4 osh-native mut+alloc+free
35 27 8 17.7 osh-native mut+alloc+free+gc
36 32 4 17.8 osh-native mut+alloc+free+gc+exit
42 29 12 32.0 _bin/cxx-opt+nopool/osh mut+alloc
47 36 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
21 21 0 1.4 dash -
77 73 4 3.0 bash -
374 201 194 3.5 zsh -
50 41 8 85.5 bumpleak/osh mut
61 52 8 84.8 _bin/cxx-opt+bumproot/osh mut
71 51 20 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 52 44 73.4 osh-native mut+alloc
106 85 20 75.3 osh-native mut+alloc+free
149 140 8 51.3 osh-native mut+alloc+free+gc
158 121 36 52.2 osh-native mut+alloc+free+gc+exit
137 90 47 97.8 _bin/cxx-opt+nopool/osh mut+alloc
209 193 16 71.0 _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 0 6 2.9 bash -
7 8 0 3.3 zsh -
6 0 6 10.7 bumpleak/osh mut
6 6 0 12.4 _bin/cxx-opt+bumproot/osh mut
7 3 3 10.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 9.8 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
10 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.4 _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
11 7 4 1.6 dash -
28 28 0 3.0 bash -
23 8 15 3.3 zsh -
20 8 12 32.2 bumpleak/osh mut
26 26 0 33.7 _bin/cxx-opt+bumproot/osh mut
29 28 0 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 36 0 26.7 osh-native mut+alloc
39 27 12 27.0 osh-native mut+alloc+free
29 24 4 7.7 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 30 23 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 30 7 9.2 _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
74 73 0 3.3 bash -
170 87 83 55.7 bumpleak/osh mut
180 120 60 56.2 _bin/cxx-opt+bumproot/osh mut
197 130 67 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 136 76 48.9 osh-native mut+alloc
219 124 96 50.6 osh-native mut+alloc+free
183 143 40 8.5 osh-native mut+alloc+free+gc
181 130 51 8.7 osh-native mut+alloc+free+gc+exit
235 167 68 65.7 _bin/cxx-opt+nopool/osh mut+alloc
212 163 48 10.1 _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 -
19 15 5 4.3 bash -
17 9 9 3.4 zsh -
20 7 13 11.8 bumpleak/osh mut
21 11 10 12.7 _bin/cxx-opt+bumproot/osh mut
22 13 9 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 9 10.9 osh-native mut+alloc
22 17 5 10.9 osh-native mut+alloc+free
23 20 3 9.0 osh-native mut+alloc+free+gc
23 15 8 8.8 osh-native mut+alloc+free+gc+exit
25 19 7 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 22 3 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc