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 24 3 7 12.2 17.9 478,359 1,282 6 428,228 5 214,114 osh-native
parse.configure-coreutils 85 11 27 46.2 51.7 1,660,610 4,764 10 1,189,390 7 594,695 osh-native
parse.abuild 7 1 2 2.7 8.5 102,532 180 2 75,968 1 37,984 osh-native
ex.compute-fib 20 0 1 3.0 7.8 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.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 12 4 3.2 bash -
50 35 19 3.5 zsh -
12 8 4 29.8 bumpleak/osh mut
13 6 6 29.5 _bin/cxx-opt+bumproot/osh mut
15 15 0 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
18 11 7 25.1 osh-native mut+alloc
20 20 0 25.6 osh-native mut+alloc+free
24 24 0 17.9 osh-native mut+alloc+free+gc
24 24 0 18.1 osh-native mut+alloc+free+gc+exit
28 24 4 32.1 _bin/cxx-opt+nopool/osh mut+alloc
33 28 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
24 24 0 1.7 dash -
53 53 0 3.4 bash -
168 96 84 3.6 zsh -
36 28 8 85.9 bumpleak/osh mut
43 31 12 86.2 _bin/cxx-opt+bumproot/osh mut
50 35 15 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
61 53 8 73.9 osh-native mut+alloc
69 64 4 75.9 osh-native mut+alloc+free
85 73 12 51.7 osh-native mut+alloc+free+gc
90 74 16 52.5 osh-native mut+alloc+free+gc+exit
89 73 16 100.1 _bin/cxx-opt+nopool/osh mut+alloc
121 113 8 67.9 _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 -
3 3 0 3.1 bash -
4 0 4 3.4 zsh -
4 4 0 11.1 bumpleak/osh mut
4 4 0 12.6 _bin/cxx-opt+bumproot/osh mut
4 4 0 12.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
7 7 0 8.5 osh-native mut+alloc+free+gc
6 6 0 8.5 osh-native mut+alloc+free+gc+exit
7 3 3 11.3 _bin/cxx-opt+nopool/osh mut+alloc
7 7 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.7 dash -
23 22 0 3.1 bash -
14 14 0 3.3 zsh -
14 7 7 35.2 bumpleak/osh mut
18 18 0 34.2 _bin/cxx-opt+bumproot/osh mut
21 16 4 35.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
24 16 8 28.1 osh-native mut+alloc
26 26 0 28.6 osh-native mut+alloc+free
20 20 0 7.8 osh-native mut+alloc+free+gc
20 20 0 7.8 osh-native mut+alloc+free+gc+exit
36 12 24 38.9 _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
50 50 0 3.3 bash -
100 65 35 58.3 bumpleak/osh mut
108 84 24 60.3 _bin/cxx-opt+bumproot/osh mut
119 107 12 60.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
127 99 28 50.5 osh-native mut+alloc
133 117 16 52.5 osh-native mut+alloc+free
111 90 20 8.5 osh-native mut+alloc+free+gc
109 93 16 8.7 osh-native mut+alloc+free+gc+exit
141 93 48 68.6 _bin/cxx-opt+nopool/osh mut+alloc
130 114 16 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.6 dash -
11 11 0 4.5 bash -
9 3 6 3.6 zsh -
10 7 3 13.3 bumpleak/osh mut
11 10 1 12.8 _bin/cxx-opt+bumproot/osh mut
10 10 1 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
11 9 3 11.0 osh-native mut+alloc
12 8 4 11.1 osh-native mut+alloc+free
12 12 0 9.1 osh-native mut+alloc+free+gc
15 15 0 9.1 osh-native mut+alloc+free+gc+exit
13 9 5 12.4 _bin/cxx-opt+nopool/osh mut+alloc
14 14 0 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc