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 4 10 12.0 17.8 476,711 1,282 6 408,792 5 204,396 osh-native
parse.configure-coreutils 154 25 67 44.6 49.9 1,653,299 4,764 12 1,030,676 6 769,422 osh-native
parse.abuild 9 1 1 2.6 8.4 101,902 180 2 75,134 1 37,567 osh-native
ex.compute-fib 919 0 2 2.4 8.0 934,991 22,608 19 50,000 0 2,845 osh-native
ex.bashcomp-parse-help 182 0 4 10.3 8.8 995,644 12,911 21 50,000 0 3,835 osh-native
ex.abuild-print-help 23 1 2 2.8 9.0 116,311 270 3 85,370 1 42,685 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 6 0 1.4 dash -
23 19 4 3.0 bash -
105 51 61 3.4 zsh -
17 12 4 29.7 bumpleak/osh mut
19 12 8 28.3 _bin/cxx-opt+bumproot/osh mut
23 11 11 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 7 25.2 osh-native mut+alloc
32 27 4 25.6 osh-native mut+alloc+free
36 35 0 17.8 osh-native mut+alloc+free+gc
38 33 4 18.0 osh-native mut+alloc+free+gc+exit
43 30 13 32.2 _bin/cxx-opt+nopool/osh mut+alloc
48 43 4 22.0 _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.6 dash -
78 78 0 3.3 bash -
374 220 175 3.5 zsh -
49 40 8 83.9 bumpleak/osh mut
59 55 4 85.5 _bin/cxx-opt+bumproot/osh mut
71 33 37 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 66 31 73.4 osh-native mut+alloc
107 67 40 75.3 osh-native mut+alloc+free
154 121 32 49.9 osh-native mut+alloc+free+gc
158 134 24 50.6 osh-native mut+alloc+free+gc+exit
139 99 40 97.9 _bin/cxx-opt+nopool/osh mut+alloc
200 144 56 67.8 _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 0 2 1.4 dash -
6 3 3 3.0 bash -
8 0 7 3.3 zsh -
5 5 0 11.8 bumpleak/osh mut
7 7 0 11.1 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
8 8 0 10.0 osh-native mut+alloc+free
9 4 4 8.4 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 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
10 7 3 1.4 dash -
29 29 0 2.9 bash -
24 16 8 3.3 zsh -
971 970 0 47.2 bumpleak/osh mut
974 974 0 47.6 _bin/cxx-opt+bumproot/osh mut
903 894 8 47.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
938 918 20 38.4 osh-native mut+alloc
943 935 8 38.5 osh-native mut+alloc+free
919 919 0 8.0 osh-native mut+alloc+free+gc
919 919 0 8.0 osh-native mut+alloc+free+gc+exit
1,023 999 24 55.9 _bin/cxx-opt+nopool/osh mut+alloc
951 942 8 9.8 _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.0 bash -
170 103 67 55.5 bumpleak/osh mut
183 123 59 54.4 _bin/cxx-opt+bumproot/osh mut
195 127 68 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 132 80 47.0 osh-native mut+alloc
217 138 79 48.8 osh-native mut+alloc+free
182 126 55 8.8 osh-native mut+alloc+free+gc
183 147 36 8.8 osh-native mut+alloc+free+gc+exit
235 115 119 63.6 _bin/cxx-opt+nopool/osh mut+alloc
209 161 48 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
10 9 1 3.4 dash -
19 11 9 4.3 bash -
17 11 7 3.5 zsh -
18 11 8 13.2 bumpleak/osh mut
19 11 9 12.4 _bin/cxx-opt+bumproot/osh mut
22 11 11 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 20 2 10.7 osh-native mut+alloc
22 15 7 11.0 osh-native mut+alloc+free
23 15 8 9.0 osh-native mut+alloc+free+gc
23 14 9 8.9 osh-native mut+alloc+free+gc+exit
25 16 9 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 10 15 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc