Memory Management Overhead

Source code: oils/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 32 4 10 12.0 18.2 471,271 1,282 6 413,158 5 206,579 osh-native
parse.configure-cpython 35 4 11 12.0 18.7 471,271 1,282 6 413,166 5 206,583 osh-nosouffle
parse.configure-coreutils 145 25 67 45.9 51.7 1,638,010 4,764 12 1,056,656 6 787,849 osh-native
parse.configure-coreutils 162 26 74 45.9 52.1 1,638,009 4,764 12 1,056,664 6 787,853 osh-nosouffle
parse.abuild 9 1 2 2.6 8.7 102,799 180 3 86,644 1 43,322 osh-native
parse.abuild 10 1 2 2.6 9.2 102,799 180 3 86,652 1 43,326 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.4 572,123 22,608 12 50,000 0 2,990 osh-native
ex.compute-fib 25 0 2 2.8 8.7 572,123 22,608 12 50,000 0 2,994 osh-nosouffle
ex.bashcomp-parse-help 226 0 4 11.6 9.2 990,269 15,258 21 50,000 0 3,967 osh-native
ex.bashcomp-parse-help 226 0 4 11.6 9.6 990,268 15,258 21 50,000 0 3,973 osh-nosouffle
ex.abuild-print-help 21 1 2 3.0 9.4 117,230 277 3 84,006 1 42,003 osh-native
ex.abuild-print-help 22 1 2 3.0 10.1 117,229 277 3 84,014 1 42,007 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 6 1 1.7 dash -
13 12 1 3.3 bash -
92 50 48 3.4 zsh -
16 13 3 30.4 bumpleak/osh mut
17 10 7 30.2 _bin/cxx-opt+bumproot/osh mut
20 16 4 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 12 14 25.6 osh-native mut+alloc
28 17 11 25.8 osh-native mut+alloc+free
32 29 3 18.2 osh-native mut+alloc+free+gc
34 25 9 18.2 osh-native mut+alloc+free+gc+exit
29 19 10 26.0 osh-nosouffle mut+alloc
30 20 10 26.2 osh-nosouffle mut+alloc+free
35 25 10 18.7 osh-nosouffle mut+alloc+free+gc
36 26 10 18.6 osh-nosouffle mut+alloc+free+gc+exit
39 23 17 32.3 _bin/cxx-opt+nopool/osh mut+alloc
50 36 14 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
23 23 0 1.7 dash -
43 42 1 3.3 bash -
334 194 162 3.4 zsh -
46 40 6 84.9 bumpleak/osh mut
51 43 8 86.1 _bin/cxx-opt+bumproot/osh mut
61 47 14 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
87 57 30 73.7 osh-native mut+alloc
96 65 31 75.4 osh-native mut+alloc+free
145 123 22 51.7 osh-native mut+alloc+free+gc
149 123 26 52.4 osh-native mut+alloc+free+gc+exit
97 65 31 74.3 osh-nosouffle mut+alloc
105 67 38 75.9 osh-nosouffle mut+alloc+free
162 134 28 52.1 osh-nosouffle mut+alloc+free+gc
162 140 20 52.8 osh-nosouffle mut+alloc+free+gc+exit
127 79 48 97.6 _bin/cxx-opt+nopool/osh mut+alloc
207 174 33 72.2 _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 1 1 1.7 dash -
4 4 0 3.1 bash -
6 4 2 3.4 zsh -
6 4 2 13.0 bumpleak/osh mut
6 5 1 13.2 _bin/cxx-opt+bumproot/osh mut
6 4 3 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.7 osh-native mut+alloc
8 5 3 10.7 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 4 5 8.9 osh-native mut+alloc+free+gc+exit
9 7 2 10.9 osh-nosouffle mut+alloc
9 5 4 11.1 osh-nosouffle mut+alloc+free
10 6 5 9.2 osh-nosouffle mut+alloc+free+gc
10 8 2 9.3 osh-nosouffle mut+alloc+free+gc+exit
11 5 6 11.9 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.8 _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
9 9 0 1.6 dash -
33 33 0 3.3 bash -
21 19 2 3.3 zsh -
16 11 5 33.6 bumpleak/osh mut
19 17 2 33.6 _bin/cxx-opt+bumproot/osh mut
22 17 5 33.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 16 13 27.0 osh-native mut+alloc
31 16 15 27.1 osh-native mut+alloc+free
20 18 2 8.4 osh-native mut+alloc+free+gc
20 17 3 8.1 osh-native mut+alloc+free+gc+exit
33 23 11 27.1 osh-nosouffle mut+alloc
36 27 9 27.5 osh-nosouffle mut+alloc+free
25 24 1 8.7 osh-nosouffle mut+alloc+free+gc
26 24 2 8.7 osh-nosouffle mut+alloc+free+gc+exit
46 33 13 36.3 _bin/cxx-opt+nopool/osh mut+alloc
31 26 5 9.7 _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
103 100 3 3.3 bash -
212 160 52 55.9 bumpleak/osh mut
222 169 52 56.1 _bin/cxx-opt+bumproot/osh mut
240 184 56 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
257 183 74 48.9 osh-native mut+alloc
265 195 70 50.7 osh-native mut+alloc+free
226 162 64 9.2 osh-native mut+alloc+free+gc
222 173 49 9.2 osh-native mut+alloc+free+gc+exit
263 198 65 49.2 osh-nosouffle mut+alloc
271 206 65 51.3 osh-nosouffle mut+alloc+free
226 183 43 9.6 osh-nosouffle mut+alloc+free+gc
231 181 50 9.7 osh-nosouffle mut+alloc+free+gc+exit
282 201 81 64.5 _bin/cxx-opt+nopool/osh mut+alloc
252 195 57 10.4 _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
9 4 6 3.9 dash -
16 9 7 4.8 bash -
16 5 11 3.9 zsh -
17 8 10 14.0 bumpleak/osh mut
18 6 13 12.6 _bin/cxx-opt+bumproot/osh mut
18 11 8 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 11 10 11.5 osh-native mut+alloc
21 6 16 11.7 osh-native mut+alloc+free
21 17 5 9.4 osh-native mut+alloc+free+gc
21 11 11 9.7 osh-native mut+alloc+free+gc+exit
21 14 8 12.2 osh-nosouffle mut+alloc
22 7 16 12.3 osh-nosouffle mut+alloc+free
22 11 12 10.1 osh-nosouffle mut+alloc+free+gc
23 14 9 10.1 osh-nosouffle mut+alloc+free+gc+exit
24 12 13 13.1 _bin/cxx-opt+nopool/osh mut+alloc
24 13 11 10.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc