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 149 24 62 46.1 51.6 1,653,277 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.7 101,880 180 2 75,098 1 37,549 osh-native
ex.compute-fib 29 0 1 2.6 7.9 584,145 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 181 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.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
6 6 0 1.6 dash -
23 15 8 3.1 bash -
104 63 48 3.4 zsh -
16 8 8 28.9 bumpleak/osh mut
20 16 4 29.4 _bin/cxx-opt+bumproot/osh mut
22 18 4 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.2 osh-native mut+alloc
32 20 12 25.6 osh-native mut+alloc+free
35 27 8 17.8 osh-native mut+alloc+free+gc
38 30 8 18.0 osh-native mut+alloc+free+gc+exit
43 34 9 31.9 _bin/cxx-opt+nopool/osh mut+alloc
50 45 4 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
22 21 0 1.6 dash -
78 78 0 3.1 bash -
375 183 212 3.5 zsh -
49 49 0 84.1 bumpleak/osh mut
64 52 12 85.9 _bin/cxx-opt+bumproot/osh mut
71 66 4 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 65 32 73.3 osh-native mut+alloc
106 61 45 75.3 osh-native mut+alloc+free
149 124 24 51.6 osh-native mut+alloc+free+gc
155 139 16 52.2 osh-native mut+alloc+free+gc+exit
137 98 39 98.4 _bin/cxx-opt+nopool/osh mut+alloc
230 190 40 72.8 _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 0 2 1.3 dash -
6 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 0 6 10.9 bumpleak/osh mut
7 3 3 11.0 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
9 4 4 10.0 osh-native mut+alloc+free
9 3 6 8.7 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 9.3 _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 24 4 2.9 bash -
24 24 0 3.4 zsh -
18 13 4 31.0 bumpleak/osh mut
26 21 4 32.9 _bin/cxx-opt+bumproot/osh mut
27 23 4 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.3 osh-native mut+alloc
39 23 16 26.6 osh-native mut+alloc+free
29 24 4 7.9 osh-native mut+alloc+free+gc
30 30 0 8.0 osh-native mut+alloc+free+gc+exit
53 41 11 36.1 _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
73 73 0 3.0 bash -
168 116 52 55.4 bumpleak/osh mut
178 123 55 54.5 _bin/cxx-opt+bumproot/osh mut
197 104 92 55.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 119 92 47.1 osh-native mut+alloc
218 150 67 48.9 osh-native mut+alloc+free
181 104 76 8.7 osh-native mut+alloc+free+gc
182 105 77 8.7 osh-native mut+alloc+free+gc+exit
233 124 108 62.7 _bin/cxx-opt+nopool/osh mut+alloc
208 143 64 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 8 2 3.4 dash -
26 17 10 4.5 bash -
18 17 1 3.4 zsh -
21 9 12 13.0 bumpleak/osh mut
21 19 1 11.9 _bin/cxx-opt+bumproot/osh mut
22 22 0 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 3 10.7 osh-native mut+alloc
23 20 4 11.0 osh-native mut+alloc+free
22 16 7 8.9 osh-native mut+alloc+free+gc
23 17 6 9.0 osh-native mut+alloc+free+gc+exit
26 10 15 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc