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 10 12.0 17.8 476,689 1,282 6 408,756 5 204,378 osh-native
parse.configure-coreutils 167 24 78 46.1 51.4 1,653,277 4,764 12 1,069,122 6 798,642 osh-native
parse.abuild 9 1 1 2.6 8.4 101,880 180 2 75,098 1 37,549 osh-native
ex.compute-fib 28 0 2 2.6 8.0 584,145 31,810 12 50,000 0 2,826 osh-native
ex.bashcomp-parse-help 180 0 4 10.6 8.8 995,222 27,376 21 50,000 0 3,821 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 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 23 0 3.0 bash -
104 52 59 3.4 zsh -
16 8 8 28.2 bumpleak/osh mut
20 15 4 29.3 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 13 17 25.2 osh-native mut+alloc
35 23 12 25.4 osh-native mut+alloc+free
36 22 14 17.8 osh-native mut+alloc+free+gc
37 33 4 18.1 osh-native mut+alloc+free+gc+exit
42 25 17 31.7 _bin/cxx-opt+nopool/osh mut+alloc
47 35 12 22.3 _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 18 4 1.6 dash -
77 77 0 3.1 bash -
378 211 187 3.5 zsh -
49 37 12 84.9 bumpleak/osh mut
60 51 8 85.5 _bin/cxx-opt+bumproot/osh mut
70 66 4 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 57 40 73.3 osh-native mut+alloc
106 78 27 75.3 osh-native mut+alloc+free
167 143 24 51.4 osh-native mut+alloc+free+gc
166 145 20 52.3 osh-native mut+alloc+free+gc+exit
138 93 45 98.5 _bin/cxx-opt+nopool/osh mut+alloc
214 182 32 72.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.4 dash -
6 6 0 2.9 bash -
8 4 4 3.1 zsh -
6 3 3 11.2 bumpleak/osh mut
6 3 3 12.3 _bin/cxx-opt+bumproot/osh mut
7 3 3 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
8 8 0 10.0 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 0 9 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 11 0 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 7 3 1.4 dash -
29 29 0 2.9 bash -
24 16 8 3.3 zsh -
19 18 0 32.9 bumpleak/osh mut
25 18 7 32.6 _bin/cxx-opt+bumproot/osh mut
29 24 4 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.2 osh-native mut+alloc
38 27 11 26.7 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 35 19 36.3 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _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 68 4 3.1 bash -
166 127 40 54.5 bumpleak/osh mut
180 140 40 54.5 _bin/cxx-opt+bumproot/osh mut
192 124 68 56.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 129 81 47.2 osh-native mut+alloc
221 161 60 48.9 osh-native mut+alloc+free
180 104 76 8.8 osh-native mut+alloc+free+gc
183 131 52 8.7 osh-native mut+alloc+free+gc+exit
232 156 76 62.9 _bin/cxx-opt+nopool/osh mut+alloc
206 158 49 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
9 6 4 3.5 dash -
19 17 3 4.3 bash -
18 14 5 3.5 zsh -
21 13 8 11.9 bumpleak/osh mut
22 14 9 12.6 _bin/cxx-opt+bumproot/osh mut
22 13 9 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 20 3 10.7 osh-native mut+alloc
24 15 9 10.9 osh-native mut+alloc+free
23 23 1 8.8 osh-native mut+alloc+free+gc
25 15 10 8.9 osh-native mut+alloc+free+gc+exit
26 17 9 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 26 0 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc