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 93 12 34 46.2 51.7 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 3 12.3 8.7 1,077,990 27,375 23 50,000 0 3,938 osh-native
ex.abuild-print-help 13 0 2 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.7 dash -
16 16 0 3.1 bash -
55 37 22 3.5 zsh -
12 8 4 28.4 bumpleak/osh mut
13 13 0 29.1 _bin/cxx-opt+bumproot/osh mut
15 11 4 29.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 15 4 25.1 osh-native mut+alloc
20 20 0 25.5 osh-native mut+alloc+free
25 16 8 17.9 osh-native mut+alloc+free+gc
26 22 4 18.0 osh-native mut+alloc+free+gc+exit
28 20 8 33.3 _bin/cxx-opt+nopool/osh mut+alloc
32 27 5 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
23 23 0 1.7 dash -
54 54 0 3.4 bash -
171 97 84 3.5 zsh -
38 23 15 84.6 bumpleak/osh mut
45 37 8 85.6 _bin/cxx-opt+bumproot/osh mut
50 46 4 87.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
63 35 27 74.0 osh-native mut+alloc
71 58 12 76.0 osh-native mut+alloc+free
93 77 16 51.7 osh-native mut+alloc+free+gc
97 81 16 52.5 osh-native mut+alloc+free+gc+exit
90 74 16 98.7 _bin/cxx-opt+nopool/osh mut+alloc
121 113 8 68.0 _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 0 4 3.2 bash -
4 4 0 3.5 zsh -
4 4 0 12.3 bumpleak/osh mut
4 0 4 10.9 _bin/cxx-opt+bumproot/osh mut
5 5 0 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
5 0 5 10.0 osh-native mut+alloc
6 3 3 10.1 osh-native mut+alloc+free
6 6 0 8.6 osh-native mut+alloc+free+gc
6 6 0 8.5 osh-native mut+alloc+free+gc+exit
7 7 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
8 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 4 4 1.5 dash -
20 20 0 3.1 bash -
14 7 7 3.4 zsh -
15 11 4 34.3 bumpleak/osh mut
19 11 8 34.3 _bin/cxx-opt+bumproot/osh mut
22 22 0 35.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 21 4 28.2 osh-native mut+alloc
28 12 16 28.7 osh-native mut+alloc+free
21 16 4 7.8 osh-native mut+alloc+free+gc
21 21 0 7.9 osh-native mut+alloc+free+gc+exit
38 34 4 38.9 _bin/cxx-opt+nopool/osh mut+alloc
31 31 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.3 bash -
101 56 44 58.9 bumpleak/osh mut
108 84 24 60.4 _bin/cxx-opt+bumproot/osh mut
120 76 44 59.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
129 89 39 50.6 osh-native mut+alloc
135 91 44 52.5 osh-native mut+alloc+free
112 92 20 8.7 osh-native mut+alloc+free+gc
113 96 16 8.7 osh-native mut+alloc+free+gc+exit
142 99 43 67.7 _bin/cxx-opt+nopool/osh mut+alloc
137 117 20 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
5 5 0 3.5 dash -
12 11 1 4.6 bash -
9 3 6 3.7 zsh -
10 9 1 11.5 bumpleak/osh mut
11 6 5 13.8 _bin/cxx-opt+bumproot/osh mut
11 10 1 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
12 12 1 11.0 osh-native mut+alloc
13 7 6 11.1 osh-native mut+alloc+free
13 9 4 9.0 osh-native mut+alloc+free+gc
14 14 0 9.1 osh-native mut+alloc+free+gc+exit
15 12 3 12.4 _bin/cxx-opt+nopool/osh mut+alloc
15 8 8 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc