Source code: oil/benchmarks/gc.sh
| 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 | 37 | 4 | 10 | 12.0 | 18.1 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
| parse.configure-coreutils | 166 | 26 | 78 | 46.1 | 51.5 | 1,653,277 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.5 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
| ex.compute-fib | 29 | 0 | 2 | 2.6 | 7.7 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
| ex.bashcomp-parse-help | 181 | 0 | 3 | 10.6 | 8.8 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
| ex.abuild-print-help | 22 | 1 | 2 | 2.8 | 8.9 | 116,289 | 478 | 3 | 85,334 | 1 | 42,667 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 6 | 3 | 3 | 1.6 | dash | - |
| 24 | 19 | 4 | 3.1 | bash | - |
| 102 | 55 | 53 | 3.3 | zsh | - |
| 16 | 12 | 4 | 28.9 | bumpleak/osh | mut |
| 19 | 19 | 0 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 22 | 0 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 29 | 25 | 4 | 25.0 | osh-native | mut+alloc |
| 32 | 28 | 4 | 25.7 | osh-native | mut+alloc+free |
| 37 | 28 | 8 | 18.1 | osh-native | mut+alloc+free+gc |
| 37 | 29 | 8 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 44 | 28 | 16 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 48 | 36 | 12 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
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 | 21 | 0 | 1.6 | dash | - |
| 78 | 78 | 0 | 3.1 | bash | - |
| 373 | 230 | 165 | 3.7 | zsh | - |
| 49 | 30 | 19 | 84.5 | bumpleak/osh | mut |
| 60 | 49 | 11 | 84.6 | _bin/cxx-opt+bumproot/osh | mut |
| 70 | 58 | 12 | 86.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 97 | 77 | 20 | 73.4 | osh-native | mut+alloc |
| 107 | 58 | 49 | 75.4 | osh-native | mut+alloc+free |
| 166 | 146 | 20 | 51.5 | osh-native | mut+alloc+free+gc |
| 160 | 147 | 12 | 52.1 | osh-native | mut+alloc+free+gc+exit |
| 139 | 103 | 36 | 99.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 215 | 171 | 44 | 72.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Parsing abuild from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 2 | 2 | 0 | 1.4 | dash | - |
| 6 | 6 | 0 | 3.0 | bash | - |
| 8 | 4 | 4 | 3.4 | zsh | - |
| 6 | 6 | 0 | 10.7 | bumpleak/osh | mut |
| 7 | 3 | 3 | 11.4 | _bin/cxx-opt+bumproot/osh | mut |
| 8 | 4 | 4 | 12.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 4 | 4 | 10.0 | osh-native | mut+alloc |
| 9 | 4 | 4 | 10.1 | osh-native | mut+alloc+free |
| 9 | 6 | 3 | 8.5 | osh-native | mut+alloc+free+gc |
| 9 | 4 | 4 | 8.5 | osh-native | mut+alloc+free+gc+exit |
| 12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 11 | 11 | 0 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A synthetic benchmark for POSIX shell arithmetic.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 10 | 10 | 0 | 1.6 | dash | - |
| 29 | 25 | 4 | 2.9 | bash | - |
| 25 | 16 | 8 | 3.3 | zsh | - |
| 19 | 14 | 5 | 32.8 | bumpleak/osh | mut |
| 26 | 26 | 0 | 32.9 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 28 | 0 | 33.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 33 | 4 | 26.3 | osh-native | mut+alloc |
| 39 | 30 | 9 | 26.9 | osh-native | mut+alloc+free |
| 29 | 24 | 4 | 7.7 | osh-native | mut+alloc+free+gc |
| 28 | 28 | 0 | 7.9 | osh-native | mut+alloc+free+gc+exit |
| 55 | 38 | 17 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 37 | 33 | 4 | 9.5 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A realistic bash-completion workload.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 73 | 73 | 0 | 3.1 | bash | - |
| 168 | 100 | 68 | 54.7 | bumpleak/osh | mut |
| 181 | 128 | 52 | 56.0 | _bin/cxx-opt+bumproot/osh | mut |
| 192 | 116 | 76 | 55.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 212 | 140 | 72 | 47.0 | osh-native | mut+alloc |
| 219 | 159 | 60 | 48.9 | osh-native | mut+alloc+free |
| 181 | 110 | 71 | 8.8 | osh-native | mut+alloc+free+gc |
| 181 | 122 | 59 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 230 | 141 | 89 | 63.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 209 | 148 | 60 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Running abuild -h from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 10 | 8 | 1 | 3.4 | dash | - |
| 19 | 16 | 4 | 4.5 | bash | - |
| 18 | 12 | 7 | 3.5 | zsh | - |
| 20 | 12 | 9 | 12.1 | bumpleak/osh | mut |
| 20 | 12 | 8 | 13.8 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 12 | 10 | 12.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 14 | 9 | 10.7 | osh-native | mut+alloc |
| 24 | 11 | 12 | 11.1 | osh-native | mut+alloc+free |
| 22 | 20 | 3 | 8.9 | osh-native | mut+alloc+free+gc |
| 23 | 14 | 10 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 26 | 17 | 10 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 25 | 17 | 8 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |