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 26 4 8 12.2 17.8 478,359 1,282 6 428,228 5 214,114 osh-native
parse.configure-coreutils 101 18 40 46.2 51.7 1,660,610 4,764 10 1,189,390 7 594,695 osh-native
parse.abuild 6 1 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.9 651,800 31,810 13 50,000 0 2,829 osh-native
ex.bashcomp-parse-help 111 0 3 12.3 8.5 1,077,990 27,375 23 50,000 0 3,938 osh-native
ex.abuild-print-help 12 0 1 2.9 9.0 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.6 dash -
16 16 0 3.1 bash -
51 35 19 3.4 zsh -
12 8 4 29.9 bumpleak/osh mut
14 7 7 29.0 _bin/cxx-opt+bumproot/osh mut
16 8 8 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 19 0 25.2 osh-native mut+alloc
22 18 4 25.6 osh-native mut+alloc+free
26 22 4 17.8 osh-native mut+alloc+free+gc
26 26 0 18.1 osh-native mut+alloc+free+gc+exit
28 24 4 32.0 _bin/cxx-opt+nopool/osh mut+alloc
34 27 8 22.7 _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
15 15 0 1.7 dash -
54 54 0 3.3 bash -
174 124 62 3.5 zsh -
38 26 11 86.4 bumpleak/osh mut
46 34 11 84.9 _bin/cxx-opt+bumproot/osh mut
52 36 16 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
63 43 20 74.0 osh-native mut+alloc
72 48 24 75.9 osh-native mut+alloc+free
101 96 4 51.7 osh-native mut+alloc+free+gc
108 84 24 52.5 osh-native mut+alloc+free+gc+exit
91 70 21 98.4 _bin/cxx-opt+nopool/osh mut+alloc
144 128 16 68.3 _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.7 dash -
4 4 0 2.9 bash -
4 4 0 3.3 zsh -
4 4 0 10.4 bumpleak/osh mut
4 4 0 11.4 _bin/cxx-opt+bumproot/osh mut
5 5 0 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
5 5 0 10.0 osh-native mut+alloc
6 6 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 0 7 11.4 _bin/cxx-opt+nopool/osh mut+alloc
7 4 4 9.4 _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.7 dash -
20 16 4 3.1 bash -
15 11 4 3.4 zsh -
15 7 7 34.1 bumpleak/osh mut
19 8 11 33.9 _bin/cxx-opt+bumproot/osh mut
22 21 0 34.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 19 7 28.3 osh-native mut+alloc
29 14 14 28.7 osh-native mut+alloc+free
21 21 0 7.9 osh-native mut+alloc+free+gc
21 17 3 7.8 osh-native mut+alloc+free+gc+exit
38 26 11 38.7 _bin/cxx-opt+nopool/osh mut+alloc
28 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
51 50 0 3.1 bash -
100 60 40 59.7 bumpleak/osh mut
109 82 27 59.1 _bin/cxx-opt+bumproot/osh mut
119 87 32 60.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
128 116 12 50.6 osh-native mut+alloc
136 119 16 52.4 osh-native mut+alloc+free
111 83 28 8.5 osh-native mut+alloc+free+gc
110 90 20 8.7 osh-native mut+alloc+free+gc+exit
143 111 32 67.2 _bin/cxx-opt+nopool/osh mut+alloc
130 106 24 10.0 _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
5 5 0 3.7 dash -
11 8 4 4.6 bash -
10 10 0 3.7 zsh -
11 6 5 11.3 bumpleak/osh mut
12 11 1 12.9 _bin/cxx-opt+bumproot/osh mut
11 11 1 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
12 10 3 11.0 osh-native mut+alloc
14 8 6 11.2 osh-native mut+alloc+free
12 12 0 9.0 osh-native mut+alloc+free+gc
13 10 3 9.2 osh-native mut+alloc+free+gc+exit
16 8 8 12.4 _bin/cxx-opt+nopool/osh mut+alloc
15 15 0 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc