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 36 4 9 12.0 18.0 476,682 1,282 6 408,752 5 204,376 osh-native
parse.configure-coreutils 169 28 79 46.1 51.6 1,653,270 4,764 12 1,069,118 6 798,640 osh-native
parse.abuild 9 1 1 2.6 8.4 101,873 180 2 75,094 1 37,547 osh-native
ex.compute-fib 28 0 1 2.6 7.7 584,138 31,810 12 50,000 0 2,824 osh-native
ex.bashcomp-parse-help 184 0 4 10.6 8.7 995,215 27,376 21 50,000 0 3,819 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 116,282 478 3 85,330 1 42,665 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.4 dash -
23 23 0 3.0 bash -
105 54 58 3.4 zsh -
17 8 8 28.1 bumpleak/osh mut
20 16 4 28.8 _bin/cxx-opt+bumproot/osh mut
23 18 5 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.2 osh-native mut+alloc
32 16 16 25.4 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
38 26 11 17.8 osh-native mut+alloc+free+gc+exit
44 24 20 32.0 _bin/cxx-opt+nopool/osh mut+alloc
51 42 8 22.0 _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 21 0 1.6 dash -
77 73 4 3.3 bash -
378 227 172 3.5 zsh -
50 35 15 84.9 bumpleak/osh mut
60 59 0 86.1 _bin/cxx-opt+bumproot/osh mut
105 88 16 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 82 16 73.4 osh-native mut+alloc
109 64 44 75.3 osh-native mut+alloc+free
169 149 20 51.6 osh-native mut+alloc+free+gc
169 149 20 52.2 osh-native mut+alloc+free+gc+exit
141 98 43 97.9 _bin/cxx-opt+nopool/osh mut+alloc
229 201 28 72.6 _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 3 3 2.9 bash -
8 0 7 3.1 zsh -
6 0 6 10.9 bumpleak/osh mut
7 3 3 12.5 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 3 6 8.4 osh-native mut+alloc+free+gc
9 5 5 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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 7 3 1.4 dash -
29 28 0 2.9 bash -
25 21 4 3.1 zsh -
19 19 0 32.9 bumpleak/osh mut
29 28 0 32.9 _bin/cxx-opt+bumproot/osh mut
28 28 0 31.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 25 12 26.3 osh-native mut+alloc
38 25 13 26.7 osh-native mut+alloc+free
28 28 0 7.7 osh-native mut+alloc+free+gc
28 27 0 7.9 osh-native mut+alloc+free+gc+exit
54 41 12 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 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
75 70 4 3.1 bash -
169 108 60 54.1 bumpleak/osh mut
178 107 71 55.6 _bin/cxx-opt+bumproot/osh mut
196 116 80 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 139 72 46.9 osh-native mut+alloc
219 115 103 48.9 osh-native mut+alloc+free
184 121 63 8.7 osh-native mut+alloc+free+gc
179 135 44 8.7 osh-native mut+alloc+free+gc+exit
233 145 88 63.8 _bin/cxx-opt+nopool/osh mut+alloc
209 149 60 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 5 6 3.4 dash -
21 18 3 4.5 bash -
18 11 8 3.4 zsh -
20 18 2 12.3 bumpleak/osh mut
22 15 7 13.2 _bin/cxx-opt+bumproot/osh mut
20 14 6 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 21 2 10.9 osh-native mut+alloc
23 11 12 11.0 osh-native mut+alloc+free
23 14 9 8.8 osh-native mut+alloc+free+gc
23 17 7 8.9 osh-native mut+alloc+free+gc+exit
26 17 9 12.6 _bin/cxx-opt+nopool/osh mut+alloc
26 23 3 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc