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 29 4 10 12.0 18.2 471,252 1,282 6 413,132 5 206,566 osh-native
parse.configure-cpython 32 4 10 12.0 18.7 471,252 1,282 6 413,140 5 206,570 osh-nosouffle
parse.configure-coreutils 122 19 56 45.9 51.9 1,637,991 4,764 12 1,056,630 6 787,836 osh-native
parse.configure-coreutils 131 19 56 45.9 52.1 1,637,990 4,764 12 1,056,638 6 787,840 osh-nosouffle
parse.abuild 8 1 2 2.6 8.7 102,780 180 3 86,618 1 43,309 osh-native
parse.abuild 9 1 2 2.6 9.2 102,780 180 3 86,626 1 43,313 osh-nosouffle
ex.compute-fib 20 0 2 2.8 8.1 572,104 22,608 12 50,000 0 2,977 osh-native
ex.compute-fib 24 0 2 2.8 8.8 572,104 22,608 12 50,000 0 2,981 osh-nosouffle
ex.bashcomp-parse-help 171 0 5 11.6 9.2 990,250 15,258 21 50,000 0 3,957 osh-native
ex.bashcomp-parse-help 176 0 5 11.6 9.7 990,249 15,258 21 50,000 0 3,966 osh-nosouffle
ex.abuild-print-help 17 1 2 3.0 9.4 117,208 277 3 83,980 1 41,990 osh-native
ex.abuild-print-help 18 1 2 3.0 10.1 117,207 277 3 83,988 1 41,994 osh-nosouffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
5 5 0 1.7 dash -
11 11 0 3.3 bash -
66 42 28 3.7 zsh -
16 9 7 29.3 bumpleak/osh mut
17 12 5 29.5 _bin/cxx-opt+bumproot/osh mut
19 13 6 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 14 7 25.7 osh-native mut+alloc
24 15 9 25.8 osh-native mut+alloc+free
29 25 4 18.2 osh-native mut+alloc+free+gc
30 25 5 18.1 osh-native mut+alloc+free+gc+exit
23 15 9 26.2 osh-nosouffle mut+alloc
27 17 10 26.3 osh-nosouffle mut+alloc+free
32 26 6 18.7 osh-nosouffle mut+alloc+free+gc
33 27 6 18.7 osh-nosouffle mut+alloc+free+gc+exit
32 21 11 32.3 _bin/cxx-opt+nopool/osh mut+alloc
41 30 11 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
18 18 0 1.7 dash -
38 38 0 3.4 bash -
233 148 102 3.7 zsh -
48 31 16 86.3 bumpleak/osh mut
53 37 16 85.5 _bin/cxx-opt+bumproot/osh mut
61 43 18 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
71 48 23 73.7 osh-native mut+alloc
82 56 27 75.6 osh-native mut+alloc+free
122 99 22 51.9 osh-native mut+alloc+free+gc
126 105 21 52.3 osh-native mut+alloc+free+gc+exit
79 59 20 74.5 osh-nosouffle mut+alloc
92 68 24 76.0 osh-nosouffle mut+alloc+free
131 113 18 52.1 osh-nosouffle mut+alloc+free+gc
137 121 16 52.9 osh-nosouffle mut+alloc+free+gc+exit
110 70 39 97.6 _bin/cxx-opt+nopool/osh mut+alloc
174 142 32 74.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
1 1 0 1.6 dash -
3 3 0 3.1 bash -
5 3 1 3.3 zsh -
6 3 2 13.3 bumpleak/osh mut
6 2 4 11.9 _bin/cxx-opt+bumproot/osh mut
6 3 3 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
6 5 1 10.6 osh-native mut+alloc
7 4 3 10.9 osh-native mut+alloc+free
8 6 2 8.7 osh-native mut+alloc+free+gc
8 6 2 8.8 osh-native mut+alloc+free+gc+exit
7 7 0 11.0 osh-nosouffle mut+alloc
8 6 2 11.1 osh-nosouffle mut+alloc+free
9 7 2 9.2 osh-nosouffle mut+alloc+free+gc
9 9 0 9.4 osh-nosouffle mut+alloc+free+gc+exit
9 6 3 11.9 _bin/cxx-opt+nopool/osh mut+alloc
10 9 1 9.6 _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 -
28 27 1 3.3 bash -
16 13 3 3.4 zsh -
18 14 4 32.7 bumpleak/osh mut
19 16 3 32.2 _bin/cxx-opt+bumproot/osh mut
22 17 5 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
25 19 6 27.0 osh-native mut+alloc
29 19 9 27.0 osh-native mut+alloc+free
20 17 3 8.1 osh-native mut+alloc+free+gc
20 19 1 8.3 osh-native mut+alloc+free+gc+exit
30 21 9 27.4 osh-nosouffle mut+alloc
33 24 9 27.7 osh-nosouffle mut+alloc+free
24 23 1 8.8 osh-nosouffle mut+alloc+free+gc
24 22 2 8.8 osh-nosouffle mut+alloc+free+gc+exit
39 25 14 36.9 _bin/cxx-opt+nopool/osh mut+alloc
28 22 6 10.0 _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
97 97 0 3.5 bash -
170 146 24 57.3 bumpleak/osh mut
178 141 37 57.9 _bin/cxx-opt+bumproot/osh mut
186 157 29 58.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
192 157 35 48.9 osh-native mut+alloc
200 160 40 50.6 osh-native mut+alloc+free
171 156 15 9.2 osh-native mut+alloc+free+gc
170 146 24 9.2 osh-native mut+alloc+free+gc+exit
198 150 48 49.4 osh-nosouffle mut+alloc
205 161 44 51.5 osh-nosouffle mut+alloc+free
176 153 23 9.7 osh-nosouffle mut+alloc+free+gc
175 153 22 9.7 osh-nosouffle mut+alloc+free+gc+exit
218 170 48 65.4 _bin/cxx-opt+nopool/osh mut+alloc
201 176 25 10.5 _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
7 4 3 3.9 dash -
13 7 6 5.0 bash -
11 3 8 4.1 zsh -
15 9 7 13.3 bumpleak/osh mut
15 8 7 13.0 _bin/cxx-opt+bumproot/osh mut
16 8 9 13.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
16 7 9 11.7 osh-native mut+alloc
17 9 8 11.8 osh-native mut+alloc+free
17 10 8 9.4 osh-native mut+alloc+free+gc
17 13 4 9.6 osh-native mut+alloc+free+gc+exit
16 10 7 12.1 osh-nosouffle mut+alloc
18 9 9 12.2 osh-nosouffle mut+alloc+free
18 11 8 10.1 osh-nosouffle mut+alloc+free+gc
18 11 8 10.1 osh-nosouffle mut+alloc+free+gc+exit
18 8 10 13.1 _bin/cxx-opt+nopool/osh mut+alloc
19 12 8 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc