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,689 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 172 28 83 46.1 51.7 1,653,277 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 10 1 2 2.6 8.5 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 4 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.9 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
7 6 0 1.6 dash -
23 23 0 3.1 bash -
106 68 45 3.4 zsh -
17 16 0 28.8 bumpleak/osh mut
20 20 0 28.4 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.2 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
37 28 8 18.0 osh-native mut+alloc+free+gc
38 30 7 18.0 osh-native mut+alloc+free+gc+exit
43 23 20 31.9 _bin/cxx-opt+nopool/osh mut+alloc
52 41 11 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
21 21 0 1.6 dash -
77 73 4 3.3 bash -
382 216 186 3.7 zsh -
50 31 19 85.6 bumpleak/osh mut
60 56 4 85.2 _bin/cxx-opt+bumproot/osh mut
73 60 12 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 71 28 73.3 osh-native mut+alloc
106 85 20 75.2 osh-native mut+alloc+free
172 156 16 51.7 osh-native mut+alloc+free+gc
177 153 24 52.3 osh-native mut+alloc+free+gc+exit
141 108 32 99.3 _bin/cxx-opt+nopool/osh mut+alloc
249 233 16 73.1 _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 6 0 2.9 bash -
8 8 0 3.1 zsh -
6 0 6 12.0 bumpleak/osh mut
8 3 5 11.8 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 6 3 10.1 osh-native mut+alloc
9 9 0 10.0 osh-native mut+alloc+free
10 9 0 8.5 osh-native mut+alloc+free+gc
10 10 0 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 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.4 dash -
29 29 0 2.8 bash -
24 12 12 3.4 zsh -
19 19 0 31.2 bumpleak/osh mut
26 18 7 32.2 _bin/cxx-opt+bumproot/osh mut
29 24 4 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 22 15 26.3 osh-native mut+alloc
38 30 9 26.7 osh-native mut+alloc+free
28 24 4 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
55 46 8 35.8 _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 72 0 3.0 bash -
166 113 53 54.4 bumpleak/osh mut
178 89 89 54.3 _bin/cxx-opt+bumproot/osh mut
197 114 82 55.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 129 84 46.9 osh-native mut+alloc
217 153 63 48.9 osh-native mut+alloc+free
182 137 44 8.7 osh-native mut+alloc+free+gc
180 132 48 8.7 osh-native mut+alloc+free+gc+exit
236 152 84 62.7 _bin/cxx-opt+nopool/osh mut+alloc
212 148 64 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 8 2 3.5 dash -
20 18 2 4.5 bash -
18 10 9 3.5 zsh -
20 11 9 12.0 bumpleak/osh mut
20 11 9 13.6 _bin/cxx-opt+bumproot/osh mut
21 9 13 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 6 16 11.0 osh-native mut+alloc
23 18 5 11.1 osh-native mut+alloc+free
22 17 6 8.9 osh-native mut+alloc+free+gc
24 14 10 8.7 osh-native mut+alloc+free+gc+exit
25 16 10 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 21 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc