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 25 3 8 12.2 17.9 478,359 1,282 6 428,228 5 214,114 osh-native
parse.configure-coreutils 92 15 34 46.2 51.5 1,660,610 4,764 10 1,189,390 7 594,695 osh-native
parse.abuild 6 0 1 2.7 8.6 102,532 180 2 75,968 1 37,984 osh-native
ex.compute-fib 21 0 1 3.0 7.8 651,800 31,810 13 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 112 0 2 12.3 8.6 1,077,990 27,375 23 50,000 0 3,938 osh-native
ex.abuild-print-help 14 0 2 2.9 9.1 117,524 477 3 85,988 1 42,994 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
4 4 0 1.7 dash -
16 16 0 3.2 bash -
62 42 23 3.5 zsh -
11 11 0 28.4 bumpleak/osh mut
14 10 3 28.5 _bin/cxx-opt+bumproot/osh mut
16 16 0 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 8 12 25.1 osh-native mut+alloc
21 17 3 25.5 osh-native mut+alloc+free
25 21 4 17.9 osh-native mut+alloc+free+gc
25 25 0 18.1 osh-native mut+alloc+free+gc+exit
28 16 12 33.3 _bin/cxx-opt+nopool/osh mut+alloc
35 31 4 22.6 _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
18 18 0 1.7 dash -
54 50 4 3.3 bash -
214 145 82 3.6 zsh -
35 35 0 85.9 bumpleak/osh mut
44 36 8 86.7 _bin/cxx-opt+bumproot/osh mut
50 34 15 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
63 51 12 74.0 osh-native mut+alloc
70 49 21 76.0 osh-native mut+alloc+free
92 80 12 51.5 osh-native mut+alloc+free+gc
97 89 8 52.5 osh-native mut+alloc+free+gc+exit
89 73 16 99.6 _bin/cxx-opt+nopool/osh mut+alloc
137 121 16 69.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
1 1 0 1.6 dash -
4 4 0 3.1 bash -
4 4 0 3.4 zsh -
4 0 4 11.4 bumpleak/osh mut
4 4 0 11.4 _bin/cxx-opt+bumproot/osh mut
5 5 0 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
5 5 0 9.9 osh-native mut+alloc
5 5 0 10.1 osh-native mut+alloc+free
6 6 0 8.6 osh-native mut+alloc+free+gc
6 6 0 8.6 osh-native mut+alloc+free+gc+exit
7 7 0 11.3 _bin/cxx-opt+nopool/osh mut+alloc
8 8 0 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
7 7 0 1.6 dash -
20 16 4 3.0 bash -
14 14 0 3.4 zsh -
14 11 4 33.5 bumpleak/osh mut
19 14 5 33.9 _bin/cxx-opt+bumproot/osh mut
22 15 7 34.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 17 9 28.2 osh-native mut+alloc
28 24 4 28.7 osh-native mut+alloc+free
21 21 0 7.8 osh-native mut+alloc+free+gc
21 17 3 7.8 osh-native mut+alloc+free+gc+exit
38 29 8 38.8 _bin/cxx-opt+nopool/osh mut+alloc
29 28 0 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
52 51 0 3.3 bash -
100 72 28 58.0 bumpleak/osh mut
110 98 12 59.0 _bin/cxx-opt+bumproot/osh mut
119 83 36 60.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
130 98 32 50.6 osh-native mut+alloc
137 109 28 52.6 osh-native mut+alloc+free
112 100 12 8.6 osh-native mut+alloc+free+gc
112 104 8 8.6 osh-native mut+alloc+free+gc+exit
142 118 24 67.9 _bin/cxx-opt+nopool/osh mut+alloc
132 104 28 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
6 6 0 3.7 dash -
13 9 4 4.6 bash -
10 10 1 3.6 zsh -
12 9 4 12.9 bumpleak/osh mut
13 9 5 12.7 _bin/cxx-opt+bumproot/osh mut
12 4 8 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
13 13 0 11.0 osh-native mut+alloc
14 13 1 11.2 osh-native mut+alloc+free
14 10 4 9.1 osh-native mut+alloc+free+gc
14 14 1 9.2 osh-native mut+alloc+free+gc+exit
15 14 1 12.4 _bin/cxx-opt+nopool/osh mut+alloc
15 15 1 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc