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 | 24 | 2 | 7 | 12.2 | 18.0 | 478,359 | 1,282 | 6 | 428,228 | 5 | 214,114 | osh-native |
| parse.configure-coreutils | 90 | 14 | 31 | 46.2 | 51.6 | 1,660,610 | 4,764 | 10 | 1,189,390 | 7 | 594,695 | osh-native |
| parse.abuild | 9 | 1 | 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 | 2 | 12.3 | 8.7 | 1,077,990 | 27,375 | 23 | 50,000 | 0 | 3,938 | osh-native |
| ex.abuild-print-help | 14 | 0 | 1 | 2.9 | 9.1 | 117,524 | 477 | 3 | 85,988 | 1 | 42,994 | osh-native |
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 4 | 4 | 0 | 1.6 | dash | - |
| 16 | 16 | 0 | 3.2 | bash | - |
| 77 | 49 | 33 | 3.4 | zsh | - |
| 12 | 8 | 4 | 29.8 | bumpleak/osh | mut |
| 14 | 14 | 0 | 30.3 | _bin/cxx-opt+bumproot/osh | mut |
| 16 | 12 | 4 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 19 | 15 | 4 | 25.1 | osh-native | mut+alloc |
| 21 | 12 | 8 | 25.5 | osh-native | mut+alloc+free |
| 24 | 24 | 0 | 18.0 | osh-native | mut+alloc+free+gc |
| 25 | 20 | 4 | 18.1 | osh-native | mut+alloc+free+gc+exit |
| 28 | 12 | 16 | 32.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 34 | 34 | 0 | 22.7 | _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 |
| 15 | 15 | 0 | 1.7 | dash | - |
| 55 | 55 | 0 | 3.3 | bash | - |
| 235 | 152 | 96 | 3.5 | zsh | - |
| 36 | 16 | 20 | 86.5 | bumpleak/osh | mut |
| 45 | 37 | 8 | 85.3 | _bin/cxx-opt+bumproot/osh | mut |
| 50 | 39 | 12 | 87.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 62 | 39 | 23 | 74.0 | osh-native | mut+alloc |
| 71 | 50 | 21 | 75.9 | osh-native | mut+alloc+free |
| 90 | 71 | 20 | 51.6 | osh-native | mut+alloc+free+gc |
| 97 | 77 | 20 | 52.5 | osh-native | mut+alloc+free+gc+exit |
| 89 | 61 | 28 | 99.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 130 | 126 | 4 | 68.7 | _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 |
| 1 | 0 | 1 | 1.5 | dash | - |
| 4 | 4 | 0 | 3.1 | bash | - |
| 4 | 0 | 4 | 3.3 | zsh | - |
| 4 | 4 | 0 | 11.9 | bumpleak/osh | mut |
| 5 | 4 | 0 | 11.8 | _bin/cxx-opt+bumproot/osh | mut |
| 5 | 5 | 0 | 12.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 5 | 5 | 0 | 10.0 | osh-native | mut+alloc |
| 11 | 11 | 0 | 10.0 | osh-native | mut+alloc+free |
| 9 | 5 | 5 | 8.6 | osh-native | mut+alloc+free+gc |
| 6 | 6 | 0 | 8.6 | osh-native | mut+alloc+free+gc+exit |
| 7 | 7 | 0 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 7 | 4 | 4 | 9.4 | _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 |
| 7 | 3 | 3 | 1.6 | dash | - |
| 20 | 20 | 0 | 2.9 | bash | - |
| 14 | 14 | 0 | 3.5 | zsh | - |
| 14 | 11 | 4 | 34.0 | bumpleak/osh | mut |
| 19 | 18 | 0 | 34.7 | _bin/cxx-opt+bumproot/osh | mut |
| 21 | 21 | 0 | 33.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 26 | 11 | 15 | 28.2 | osh-native | mut+alloc |
| 27 | 27 | 0 | 28.6 | osh-native | mut+alloc+free |
| 21 | 20 | 0 | 7.8 | osh-native | mut+alloc+free+gc |
| 21 | 17 | 4 | 7.8 | osh-native | mut+alloc+free+gc+exit |
| 37 | 29 | 8 | 38.8 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 28 | 28 | 0 | 9.4 | _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 |
| 50 | 46 | 4 | 3.2 | bash | - |
| 99 | 83 | 16 | 58.4 | bumpleak/osh | mut |
| 107 | 80 | 28 | 59.8 | _bin/cxx-opt+bumproot/osh | mut |
| 119 | 90 | 29 | 59.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 128 | 104 | 24 | 50.7 | osh-native | mut+alloc |
| 137 | 101 | 36 | 52.4 | osh-native | mut+alloc+free |
| 112 | 92 | 20 | 8.7 | osh-native | mut+alloc+free+gc |
| 112 | 96 | 16 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 144 | 104 | 40 | 67.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 131 | 119 | 12 | 10.1 | _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 |
| 6 | 6 | 0 | 3.6 | dash | - |
| 12 | 9 | 3 | 4.6 | bash | - |
| 10 | 10 | 0 | 3.6 | zsh | - |
| 12 | 9 | 3 | 12.2 | bumpleak/osh | mut |
| 13 | 13 | 1 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
| 11 | 4 | 8 | 12.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 13 | 8 | 5 | 11.1 | osh-native | mut+alloc |
| 13 | 9 | 4 | 11.2 | osh-native | mut+alloc+free |
| 14 | 14 | 0 | 9.1 | osh-native | mut+alloc+free+gc |
| 14 | 14 | 1 | 9.1 | osh-native | mut+alloc+free+gc+exit |
| 15 | 14 | 1 | 12.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 16 | 16 | 0 | 10.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |