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 11 12.0 18.0 476,679 1,282 6 408,748 5 204,374 osh-native
parse.configure-coreutils 154 26 67 46.1 51.3 1,653,267 4,764 12 1,069,114 6 798,638 osh-native
parse.abuild 9 1 1 2.6 8.4 101,870 180 2 75,090 1 37,545 osh-native
ex.compute-fib 28 0 2 2.6 7.9 584,135 31,810 12 50,000 0 2,822 osh-native
ex.bashcomp-parse-help 182 0 4 10.6 8.7 995,212 27,376 21 50,000 0 3,817 osh-native
ex.abuild-print-help 23 1 2 2.8 8.9 116,279 478 3 85,326 1 42,663 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 19 4 2.9 bash -
104 66 43 3.4 zsh -
17 12 4 28.0 bumpleak/osh mut
19 19 0 29.1 _bin/cxx-opt+bumproot/osh mut
22 22 0 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 15 15 25.0 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
37 36 0 18.0 osh-native mut+alloc+free+gc
38 34 4 18.0 osh-native mut+alloc+free+gc+exit
43 19 23 32.1 _bin/cxx-opt+nopool/osh mut+alloc
50 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
21 21 0 1.6 dash -
78 77 0 3.1 bash -
376 197 199 3.5 zsh -
49 37 12 85.6 bumpleak/osh mut
61 57 4 85.3 _bin/cxx-opt+bumproot/osh mut
71 63 8 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 70 27 73.6 osh-native mut+alloc
106 82 23 75.3 osh-native mut+alloc+free
154 137 16 51.3 osh-native mut+alloc+free+gc
159 135 24 52.2 osh-native mut+alloc+free+gc+exit
138 110 28 97.7 _bin/cxx-opt+nopool/osh mut+alloc
211 186 24 74.4 _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 6 0 2.9 bash -
8 4 4 3.3 zsh -
6 6 0 10.6 bumpleak/osh mut
6 6 0 12.2 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 5 5 8.4 osh-native mut+alloc+free+gc
9 5 5 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 4 8 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
11 11 0 1.4 dash -
28 24 4 2.8 bash -
24 24 0 3.3 zsh -
19 15 4 32.3 bumpleak/osh mut
26 17 9 32.7 _bin/cxx-opt+bumproot/osh mut
29 24 4 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 18 18 26.5 osh-native mut+alloc
38 23 15 26.7 osh-native mut+alloc+free
28 21 7 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 41 12 35.8 _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
72 72 0 3.1 bash -
166 131 36 55.2 bumpleak/osh mut
180 108 72 55.4 _bin/cxx-opt+bumproot/osh mut
193 142 51 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 115 95 47.1 osh-native mut+alloc
218 138 79 48.9 osh-native mut+alloc+free
182 118 63 8.7 osh-native mut+alloc+free+gc
189 137 51 8.7 osh-native mut+alloc+free+gc+exit
231 119 111 63.3 _bin/cxx-opt+nopool/osh mut+alloc
205 157 48 10.3 _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 1 3.4 dash -
20 12 9 4.5 bash -
18 8 10 3.5 zsh -
19 11 8 11.5 bumpleak/osh mut
20 18 2 11.8 _bin/cxx-opt+bumproot/osh mut
21 14 8 12.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 6 10.7 osh-native mut+alloc
23 16 7 10.9 osh-native mut+alloc+free
23 19 4 8.9 osh-native mut+alloc+free+gc
24 21 3 8.9 osh-native mut+alloc+free+gc+exit
25 20 5 12.4 _bin/cxx-opt+nopool/osh mut+alloc
26 11 15 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc