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 5 12 12.0 17.6 476,689 1,282 6 408,626 5 204,313 osh-native
parse.configure-coreutils 183 29 102 41.0 45.4 1,653,277 4,764 12 1,591,678 7 795,839 osh-native
parse.abuild 10 1 2 2.4 7.9 101,880 180 3 87,194 1 43,597 osh-native
ex.compute-fib 23 0 2 2.6 7.6 584,145 31,810 12 50,000 0 2,764 osh-native
ex.bashcomp-parse-help 176 0 4 10.6 8.3 995,222 27,376 21 50,000 0 3,751 osh-native
ex.abuild-print-help 23 1 2 2.8 8.7 116,289 478 3 85,210 1 42,605 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 7 0 1.6 dash -
25 25 0 2.9 bash -
106 48 65 3.3 zsh -
17 12 4 27.7 bumpleak/osh mut
18 11 7 28.3 _bin/cxx-opt+bumproot/osh mut
21 10 10 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 14 14 24.8 osh-native mut+alloc
30 11 18 25.3 osh-native mut+alloc+free
36 32 4 17.6 osh-native mut+alloc+free+gc
36 28 8 17.6 osh-native mut+alloc+free+gc+exit
41 24 16 31.6 _bin/cxx-opt+nopool/osh mut+alloc
53 49 4 21.8 _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.4 dash -
78 74 4 3.1 bash -
383 182 222 3.5 zsh -
49 45 4 83.7 bumpleak/osh mut
53 26 26 86.0 _bin/cxx-opt+bumproot/osh mut
63 47 16 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
89 61 28 73.2 osh-native mut+alloc
98 62 35 75.0 osh-native mut+alloc+free
183 163 20 45.4 osh-native mut+alloc+free+gc
186 165 20 45.3 osh-native mut+alloc+free+gc+exit
131 87 43 98.7 _bin/cxx-opt+nopool/osh mut+alloc
265 233 32 62.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 3 3 2.8 bash -
8 4 4 3.3 zsh -
6 0 6 10.2 bumpleak/osh mut
6 0 6 10.4 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 9.6 osh-native mut+alloc
8 4 4 9.6 osh-native mut+alloc+free
10 5 5 7.9 osh-native mut+alloc+free+gc
10 7 3 8.0 osh-native mut+alloc+free+gc+exit
11 7 4 11.0 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 8.8 _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 7 4 1.4 dash -
29 24 4 2.6 bash -
24 19 5 3.3 zsh -
19 19 0 30.8 bumpleak/osh mut
20 12 8 31.5 _bin/cxx-opt+bumproot/osh mut
23 19 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
32 20 12 26.0 osh-native mut+alloc
34 17 17 26.3 osh-native mut+alloc+free
23 23 0 7.6 osh-native mut+alloc+free+gc
24 20 4 7.6 osh-native mut+alloc+free+gc+exit
50 33 17 35.8 _bin/cxx-opt+nopool/osh mut+alloc
32 25 7 9.0 _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.3 bash -
170 118 51 55.7 bumpleak/osh mut
174 130 43 54.3 _bin/cxx-opt+bumproot/osh mut
191 123 68 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
207 119 87 46.7 osh-native mut+alloc
214 146 67 48.5 osh-native mut+alloc+free
176 112 64 8.3 osh-native mut+alloc+free+gc
176 132 44 8.1 osh-native mut+alloc+free+gc+exit
228 120 108 63.0 _bin/cxx-opt+nopool/osh mut+alloc
218 170 47 9.8 _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 7 3 3.3 dash -
20 14 7 4.5 bash -
19 18 1 3.5 zsh -
20 17 3 11.3 bumpleak/osh mut
19 18 2 11.5 _bin/cxx-opt+bumproot/osh mut
21 13 9 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 9 10.7 osh-native mut+alloc
22 6 17 10.5 osh-native mut+alloc+free
23 20 3 8.7 osh-native mut+alloc+free+gc
23 16 6 8.4 osh-native mut+alloc+free+gc+exit
25 12 13 12.1 _bin/cxx-opt+nopool/osh mut+alloc
25 20 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc