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 33 3 8 12.0 17.8 476,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-coreutils 141 21 55 44.6 49.9 1,653,299 4,764 12 1,030,676 6 769,422 osh-native
parse.abuild 8 1 1 2.6 8.3 101,902 180 2 75,134 1 37,567 osh-native
ex.compute-fib 53 1 17 7.2 10.9 868,977 22,608 29 114,940 2 61,593 osh-native
ex.bashcomp-parse-help 172 0 3 10.3 8.7 995,756 12,911 21 50,000 0 3,913 osh-native
ex.abuild-print-help 20 1 2 2.8 8.9 116,311 270 3 85,370 1 42,685 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 -
22 22 0 2.9 bash -
103 54 55 3.4 zsh -
16 16 0 29.3 bumpleak/osh mut
19 11 7 29.9 _bin/cxx-opt+bumproot/osh mut
22 18 4 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 4 24 25.2 osh-native mut+alloc
29 17 12 25.6 osh-native mut+alloc+free
33 33 0 17.8 osh-native mut+alloc+free+gc
35 23 11 18.0 osh-native mut+alloc+free+gc+exit
42 37 4 32.6 _bin/cxx-opt+nopool/osh mut+alloc
44 35 8 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 18 4 1.6 dash -
74 74 0 3.3 bash -
361 194 187 3.5 zsh -
48 43 4 85.3 bumpleak/osh mut
57 49 8 85.5 _bin/cxx-opt+bumproot/osh mut
67 59 8 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
92 68 24 73.4 osh-native mut+alloc
103 75 28 75.1 osh-native mut+alloc+free
141 124 16 49.9 osh-native mut+alloc+free+gc
144 120 24 50.7 osh-native mut+alloc+free+gc+exit
132 80 52 99.5 _bin/cxx-opt+nopool/osh mut+alloc
197 162 35 66.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.4 dash -
5 5 0 3.0 bash -
7 0 7 3.4 zsh -
6 0 6 10.5 bumpleak/osh mut
7 7 0 12.0 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
8 8 0 10.2 osh-native mut+alloc+free
8 0 8 8.3 osh-native mut+alloc+free+gc
8 0 8 8.8 osh-native mut+alloc+free+gc+exit
11 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.2 _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.6 dash -
27 27 0 2.8 bash -
22 19 4 3.3 zsh -
25 21 4 47.2 bumpleak/osh mut
31 23 8 46.9 _bin/cxx-opt+bumproot/osh mut
36 36 0 48.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
51 34 17 40.5 osh-native mut+alloc
53 28 24 41.0 osh-native mut+alloc+free
53 45 8 10.9 osh-native mut+alloc+free+gc
51 39 12 10.9 osh-native mut+alloc+free+gc+exit
73 46 27 54.1 _bin/cxx-opt+nopool/osh mut+alloc
67 62 4 12.9 _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
69 61 8 3.1 bash -
157 98 59 55.1 bumpleak/osh mut
173 122 51 55.5 _bin/cxx-opt+bumproot/osh mut
189 140 48 56.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
201 120 80 47.0 osh-native mut+alloc
204 136 68 48.8 osh-native mut+alloc+free
172 116 56 8.7 osh-native mut+alloc+free+gc
171 119 52 8.7 osh-native mut+alloc+free+gc+exit
222 135 87 64.3 _bin/cxx-opt+nopool/osh mut+alloc
199 127 71 9.9 _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
9 9 0 3.4 dash -
18 17 1 4.3 bash -
17 9 8 3.4 zsh -
18 11 7 13.1 bumpleak/osh mut
19 13 6 13.9 _bin/cxx-opt+bumproot/osh mut
20 18 2 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 11 9 11.0 osh-native mut+alloc
21 11 10 10.9 osh-native mut+alloc+free
20 12 8 8.9 osh-native mut+alloc+free+gc
21 19 2 9.0 osh-native mut+alloc+free+gc+exit
22 20 3 12.5 _bin/cxx-opt+nopool/osh mut+alloc
24 23 1 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc