| 1 |
[](https://github.com/charlievieth/strcase/actions/workflows/test.yml) |
| 2 |
[](https://pkg.go.dev/github.com/charlievieth/strcase@master) |
| 3 |
[](https://codecov.io/github/charlievieth/strcase) |
| 4 |
|
| 5 |
# strcase |
| 6 |
|
| 7 |
Package [strcase](.) and [bytcase](bytcase/README.md) are case-insensitive and |
| 8 |
Unicode aware implementations of the Go standard library's |
| 9 |
[`strings`](https://pkg.go.dev/strings) and [`bytes`](https://pkg.go.dev/bytes) |
| 10 |
packages that are accurate, fast, and never allocate memory. |
| 11 |
|
| 12 |
Simple Unicode case-folding is used for all comparisons. This matches the behavior |
| 13 |
of [strings.EqualFold](https://pkg.go.dev/strings#EqualFold) and [regexp.Regexp](https://pkg.go.dev/regexp#Regexp) |
| 14 |
(when the pattern is compiled with the case-insensitive flag `(?i)`) and is more |
| 15 |
accurate (and significantly more efficient) than using [strings.ToLower](https://pkg.go.dev/strings#ToLower) or |
| 16 |
[strings.ToUpper](https://pkg.go.dev/strings#ToUpper) to normalize the needle / |
| 17 |
haystack before searching. |
| 18 |
|
| 19 |
**Note:** The bytcase package is analogous to the strcase package; whatever |
| 20 |
applies to strcase also applies to bytcase. For simplicity, the documentation |
| 21 |
primarily refers to strcase. Unless otherwise noted, all comments apply to both |
| 22 |
packages. |
| 23 |
|
| 24 |
## Overview |
| 25 |
|
| 26 |
* Drop-in replacement for the [`strings`](https://pkg.go.dev/strings) and |
| 27 |
[`bytes`](https://pkg.go.dev/bytes) packages that provides Unicode |
| 28 |
aware case-insensitive matching. |
| 29 |
* Simple Unicode case-folding is used for all comparisons - making it more |
| 30 |
accurate than using [strings.ToLower](https://pkg.go.dev/strings#ToLower) or |
| 31 |
[strings.ToUpper](https://pkg.go.dev/strings#ToUpper) for case-insensitivity. |
| 32 |
<!-- TODO: note the equivalent using the regexp package `(?i)` --> |
| 33 |
* Any string matched by strcase or bytcase will also match with |
| 34 |
[strings.EqualFold](https://pkg.go.dev/strings#EqualFold) or |
| 35 |
[bytes.EqualFold](https://pkg.go.dev/bytes#EqualFold) |
| 36 |
* Fast and optimized for amd64 and arm64. For non-pathological inputs strcase |
| 37 |
is only 25-50% slower than the strings package. |
| 38 |
* On average strcase/bytcase are 25x faster than using than using a case-insensitive |
| 39 |
[regexp.Regexp](https://pkg.go.dev/regexp#Regexp) (see the below |
| 40 |
[benchmarks](#benchmarks) section). |
| 41 |
|
| 42 |
## Installation |
| 43 |
|
| 44 |
strcase is available using the standard `go get` command. |
| 45 |
|
| 46 |
Install by running: |
| 47 |
```sh |
| 48 |
# strcase |
| 49 |
go get github.com/charlievieth/strcase |
| 50 |
|
| 51 |
# bytcase |
| 52 |
go get github.com/charlievieth/strcase/bytcase |
| 53 |
``` |
| 54 |
|
| 55 |
## Features |
| 56 |
|
| 57 |
- Fast: strcase is optimized for `amd64` and `arm64` and strives to be no worse |
| 58 |
than 2x slower than the strings package and is often only 30-50% slower. |
| 59 |
- The `IndexByte`, `IndexNonASCII` and `Count` functions are implemented in |
| 60 |
assembly and use SSE/AVX2 on `amd64` and NEON on `arm64`. |
| 61 |
- Instead of using the [unicode](https://pkg.go.dev/unicode) package for case |
| 62 |
conversions strcase uses its own multiplicative hash tables that are roughly |
| 63 |
10x faster (at the cost of package size). |
| 64 |
- Accurate: Unicode simple folding is used to determine equality. |
| 65 |
- Any matched text would also match with |
| 66 |
[`strings.EqualFold`](https://pkg.go.dev/strings#EqualFold). |
| 67 |
- Zero allocation: none of the strcase functions allocate memory. |
| 68 |
- Thoroughly tested and fuzzed. |
| 69 |
|
| 70 |
## Additional Features |
| 71 |
|
| 72 |
strcase provides two functons for checking if a string contains non-ASCII |
| 73 |
characters that are highly optimized for amd64/arm64: |
| 74 |
|
| 75 |
- [strcase.IndexNonASCII](https://pkg.go.dev/github.com/charlievieth/strcase#IndexNonASCII): |
| 76 |
IndexNonASCII returns the index of first non-ASCII rune in s, or -1 if s consists |
| 77 |
only of ASCII characters. |
| 78 |
- [strcase.ContainsNonASCII](https://pkg.go.dev/github.com/charlievieth/strcase#ContainsNonASCII): |
| 79 |
ContainsNonASCII returns true if s contains any non-ASCII characters. |
| 80 |
|
| 81 |
## Caveats |
| 82 |
|
| 83 |
<!-- |
| 84 |
From: regexp |
| 85 |
https://pkg.go.dev/regexp |
| 86 |
|
| 87 |
All characters are UTF-8-encoded code points. Following utf8.DecodeRune, |
| 88 |
each byte of an invalid UTF-8 sequence is treated as if it encoded utf8.RuneError (U+FFFD). |
| 89 |
--> |
| 90 |
|
| 91 |
All invalid UTF-8 sequences are considered equal. This is because Go converts |
| 92 |
invalid UTF-8 sequences to the Unicode replacement character `0xFFFD` |
| 93 |
([unicode.ReplacementChar](https://pkg.go.dev/unicode#pkg-constants) / |
| 94 |
[utf8.RuneError](https://pkg.go.dev/unicode/utf8#pkg-constants)). |
| 95 |
This occurs both when [ranging](https://go.dev/ref/spec#For_statements) over |
| 96 |
a string or using the [utf8](https://pkg.go.dev/utf8) package's `Decode*` |
| 97 |
functions. |
| 98 |
|
| 99 |
```go |
| 100 |
strcase.Compare("\xff", string(utf8.RuneError)) // returns 0 |
| 101 |
strcase.Index("a\xff", string(utf8.RuneError)) // returns 1 |
| 102 |
``` |
| 103 |
|
| 104 |
<!-- TODO: do we need this / mention that this does not really matter but is still tested --> |
| 105 |
Thus it is the callers responsibility to ensure strcase functions are called |
| 106 |
with valid UTF-8 strings and not arbitrary binary data. |
| 107 |
|
| 108 |
## Performance |
| 109 |
|
| 110 |
strcase aims to be seriously fast and can beat or match the performance of the |
| 111 |
strings package in some benchmarks (EqualFold and IndexRune). Overall, strcase |
| 112 |
tends to be only 30-50% slower than the strings package for non-pathological inputs. |
| 113 |
|
| 114 |
#### Optimizations |
| 115 |
|
| 116 |
- Instead of using the standard library's Unicode package, which uses a binary |
| 117 |
search for its lookup tables, strcase uses multiplicative hashing for its |
| 118 |
lookup tables. This is 10x faster at the cost of larger tables. |
| 119 |
- Searching for runes (IndexRune) is a big determinant of the strcase packages |
| 120 |
performance. Instead of searching for runes by their first byte (like the |
| 121 |
strings package) strcase searches for the second byte, which is more unique, |
| 122 |
then looks backwards/forwards to complete the match. |
| 123 |
* **NB:** [CL 539116](https://go-review.googlesource.com/c/go/+/539116) added |
| 124 |
this logic to Go's strings/bytes packages and is available starting with Go 1.23. |
| 125 |
- Package strcase is optimized for amd64 and arm64 and includes assembly |
| 126 |
implementations of `IndexByte`, `CountByte` and `IndexNonASCII` that |
| 127 |
leverage the same SIMD technologies used in the standard library (SSE, AVX2, |
| 128 |
NEON). |
| 129 |
- On armv7l (Raspberry Pi), which we do not optimize for, the average |
| 130 |
performance penalty is only ~30%. |
| 131 |
|
| 132 |
## Notes: |
| 133 |
- All invalid Unicode points and invalid multibyte UTF-8 sequences are |
| 134 |
considered equal. |
| 135 |
This is because the [utf8](https://pkg.go.dev/unicode/utf8) package converts |
| 136 |
invalid runes and multibyte UTF-8 sequences to |
| 137 |
[`utf8.RuneError`](https://pkg.go.dev/unicode/utf8#RuneError). |
| 138 |
* This matches the behavior of [strings.EqualFold](https://pkg.go.dev/strings#EqualFold). |
| 139 |
- `İ` (LATIN CAPITAL LETTER I WITH DOT ABOVE) and `ı`: (LATIN SMALL LETTER DOTLESS |
| 140 |
I) doe not fold to ASCII `[iI]` (U+0069 / U+0049) |
| 141 |
* This matches the behavior of [strings.EqualFold](https://pkg.go.dev/strings#EqualFold) |
| 142 |
* See [unicode.org/UCD/CaseFolding.txt](https://www.unicode.org/Public/UCD/latest/ucd/CaseFolding.txt) |
| 143 |
for an explanation, basically this folding is normally ignored for non-Turkic languages |
| 144 |
- Kelvin `K` (U+212A) matches ASCII `K` and `k` |
| 145 |
- Latin small letter long S `ſ` matches ASCII `S` and `s` |
| 146 |
|
| 147 |
## Contributing / Hacking |
| 148 |
|
| 149 |
Contributions are welcome. Please, see the [CONTRIBUTING](./CONTRIBUTING.md) |
| 150 |
document for details. |
| 151 |
|
| 152 |
## Benchmarks |
| 153 |
|
| 154 |
<!-- WARN: make sure this renders correctly on GitHub --> |
| 155 |
|
| 156 |
The following benchmarks were created using |
| 157 |
[internal/benchtest](https://github.com/charlievieth/strcase/tree/master/internal/benchtest). |
| 158 |
Additional, processor specific benchmarks can be found in |
| 159 |
[internal/benchtest/results](https://github.com/charlievieth/strcase/tree/master/internal/benchtest/results). |
| 160 |
|
| 161 |
<details> |
| 162 |
<summary>regexp vs. strcase</summary> |
| 163 |
|
| 164 |
``` |
| 165 |
goos: darwin |
| 166 |
goarch: arm64 |
| 167 |
pkg: github.com/charlievieth/strcase/internal/benchtest |
| 168 |
cpu: Apple M1 Max |
| 169 |
│ regexp.10.txt │ strcase.10.txt │ |
| 170 |
│ sec/op │ sec/op vs base │ |
| 171 |
IndexRune-10 587.45n ± 2% 11.15n ± 1% -98.10% (p=0.000 n=10) |
| 172 |
IndexRuneLongString-10 584.15n ± 2% 12.67n ± 1% -97.83% (p=0.000 n=10) |
| 173 |
IndexRuneFastPath-10 673.300n ± 6% 5.130n ± 3% -99.24% (p=0.000 n=10) |
| 174 |
Index-10 671.900n ± 2% 4.982n ± 1% -99.26% (p=0.000 n=10) |
| 175 |
EqualFold/ASCII-10 2920.500n ± 1% 9.418n ± 2% -99.68% (p=0.000 n=10) |
| 176 |
EqualFold/UnicodePrefix-10 3892.00n ± 1% 32.35n ± 2% -99.17% (p=0.000 n=10) |
| 177 |
EqualFold/UnicodeSuffix-10 3885.50n ± 2% 26.17n ± 1% -99.33% (p=0.000 n=10) |
| 178 |
IndexHard1-10 334.1µ ± 0% 340.4µ ± 0% +1.90% (p=0.000 n=10) |
| 179 |
IndexHard2-10 9.963m ± 6% 1.362m ± 1% -86.33% (p=0.000 n=10) |
| 180 |
IndexHard3-10 10.727m ± 0% 1.369m ± 1% -87.24% (p=0.000 n=10) |
| 181 |
IndexHard4-10 10.385m ± 0% 1.361m ± 1% -86.89% (p=0.000 n=10) |
| 182 |
CountHard1-10 338.1µ ± 1% 336.4µ ± 1% ~ (p=0.218 n=10) |
| 183 |
CountHard2-10 9.844m ± 1% 1.365m ± 1% -86.13% (p=0.000 n=10) |
| 184 |
CountHard3-10 10.684m ± 0% 1.362m ± 1% -87.25% (p=0.000 n=10) |
| 185 |
IndexTorture-10 27787.99µ ± 1% 18.04µ ± 2% -99.94% (p=0.000 n=10) |
| 186 |
CountTorture-10 27631.25µ ± 1% 17.86µ ± 2% -99.94% (p=0.000 n=10) |
| 187 |
CountTortureOverlapping-10 14204.297m ± 2% 4.058m ± 1% -99.97% (p=0.000 n=10) |
| 188 |
CountByte/10-10 570.100n ± 1% 7.684n ± 1% -98.65% (p=0.000 n=10) |
| 189 |
CountByte/32-10 964.050n ± 2% 4.501n ± 1% -99.53% (p=0.000 n=10) |
| 190 |
CountByte/4K-10 63123.0n ± 1% 103.1n ± 0% -99.84% (p=0.000 n=10) |
| 191 |
CountByte/4M-10 87646.31µ ± 0% 96.02µ ± 7% -99.89% (p=0.000 n=10) |
| 192 |
CountByte/64M-10 1433.190m ± 1% 1.574m ± 1% -99.89% (p=0.000 n=10) |
| 193 |
IndexAnyASCII/1:1-10 742.800n ± 2% 5.513n ± 1% -99.26% (p=0.000 n=10) |
| 194 |
IndexAnyASCII/1:2-10 915.150n ± 2% 7.462n ± 0% -99.18% (p=0.000 n=10) |
| 195 |
IndexAnyASCII/1:4-10 1031.500n ± 7% 7.453n ± 0% -99.28% (p=0.000 n=10) |
| 196 |
IndexAnyASCII/1:8-10 1217.000n ± 2% 7.397n ± 0% -99.39% (p=0.000 n=10) |
| 197 |
IndexAnyASCII/1:16-10 1802.000n ± 2% 7.710n ± 1% -99.57% (p=0.000 n=10) |
| 198 |
IndexAnyASCII/1:32-10 3100.000n ± 4% 7.711n ± 0% -99.75% (p=0.000 n=10) |
| 199 |
IndexAnyASCII/1:64-10 5183.500n ± 2% 8.037n ± 0% -99.84% (p=0.000 n=10) |
| 200 |
IndexAnyASCII/16:1-10 731.000n ± 4% 5.457n ± 0% -99.25% (p=0.000 n=10) |
| 201 |
IndexAnyASCII/16:2-10 1096.00n ± 2% 13.44n ± 1% -98.77% (p=0.000 n=10) |
| 202 |
IndexAnyASCII/16:4-10 1231.00n ± 4% 15.39n ± 3% -98.75% (p=0.000 n=10) |
| 203 |
IndexAnyASCII/16:8-10 1429.50n ± 2% 19.38n ± 1% -98.64% (p=0.000 n=10) |
| 204 |
IndexAnyASCII/16:16-10 2009.50n ± 3% 34.40n ± 1% -98.29% (p=0.000 n=10) |
| 205 |
IndexAnyASCII/16:32-10 3325.00n ± 1% 61.90n ± 0% -98.14% (p=0.000 n=10) |
| 206 |
IndexAnyASCII/16:64-10 5380.5n ± 1% 124.8n ± 3% -97.68% (p=0.000 n=10) |
| 207 |
IndexAnyASCII/256:1-10 727.600n ± 2% 8.571n ± 3% -98.82% (p=0.000 n=10) |
| 208 |
IndexAnyASCII/256:2-10 4038.5n ± 1% 153.7n ± 0% -96.19% (p=0.000 n=10) |
| 209 |
IndexAnyASCII/256:4-10 4167.5n ± 1% 156.2n ± 1% -96.25% (p=0.000 n=10) |
| 210 |
IndexAnyASCII/256:8-10 4356.0n ± 1% 161.6n ± 0% -96.29% (p=0.000 n=10) |
| 211 |
IndexAnyASCII/256:16-10 4953.0n ± 1% 176.3n ± 3% -96.44% (p=0.000 n=10) |
| 212 |
IndexAnyASCII/256:32-10 6819.5n ± 4% 207.5n ± 1% -96.96% (p=0.000 n=10) |
| 213 |
IndexAnyASCII/256:64-10 8949.5n ± 6% 271.9n ± 0% -96.96% (p=0.000 n=10) |
| 214 |
IndexAnyUTF8/1:16-10 1860.500n ± 1% 7.296n ± 0% -99.61% (p=0.000 n=10) |
| 215 |
IndexAnyUTF8/16:16-10 2100.50n ± 1% 86.67n ± 0% -95.87% (p=0.000 n=10) |
| 216 |
IndexAnyUTF8/256:16-10 5902.0n ± 1% 119.8n ± 1% -97.97% (p=0.000 n=10) |
| 217 |
IndexPeriodic/IndexPeriodic2-10 1451.35µ ± 1% 84.06µ ± 0% -94.21% (p=0.000 n=10) |
| 218 |
IndexPeriodic/IndexPeriodic4-10 1529.07µ ± 1% 83.80µ ± 0% -94.52% (p=0.000 n=10) |
| 219 |
IndexPeriodic/IndexPeriodic8-10 1349.62µ ± 18% 83.59µ ± 1% -93.81% (p=0.000 n=10) |
| 220 |
IndexPeriodic/IndexPeriodic16-10 1234.51µ ± 1% 64.12µ ± 1% -94.81% (p=0.000 n=10) |
| 221 |
IndexPeriodic/IndexPeriodic32-10 1196.96µ ± 1% 30.81µ ± 1% -97.43% (p=0.000 n=10) |
| 222 |
IndexPeriodic/IndexPeriodic64-10 1169.90µ ± 8% 14.68µ ± 0% -98.75% (p=0.000 n=10) |
| 223 |
IndexByte_Bytes/10-10 4.517n ± 20% |
| 224 |
IndexByte_Bytes/32-10 4.518n ± 1% |
| 225 |
IndexByte_Bytes/4K-10 81.42n ± 2% |
| 226 |
IndexByte_Bytes/4M-10 74.80µ ± 1% |
| 227 |
IndexByte_Bytes/64M-10 1.237m ± 5% |
| 228 |
IndexRune_Bytes/10-10 12.56n ± 1% 12.32n ± 0% -1.91% (p=0.000 n=10) |
| 229 |
IndexRune_Bytes/32-10 12.59n ± 1% 12.32n ± 0% -2.10% (p=0.000 n=10) |
| 230 |
IndexRune_Bytes/4K-10 85.06n ± 1% 83.56n ± 0% -1.76% (p=0.000 n=10) |
| 231 |
IndexRune_Bytes/4M-10 65.05µ ± 1% 64.33µ ± 0% -1.11% (p=0.030 n=10) |
| 232 |
IndexRune_Bytes/64M-10 1.149m ± 4% 1.169m ± 5% ~ (p=0.089 n=10) |
| 233 |
IndexRuneASCII_Bytes/10-10 6.439n ± 1% 6.388n ± 0% -0.79% (p=0.025 n=10) |
| 234 |
IndexRuneASCII_Bytes/32-10 6.462n ± 1% 6.369n ± 1% -1.43% (p=0.000 n=10) |
| 235 |
IndexRuneASCII_Bytes/4K-10 83.87n ± 0% 83.49n ± 11% ~ (p=0.210 n=10) |
| 236 |
IndexRuneASCII_Bytes/4M-10 75.19µ ± 2% 74.01µ ± 1% -1.57% (p=0.023 n=10) |
| 237 |
IndexRuneASCII_Bytes/64M-10 1.256m ± 5% 1.300m ± 2% ~ (p=0.218 n=10) |
| 238 |
IndexNonASCII_Bytes/10-10 3.063n ± 0% 2.967n ± 0% -3.13% (p=0.000 n=10) |
| 239 |
IndexNonASCII_Bytes/32-10 3.835n ± 2% 3.759n ± 0% -1.98% (p=0.027 n=10) |
| 240 |
IndexNonASCII_Bytes/4K-10 80.74n ± 1% 79.59n ± 0% -1.44% (p=0.016 n=10) |
| 241 |
IndexNonASCII_Bytes/4M-10 74.47µ ± 1% 74.51µ ± 1% ~ (p=0.529 n=10) |
| 242 |
IndexNonASCII_Bytes/64M-10 1.271m ± 4% 1.307m ± 2% ~ (p=0.089 n=10) |
| 243 |
geomean 12.78µ 595.2n -96.26% ¹ |
| 244 |
¹ benchmark set differs from baseline; geomeans may not be comparable |
| 245 |
|
| 246 |
│ regexp.10.txt │ strcase.10.txt │ |
| 247 |
│ B/s │ B/s vs base │ |
| 248 |
IndexRune-10 27.60Mi ± 2% 1454.81Mi ± 1% +5171.18% (p=0.000 n=10) |
| 249 |
IndexRuneLongString-10 191.0Mi ± 2% 8802.1Mi ± 1% +4508.17% (p=0.000 n=10) |
| 250 |
IndexRuneFastPath-10 25.50Mi ± 5% 3346.27Mi ± 3% +13024.42% (p=0.000 n=10) |
| 251 |
Index-10 3.365Gi ± 1% |
| 252 |
EqualFold/ASCII-10 3.920Mi ± 1% 1215.096Mi ± 2% +30900.49% (p=0.000 n=10) |
| 253 |
EqualFold/UnicodePrefix-10 4.411Mi ± 1% 530.591Mi ± 2% +11929.51% (p=0.000 n=10) |
| 254 |
EqualFold/UnicodeSuffix-10 4.416Mi ± 2% 656.018Mi ± 1% +14757.13% (p=0.000 n=10) |
| 255 |
IndexHard1-10 2.869Gi ± 0% |
| 256 |
IndexHard2-10 734.1Mi ± 1% |
| 257 |
IndexHard3-10 730.6Mi ± 1% |
| 258 |
IndexHard4-10 734.5Mi ± 1% |
| 259 |
CountHard1-10 2.888Gi ± 1% 2.903Gi ± 1% ~ (p=0.218 n=10) |
| 260 |
CountHard2-10 101.6Mi ± 1% 732.6Mi ± 1% +621.19% (p=0.000 n=10) |
| 261 |
CountHard3-10 93.59Mi ± 0% 734.10Mi ± 1% +684.35% (p=0.000 n=10) |
| 262 |
IndexTorture-10 325.0Mi ± 2% |
| 263 |
CountTorture-10 214.8Ki ± 0% 336108.4Ki ± 2% +156343.18% (p=0.000 n=10) |
| 264 |
CountTortureOverlapping-10 214.8Ki ± 5% 756987.3Ki ± 1% +352243.18% (p=0.000 n=10) |
| 265 |
CountByte/10-10 16.73Mi ± 1% 1240.98Mi ± 1% +7318.84% (p=0.000 n=10) |
| 266 |
CountByte/32-10 31.66Mi ± 2% 6780.62Mi ± 1% +21318.89% (p=0.000 n=10) |
| 267 |
CountByte/4K-10 61.88Mi ± 1% 37908.26Mi ± 0% +61157.04% (p=0.000 n=10) |
| 268 |
CountByte/4M-10 45.64Mi ± 0% 41657.45Mi ± 7% +91177.83% (p=0.000 n=10) |
| 269 |
CountByte/64M-10 44.66Mi ± 1% 40660.56Mi ± 1% +90953.26% (p=0.000 n=10) |
| 270 |
IndexPeriodic/IndexPeriodic2-10 743.5Mi ± 0% |
| 271 |
IndexPeriodic/IndexPeriodic4-10 745.8Mi ± 0% |
| 272 |
IndexPeriodic/IndexPeriodic8-10 747.7Mi ± 1% |
| 273 |
IndexPeriodic/IndexPeriodic16-10 974.8Mi ± 1% |
| 274 |
IndexPeriodic/IndexPeriodic32-10 1.981Gi ± 1% |
| 275 |
IndexPeriodic/IndexPeriodic64-10 4.159Gi ± 0% |
| 276 |
IndexByte_Bytes/10-10 2.062Gi ± 17% |
| 277 |
IndexByte_Bytes/32-10 6.598Gi ± 1% |
| 278 |
IndexByte_Bytes/4K-10 46.85Gi ± 2% |
| 279 |
IndexByte_Bytes/4M-10 52.23Gi ± 1% |
| 280 |
IndexByte_Bytes/64M-10 50.52Gi ± 5% |
| 281 |
IndexRune_Bytes/10-10 759.2Mi ± 1% 773.8Mi ± 0% +1.93% (p=0.000 n=10) |
| 282 |
IndexRune_Bytes/32-10 2.367Gi ± 1% 2.418Gi ± 0% +2.17% (p=0.000 n=10) |
| 283 |
IndexRune_Bytes/4K-10 44.85Gi ± 1% 45.65Gi ± 0% +1.79% (p=0.000 n=10) |
| 284 |
IndexRune_Bytes/4M-10 60.05Gi ± 1% 60.72Gi ± 0% +1.12% (p=0.035 n=10) |
| 285 |
IndexRune_Bytes/64M-10 54.38Gi ± 4% 53.46Gi ± 5% ~ (p=0.089 n=10) |
| 286 |
IndexRuneASCII_Bytes/10-10 1.446Gi ± 1% 1.458Gi ± 0% +0.80% (p=0.023 n=10) |
| 287 |
IndexRuneASCII_Bytes/32-10 4.612Gi ± 1% 4.679Gi ± 1% +1.46% (p=0.000 n=10) |
| 288 |
IndexRuneASCII_Bytes/4K-10 45.48Gi ± 0% 45.69Gi ± 10% ~ (p=0.218 n=10) |
| 289 |
IndexRuneASCII_Bytes/4M-10 51.95Gi ± 2% 52.78Gi ± 1% +1.60% (p=0.023 n=10) |
| 290 |
IndexRuneASCII_Bytes/64M-10 49.75Gi ± 5% 48.09Gi ± 3% ~ (p=0.218 n=10) |
| 291 |
IndexNonASCII_Bytes/10-10 3.040Gi ± 0% 3.138Gi ± 0% +3.23% (p=0.000 n=10) |
| 292 |
IndexNonASCII_Bytes/32-10 7.772Gi ± 2% 7.928Gi ± 0% +2.01% (p=0.023 n=10) |
| 293 |
IndexNonASCII_Bytes/4K-10 47.24Gi ± 1% 47.93Gi ± 0% +1.46% (p=0.019 n=10) |
| 294 |
IndexNonASCII_Bytes/4M-10 52.46Gi ± 1% 52.43Gi ± 1% ~ (p=0.529 n=10) |
| 295 |
IndexNonASCII_Bytes/64M-10 49.19Gi ± 4% 47.81Gi ± 2% ~ (p=0.089 n=10) |
| 296 |
geomean 832.0Mi 3.764Gi +1121.52% ¹ |
| 297 |
¹ benchmark set differs from baseline; geomeans may not be comparable |
| 298 |
|
| 299 |
│ regexp.10.txt │ strcase.10.txt │ |
| 300 |
│ B/op │ B/op vs base │ |
| 301 |
IndexRune-10 811.0 ± 0% 0.0 ± 0% -100.00% (p=0.000 n=10) |
| 302 |
IndexRuneLongString-10 811.0 ± 0% 0.0 ± 0% -100.00% (p=0.000 n=10) |
| 303 |
IndexRuneFastPath-10 791.0 ± 0% 0.0 ± 0% -100.00% (p=0.000 n=10) |
| 304 |
Index-10 791.0 ± 0% 0.0 ± 0% -100.00% (p=0.000 n=10) |
| 305 |
EqualFold/ASCII-10 4.658Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 306 |
EqualFold/UnicodePrefix-10 6.480Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 307 |
EqualFold/UnicodeSuffix-10 6.480Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 308 |
IndexHard1-10 914.0 ± 0% 0.0 ± 0% -100.00% (p=0.000 n=10) |
| 309 |
IndexHard2-10 1.433Ki ± 4% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 310 |
IndexHard3-10 3.665Ki ± 1% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 311 |
IndexHard4-10 6.977Ki ± 1% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 312 |
CountHard1-10 914.0 ± 0% 0.0 ± 0% -100.00% (p=0.000 n=10) |
| 313 |
CountHard2-10 1.427Ki ± 3% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 314 |
CountHard3-10 3.668Ki ± 1% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 315 |
IndexTorture-10 647.6Ki ± 6% 0.0Ki ± 0% -100.00% (p=0.000 n=10) |
| 316 |
CountTorture-10 647.6Ki ± 6% 0.0Ki ± 0% -100.00% (p=0.000 n=10) |
| 317 |
CountTortureOverlapping-10 4424.21Ki ± 0% 10.53Ki ± 1% -99.76% (p=0.000 n=10) |
| 318 |
CountByte/10-10 765.0 ± 0% 0.0 ± 0% -100.00% (p=0.000 n=10) |
| 319 |
CountByte/32-10 1021.0 ± 0% 0.0 ± 0% -100.00% (p=0.000 n=10) |
| 320 |
CountByte/4K-10 19.36Ki ± 0% 0.00Ki ± 0% -100.00% (p=0.000 n=10) |
| 321 |
CountByte/4M-10 27.79Mi ± 0% 0.00Mi ± 0% -100.00% (p=0.000 n=10) |
| 322 |
CountByte/64M-10 421.2Mi ± 0% 0.0Mi ± 0% -100.00% (p=0.000 n=10) |
| 323 |
IndexAnyASCII/1:1-10 1.255Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 324 |
IndexAnyASCII/1:2-10 1.524Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 325 |
IndexAnyASCII/1:4-10 1.556Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 326 |
IndexAnyASCII/1:8-10 1.635Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 327 |
IndexAnyASCII/1:16-10 1.849Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 328 |
IndexAnyASCII/1:32-10 2.358Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 329 |
IndexAnyASCII/1:64-10 3.119Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 330 |
IndexAnyASCII/16:1-10 1.255Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 331 |
IndexAnyASCII/16:2-10 1.522Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 332 |
IndexAnyASCII/16:4-10 1.554Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 333 |
IndexAnyASCII/16:8-10 1.635Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 334 |
IndexAnyASCII/16:16-10 1.851Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 335 |
IndexAnyASCII/16:32-10 2.360Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 336 |
IndexAnyASCII/16:64-10 3.122Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 337 |
IndexAnyASCII/256:1-10 1.255Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 338 |
IndexAnyASCII/256:2-10 1.515Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 339 |
IndexAnyASCII/256:4-10 1.547Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 340 |
IndexAnyASCII/256:8-10 1.628Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 341 |
IndexAnyASCII/256:16-10 1.844Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 342 |
IndexAnyASCII/256:32-10 2.352Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 343 |
IndexAnyASCII/256:64-10 3.112Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 344 |
IndexAnyUTF8/1:16-10 1.890Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 345 |
IndexAnyUTF8/16:16-10 1.889Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 346 |
IndexAnyUTF8/256:16-10 1.877Ki ± 0% 0.000Ki ± 0% -100.00% (p=0.000 n=10) |
| 347 |
IndexPeriodic/IndexPeriodic2-10 984.000 ± 1% 4.000 ± 0% -99.59% (p=0.000 n=10) |
| 348 |
IndexPeriodic/IndexPeriodic4-10 987.500 ± 1% 4.000 ± 0% -99.59% (p=0.000 n=10) |
| 349 |
IndexPeriodic/IndexPeriodic8-10 975.500 ± 1% 4.000 ± 0% -99.59% (p=0.000 n=10) |
| 350 |
IndexPeriodic/IndexPeriodic16-10 971.000 ± 1% 3.000 ± 0% -99.69% (p=0.000 n=10) |
| 351 |
IndexPeriodic/IndexPeriodic32-10 963.000 ± 1% 1.000 ± 0% -99.90% (p=0.000 n=10) |
| 352 |
IndexPeriodic/IndexPeriodic64-10 967.0 ± 1% 0.0 ± 0% -100.00% (p=0.000 n=10) |
| 353 |
IndexByte_Bytes/10-10 0.000 ± 0% |
| 354 |
IndexByte_Bytes/32-10 0.000 ± 0% |
| 355 |
IndexByte_Bytes/4K-10 0.000 ± 0% |
| 356 |
IndexByte_Bytes/4M-10 261.0 ± 1% |
| 357 |
IndexByte_Bytes/64M-10 69.35Ki ± 5% |
| 358 |
IndexRune_Bytes/10-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 359 |
IndexRune_Bytes/32-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 360 |
IndexRune_Bytes/4K-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 361 |
IndexRune_Bytes/4M-10 226.0 ± 1% 224.0 ± 0% -0.88% (p=0.001 n=10) |
| 362 |
IndexRune_Bytes/64M-10 64.47Ki ± 2% 64.75Ki ± 8% ~ (p=1.000 n=10) |
| 363 |
IndexRuneASCII_Bytes/10-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 364 |
IndexRuneASCII_Bytes/32-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 365 |
IndexRuneASCII_Bytes/4K-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 366 |
IndexRuneASCII_Bytes/4M-10 260.5 ± 2% 258.0 ± 1% -0.96% (p=0.011 n=10) |
| 367 |
IndexRuneASCII_Bytes/64M-10 73.51Ki ± 5% 73.26Ki ± 3% ~ (p=0.896 n=10) |
| 368 |
IndexNonASCII_Bytes/10-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 369 |
IndexNonASCII_Bytes/32-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 370 |
IndexNonASCII_Bytes/4K-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 371 |
IndexNonASCII_Bytes/4M-10 258.5 ± 1% 260.0 ± 1% ~ (p=0.343 n=10) |
| 372 |
IndexNonASCII_Bytes/64M-10 72.14Ki ± 4% 71.55Ki ± 4% ~ (p=0.305 n=10) |
| 373 |
geomean ² ? ³ ² ⁴ |
| 374 |
¹ all samples are equal |
| 375 |
² summaries must be >0 to compute geomean |
| 376 |
³ benchmark set differs from baseline; geomeans may not be comparable |
| 377 |
⁴ ratios must be >0 to compute geomean |
| 378 |
|
| 379 |
│ regexp.10.txt │ strcase.10.txt │ |
| 380 |
│ allocs/op │ allocs/op vs base │ |
| 381 |
IndexRune-10 13.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 382 |
IndexRuneLongString-10 13.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 383 |
IndexRuneFastPath-10 11.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 384 |
Index-10 11.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 385 |
EqualFold/ASCII-10 71.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 386 |
EqualFold/UnicodePrefix-10 82.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 387 |
EqualFold/UnicodeSuffix-10 82.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 388 |
IndexHard1-10 14.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 389 |
IndexHard2-10 18.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 390 |
IndexHard3-10 22.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 391 |
IndexHard4-10 24.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 392 |
CountHard1-10 14.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 393 |
CountHard2-10 18.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 394 |
CountHard3-10 22.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 395 |
IndexTorture-10 255.0 ± 47% 0.0 ± 0% -100.00% (p=0.000 n=10) |
| 396 |
CountTorture-10 255.0 ± 47% 0.0 ± 0% -100.00% (p=0.000 n=10) |
| 397 |
CountTortureOverlapping-10 3.141k ± 0% 0.000k ± 0% -100.00% (p=0.000 n=10) |
| 398 |
CountByte/10-10 10.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 399 |
CountByte/32-10 12.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 400 |
CountByte/4K-10 202.0 ± 0% 0.0 ± 0% -100.00% (p=0.000 n=10) |
| 401 |
CountByte/4M-10 190.7k ± 0% 0.0k ± 0% -100.00% (p=0.000 n=10) |
| 402 |
CountByte/64M-10 3.051M ± 0% 0.000M ± 0% -100.00% (p=0.000 n=10) |
| 403 |
IndexAnyASCII/1:1-10 16.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 404 |
IndexAnyASCII/1:2-10 18.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 405 |
IndexAnyASCII/1:4-10 18.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 406 |
IndexAnyASCII/1:8-10 18.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 407 |
IndexAnyASCII/1:16-10 20.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 408 |
IndexAnyASCII/1:32-10 22.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 409 |
IndexAnyASCII/1:64-10 22.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 410 |
IndexAnyASCII/16:1-10 16.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 411 |
IndexAnyASCII/16:2-10 18.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 412 |
IndexAnyASCII/16:4-10 18.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 413 |
IndexAnyASCII/16:8-10 18.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 414 |
IndexAnyASCII/16:16-10 20.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 415 |
IndexAnyASCII/16:32-10 22.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 416 |
IndexAnyASCII/16:64-10 22.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 417 |
IndexAnyASCII/256:1-10 16.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 418 |
IndexAnyASCII/256:2-10 18.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 419 |
IndexAnyASCII/256:4-10 18.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 420 |
IndexAnyASCII/256:8-10 18.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 421 |
IndexAnyASCII/256:16-10 20.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 422 |
IndexAnyASCII/256:32-10 22.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 423 |
IndexAnyASCII/256:64-10 22.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 424 |
IndexAnyUTF8/1:16-10 22.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 425 |
IndexAnyUTF8/16:16-10 22.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 426 |
IndexAnyUTF8/256:16-10 22.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 427 |
IndexPeriodic/IndexPeriodic2-10 12.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 428 |
IndexPeriodic/IndexPeriodic4-10 12.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 429 |
IndexPeriodic/IndexPeriodic8-10 12.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 430 |
IndexPeriodic/IndexPeriodic16-10 12.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 431 |
IndexPeriodic/IndexPeriodic32-10 12.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 432 |
IndexPeriodic/IndexPeriodic64-10 12.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) |
| 433 |
IndexByte_Bytes/10-10 0.000 ± 0% |
| 434 |
IndexByte_Bytes/32-10 0.000 ± 0% |
| 435 |
IndexByte_Bytes/4K-10 0.000 ± 0% |
| 436 |
IndexByte_Bytes/4M-10 0.000 ± 0% |
| 437 |
IndexByte_Bytes/64M-10 0.000 ± 0% |
| 438 |
IndexRune_Bytes/10-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 439 |
IndexRune_Bytes/32-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 440 |
IndexRune_Bytes/4K-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 441 |
IndexRune_Bytes/4M-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 442 |
IndexRune_Bytes/64M-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 443 |
IndexRuneASCII_Bytes/10-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 444 |
IndexRuneASCII_Bytes/32-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 445 |
IndexRuneASCII_Bytes/4K-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 446 |
IndexRuneASCII_Bytes/4M-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 447 |
IndexRuneASCII_Bytes/64M-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 448 |
IndexNonASCII_Bytes/10-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 449 |
IndexNonASCII_Bytes/32-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 450 |
IndexNonASCII_Bytes/4K-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 451 |
IndexNonASCII_Bytes/4M-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 452 |
IndexNonASCII_Bytes/64M-10 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹ |
| 453 |
geomean ² ? ³ ² ⁴ |
| 454 |
¹ all samples are equal |
| 455 |
² summaries must be >0 to compute geomean |
| 456 |
³ benchmark set differs from baseline; geomeans may not be comparable |
| 457 |
⁴ ratios must be >0 to compute geomean |
| 458 |
``` |
| 459 |
|
| 460 |
</details> |
| 461 |
|
| 462 |
<details> |
| 463 |
<summary>arm64</summary> |
| 464 |
|
| 465 |
``` |
| 466 |
goos: darwin |
| 467 |
goarch: arm64 |
| 468 |
pkg: github.com/charlievieth/strcase/internal/benchtest |
| 469 |
│ stdlib.5.1681417522.txt │ strcase.5.1681417522.txt │ |
| 470 |
│ sec/op │ sec/op vs base │ |
| 471 |
IndexRune-10 12.11n ± 1% 11.67n ± 1% -3.59% (p=0.002 n=6) |
| 472 |
IndexRuneLongString-10 13.44n ± 1% 13.02n ± 1% -3.12% (p=0.002 n=6) |
| 473 |
IndexRuneFastPath-10 2.990n ± 1% 4.776n ± 1% +59.75% (p=0.002 n=6) |
| 474 |
Index-10 3.155n ± 0% 4.729n ± 2% +49.87% (p=0.002 n=6) |
| 475 |
LastIndex-10 3.511n ± 1% 6.615n ± 1% +88.38% (p=0.002 n=6) |
| 476 |
IndexByte-10 2.441n ± 1% 3.572n ± 0% +46.33% (p=0.002 n=6) |
| 477 |
EqualFold/ASCII-10 9.619n ± 1% 9.287n ± 0% -3.45% (p=0.002 n=6) |
| 478 |
EqualFold/UnicodePrefix-10 80.37n ± 1% 32.03n ± 2% -60.14% (p=0.002 n=6) |
| 479 |
EqualFold/UnicodeSuffix-10 73.48n ± 1% 25.54n ± 2% -65.25% (p=0.002 n=6) |
| 480 |
IndexHard1-10 326.9µ ± 0% 331.7µ ± 0% +1.47% (p=0.002 n=6) |
| 481 |
IndexHard2-10 327.6µ ± 0% 2165.8µ ± 1% +560.99% (p=0.002 n=6) |
| 482 |
IndexHard3-10 357.0µ ± 1% 1854.5µ ± 3% +419.51% (p=0.002 n=6) |
| 483 |
IndexHard4-10 1.304m ± 0% 1.348m ± 2% +3.35% (p=0.002 n=6) |
| 484 |
LastIndexHard1-10 1.305m ± 0% 1.419m ± 1% +8.68% (p=0.002 n=6) |
| 485 |
LastIndexHard2-10 1.305m ± 1% 1.420m ± 1% +8.76% (p=0.002 n=6) |
| 486 |
LastIndexHard3-10 1.311m ± 4% 1.420m ± 1% +8.36% (p=0.002 n=6) |
| 487 |
CountHard1-10 333.0µ ± 2% 335.8µ ± 1% ~ (p=0.485 n=6) |
| 488 |
CountHard2-10 331.3µ ± 2% 2166.3µ ± 1% +553.98% (p=0.002 n=6) |
| 489 |
CountHard3-10 357.6µ ± 1% 1851.0µ ± 1% +417.59% (p=0.002 n=6) |
| 490 |
IndexTorture-10 9.834µ ± 3% 17.747µ ± 1% +80.48% (p=0.002 n=6) |
| 491 |
CountTorture-10 10.09µ ± 0% 20.17µ ± 1% +99.81% (p=0.002 n=6) |
| 492 |
CountTortureOverlapping-10 68.63µ ± 1% 4048.06µ ± 1% +5798.77% (p=0.002 n=6) |
| 493 |
CountByte/10-10 6.731n ± 2% 7.590n ± 1% +12.76% (p=0.002 n=6) |
| 494 |
CountByte/32-10 3.164n ± 1% 4.153n ± 1% +31.24% (p=0.002 n=6) |
| 495 |
CountByte/4096-10 80.32n ± 0% 100.80n ± 1% +25.50% (p=0.002 n=6) |
| 496 |
CountByte/4194304-10 82.84µ ± 2% 95.14µ ± 11% +14.84% (p=0.002 n=6) |
| 497 |
CountByte/67108864-10 1.367m ± 2% 1.556m ± 5% +13.84% (p=0.002 n=6) |
| 498 |
IndexAnyASCII/1:1-10 4.195n ± 1% 5.742n ± 1% +36.88% (p=0.002 n=6) |
| 499 |
IndexAnyASCII/1:2-10 5.436n ± 0% 7.340n ± 1% +35.05% (p=0.002 n=6) |
| 500 |
IndexAnyASCII/1:4-10 5.440n ± 0% 7.405n ± 3% +36.13% (p=0.002 n=6) |
| 501 |
IndexAnyASCII/1:8-10 5.377n ± 1% 7.428n ± 1% +38.14% (p=0.002 n=6) |
| 502 |
IndexAnyASCII/1:16-10 5.362n ± 1% 7.391n ± 0% +37.84% (p=0.002 n=6) |
| 503 |
IndexAnyASCII/1:32-10 5.374n ± 0% 7.724n ± 1% +43.72% (p=0.002 n=6) |
| 504 |
IndexAnyASCII/1:64-10 5.980n ± 1% 7.985n ± 1% +33.52% (p=0.002 n=6) |
| 505 |
IndexAnyASCII/16:1-10 4.046n ± 2% 5.809n ± 2% +43.57% (p=0.002 n=6) |
| 506 |
IndexAnyASCII/16:2-10 11.18n ± 1% 13.49n ± 1% +20.62% (p=0.002 n=6) |
| 507 |
IndexAnyASCII/16:4-10 12.40n ± 0% 15.47n ± 2% +24.81% (p=0.002 n=6) |
| 508 |
IndexAnyASCII/16:8-10 17.21n ± 1% 19.72n ± 3% +14.58% (p=0.002 n=6) |
| 509 |
IndexAnyASCII/16:16-10 33.90n ± 0% 34.49n ± 1% +1.74% (p=0.002 n=6) |
| 510 |
IndexAnyASCII/16:32-10 66.39n ± 0% 62.72n ± 1% -5.54% (p=0.002 n=6) |
| 511 |
IndexAnyASCII/16:64-10 131.5n ± 0% 126.6n ± 2% -3.73% (p=0.002 n=6) |
| 512 |
IndexAnyASCII/256:1-10 7.154n ± 0% 8.974n ± 1% +25.44% (p=0.002 n=6) |
| 513 |
IndexAnyASCII/256:2-10 149.8n ± 0% 154.9n ± 1% +3.44% (p=0.002 n=6) |
| 514 |
IndexAnyASCII/256:4-10 151.5n ± 1% 157.4n ± 1% +3.89% (p=0.002 n=6) |
| 515 |
IndexAnyASCII/256:8-10 156.2n ± 0% 162.5n ± 1% +3.97% (p=0.002 n=6) |
| 516 |
IndexAnyASCII/256:16-10 166.8n ± 0% 176.4n ± 1% +5.72% (p=0.002 n=6) |
| 517 |
IndexAnyASCII/256:32-10 199.6n ± 0% 207.5n ± 1% +3.98% (p=0.002 n=6) |
| 518 |
IndexAnyASCII/256:64-10 264.3n ± 0% 271.6n ± 1% +2.76% (p=0.002 n=6) |
| 519 |
IndexAnyUTF8/1:1-10 3.105n ± 1% 3.177n ± 1% +2.32% (p=0.002 n=6) |
| 520 |
IndexAnyUTF8/1:2-10 5.301n ± 1% 7.312n ± 0% +37.94% (p=0.002 n=6) |
| 521 |
IndexAnyUTF8/1:4-10 5.315n ± 1% 7.340n ± 1% +38.10% (p=0.002 n=6) |
| 522 |
IndexAnyUTF8/1:8-10 5.312n ± 1% 7.390n ± 1% +39.11% (p=0.002 n=6) |
| 523 |
IndexAnyUTF8/1:16-10 5.331n ± 1% 7.913n ± 2% +48.45% (p=0.002 n=6) |
| 524 |
IndexAnyUTF8/1:32-10 5.359n ± 0% 7.973n ± 1% +48.78% (p=0.002 n=6) |
| 525 |
IndexAnyUTF8/1:64-10 5.998n ± 1% 8.233n ± 1% +37.25% (p=0.002 n=6) |
| 526 |
IndexAnyUTF8/16:1-10 13.04n ± 0% 13.83n ± 1% +6.06% (p=0.002 n=6) |
| 527 |
IndexAnyUTF8/16:2-10 63.08n ± 0% 35.06n ± 1% -44.42% (p=0.002 n=6) |
| 528 |
IndexAnyUTF8/16:4-10 63.39n ± 1% 34.78n ± 0% -45.14% (p=0.002 n=6) |
| 529 |
IndexAnyUTF8/16:8-10 63.30n ± 0% 90.81n ± 2% +43.46% (p=0.002 n=6) |
| 530 |
IndexAnyUTF8/16:16-10 66.91n ± 2% 97.80n ± 2% +46.16% (p=0.002 n=6) |
| 531 |
IndexAnyUTF8/16:32-10 66.80n ± 1% 97.09n ± 2% +45.34% (p=0.002 n=6) |
| 532 |
IndexAnyUTF8/16:64-10 75.27n ± 1% 103.00n ± 1% +36.85% (p=0.002 n=6) |
| 533 |
IndexAnyUTF8/256:1-10 168.9n ± 0% 179.2n ± 1% +6.10% (p=0.002 n=6) |
| 534 |
IndexAnyUTF8/256:2-10 887.1n ± 1% 372.0n ± 1% -58.07% (p=0.002 n=6) |
| 535 |
IndexAnyUTF8/256:4-10 892.0n ± 6% 201.2n ± 1% -77.44% (p=0.002 n=6) |
| 536 |
IndexAnyUTF8/256:8-10 894.9n ± 0% 404.9n ± 1% -54.75% (p=0.002 n=6) |
| 537 |
IndexAnyUTF8/256:16-10 940.5n ± 0% 123.3n ± 0% -86.88% (p=0.002 n=6) |
| 538 |
IndexAnyUTF8/256:32-10 942.6n ± 2% 630.1n ± 1% -33.16% (p=0.002 n=6) |
| 539 |
IndexAnyUTF8/256:64-10 1063.0n ± 0% 730.6n ± 2% -31.27% (p=0.002 n=6) |
| 540 |
LastIndexAnyASCII/1:1-10 4.433n ± 1% 5.865n ± 1% +32.33% (p=0.002 n=6) |
| 541 |
LastIndexAnyASCII/1:2-10 4.430n ± 0% 5.872n ± 1% +32.55% (p=0.002 n=6) |
| 542 |
LastIndexAnyASCII/1:4-10 4.426n ± 1% 5.865n ± 0% +32.53% (p=0.002 n=6) |
| 543 |
LastIndexAnyASCII/1:8-10 4.428n ± 0% 5.885n ± 2% +32.92% (p=0.002 n=6) |
| 544 |
LastIndexAnyASCII/1:16-10 4.428n ± 0% 5.972n ± 1% +34.86% (p=0.002 n=6) |
| 545 |
LastIndexAnyASCII/1:32-10 4.433n ± 0% 6.282n ± 3% +41.71% (p=0.002 n=6) |
| 546 |
LastIndexAnyASCII/1:64-10 5.067n ± 1% 6.316n ± 1% +24.65% (p=0.002 n=6) |
| 547 |
LastIndexAnyASCII/16:1-10 10.29n ± 3% 11.59n ± 1% +12.58% (p=0.002 n=6) |
| 548 |
LastIndexAnyASCII/16:2-10 10.99n ± 0% 12.59n ± 1% +14.51% (p=0.002 n=6) |
| 549 |
LastIndexAnyASCII/16:4-10 12.27n ± 11% 14.53n ± 1% +18.42% (p=0.002 n=6) |
| 550 |
LastIndexAnyASCII/16:8-10 17.25n ± 1% 19.10n ± 1% +10.72% (p=0.002 n=6) |
| 551 |
LastIndexAnyASCII/16:16-10 33.81n ± 0% 34.14n ± 1% +0.96% (p=0.002 n=6) |
| 552 |
LastIndexAnyASCII/16:32-10 66.48n ± 0% 62.01n ± 1% -6.72% (p=0.002 n=6) |
| 553 |
LastIndexAnyASCII/16:64-10 131.7n ± 0% 125.8n ± 1% -4.48% (p=0.002 n=6) |
| 554 |
LastIndexAnyASCII/256:1-10 147.1n ± 0% 156.8n ± 1% +6.56% (p=0.002 n=6) |
| 555 |
LastIndexAnyASCII/256:2-10 146.6n ± 1% 154.8n ± 1% +5.63% (p=0.002 n=6) |
| 556 |
LastIndexAnyASCII/256:4-10 149.0n ± 0% 155.4n ± 1% +4.23% (p=0.002 n=6) |
| 557 |
LastIndexAnyASCII/256:8-10 153.1n ± 0% 160.4n ± 1% +4.84% (p=0.002 n=6) |
| 558 |
LastIndexAnyASCII/256:16-10 165.5n ± 0% 172.4n ± 1% +4.17% (p=0.002 n=6) |
| 559 |
LastIndexAnyASCII/256:32-10 197.7n ± 0% 210.4n ± 1% +6.42% (p=0.002 n=6) |
| 560 |
LastIndexAnyASCII/256:64-10 263.8n ± 0% 270.8n ± 0% +2.65% (p=0.002 n=6) |
| 561 |
LastIndexAnyUTF8/1:1-10 4.398n ± 1% 5.692n ± 0% +29.41% (p=0.002 n=6) |
| 562 |
LastIndexAnyUTF8/1:2-10 4.359n ± 1% 5.646n ± 0% +29.52% (p=0.002 n=6) |
| 563 |
LastIndexAnyUTF8/1:4-10 4.364n ± 2% 5.668n ± 1% +29.89% (p=0.002 n=6) |
| 564 |
LastIndexAnyUTF8/1:8-10 4.362n ± 1% 5.711n ± 0% +30.91% (p=0.002 n=6) |
| 565 |
LastIndexAnyUTF8/1:16-10 4.429n ± 0% 6.025n ± 1% +36.05% (p=0.002 n=6) |
| 566 |
LastIndexAnyUTF8/1:32-10 4.427n ± 0% 6.024n ± 0% +36.09% (p=0.002 n=6) |
| 567 |
LastIndexAnyUTF8/1:64-10 5.060n ± 1% 6.315n ± 1% +24.80% (p=0.002 n=6) |
| 568 |
LastIndexAnyUTF8/16:1-10 25.19n ± 1% 27.81n ± 1% +10.42% (p=0.002 n=6) |
| 569 |
LastIndexAnyUTF8/16:2-10 74.92n ± 0% 97.78n ± 2% +30.51% (p=0.002 n=6) |
| 570 |
LastIndexAnyUTF8/16:4-10 75.02n ± 1% 97.39n ± 1% +29.83% (p=0.002 n=6) |
| 571 |
LastIndexAnyUTF8/16:8-10 75.01n ± 0% 97.67n ± 1% +30.21% (p=0.002 n=6) |
| 572 |
LastIndexAnyUTF8/16:16-10 80.07n ± 0% 103.55n ± 1% +29.32% (p=0.002 n=6) |
| 573 |
LastIndexAnyUTF8/16:32-10 80.05n ± 0% 103.60n ± 1% +29.42% (p=0.002 n=6) |
| 574 |
LastIndexAnyUTF8/16:64-10 86.72n ± 0% 108.75n ± 1% +25.40% (p=0.002 n=6) |
| 575 |
LastIndexAnyUTF8/256:1-10 553.9n ± 0% 556.2n ± 1% ~ (p=0.102 n=6) |
| 576 |
LastIndexAnyUTF8/256:2-10 1.064µ ± 0% 1.393µ ± 1% +30.98% (p=0.002 n=6) |
| 577 |
LastIndexAnyUTF8/256:4-10 1.062µ ± 0% 1.392µ ± 1% +31.01% (p=0.002 n=6) |
| 578 |
LastIndexAnyUTF8/256:8-10 1.063µ ± 0% 1.388µ ± 1% +30.57% (p=0.002 n=6) |
| 579 |
LastIndexAnyUTF8/256:16-10 1.144µ ± 0% 1.478µ ± 1% +29.15% (p=0.002 n=6) |
| 580 |
LastIndexAnyUTF8/256:32-10 1.144µ ± 0% 1.483µ ± 1% +29.59% (p=0.002 n=6) |
| 581 |
LastIndexAnyUTF8/256:64-10 1.237µ ± 0% 1.565µ ± 1% +26.52% (p=0.002 n=6) |
| 582 |
IndexPeriodic/IndexPeriodic2-10 20.49µ ± 0% 62.58µ ± 0% +205.45% (p=0.002 n=6) |
| 583 |
IndexPeriodic/IndexPeriodic4-10 20.52µ ± 0% 57.41µ ± 1% +179.79% (p=0.002 n=6) |
| 584 |
IndexPeriodic/IndexPeriodic8-10 20.53µ ± 0% 54.92µ ± 0% +167.48% (p=0.002 n=6) |
| 585 |
IndexPeriodic/IndexPeriodic16-10 55.62µ ± 1% 64.69µ ± 1% +16.31% (p=0.002 n=6) |
| 586 |
IndexPeriodic/IndexPeriodic32-10 27.72µ ± 1% 32.38µ ± 0% +16.80% (p=0.002 n=6) |
| 587 |
IndexPeriodic/IndexPeriodic64-10 15.21µ ± 0% 16.76µ ± 1% +10.21% (p=0.002 n=6) |
| 588 |
IndexByte_Bytes/10-10 3.075n ± 0% 3.815n ± 0% +24.07% (p=0.002 n=6) |
| 589 |
IndexByte_Bytes/32-10 2.844n ± 0% 3.510n ± 1% +23.44% (p=0.002 n=6) |
| 590 |
IndexByte_Bytes/4K-10 71.52n ± 2% 80.02n ± 1% +11.90% (p=0.002 n=6) |
| 591 |
IndexByte_Bytes/4M-10 62.95µ ± 0% 74.11µ ± 1% +17.72% (p=0.002 n=6) |
| 592 |
IndexByte_Bytes/64M-10 1.110m ± 1% 1.211m ± 7% +9.10% (p=0.002 n=6) |
| 593 |
IndexRune_Bytes/10-10 10.57n ± 0% 12.46n ± 1% +17.83% (p=0.002 n=6) |
| 594 |
IndexRune_Bytes/32-10 11.81n ± 0% 12.42n ± 1% +5.21% (p=0.002 n=6) |
| 595 |
IndexRune_Bytes/4K-10 83.05n ± 1% 85.73n ± 1% +3.22% (p=0.002 n=6) |
| 596 |
IndexRune_Bytes/4M-10 63.88µ ± 0% 64.70µ ± 0% +1.29% (p=0.002 n=6) |
| 597 |
IndexRune_Bytes/64M-10 1.110m ± 0% 1.152m ± 5% +3.83% (p=0.002 n=6) |
| 598 |
IndexRuneASCII_Bytes/10-10 3.163n ± 0% 5.428n ± 0% +71.62% (p=0.002 n=6) |
| 599 |
IndexRuneASCII_Bytes/32-10 3.166n ± 0% 5.432n ± 1% +71.57% (p=0.002 n=6) |
| 600 |
IndexRuneASCII_Bytes/4K-10 71.84n ± 1% 83.24n ± 1% +15.88% (p=0.002 n=6) |
| 601 |
IndexRuneASCII_Bytes/4M-10 64.09µ ± 0% 74.33µ ± 0% +15.98% (p=0.002 n=6) |
| 602 |
IndexRuneASCII_Bytes/64M-10 1.112m ± 0% 1.245m ± 5% +11.95% (p=0.002 n=6) |
| 603 |
IndexNonASCII_Bytes/10-10 4.673n ± 0% 3.018n ± 2% -35.41% (p=0.002 n=6) |
| 604 |
IndexNonASCII_Bytes/32-10 11.535n ± 0% 2.872n ± 1% -75.10% (p=0.002 n=6) |
| 605 |
IndexNonASCII_Bytes/4K-10 1287.00n ± 1% 79.36n ± 1% -93.83% (p=0.002 n=6) |
| 606 |
IndexNonASCII_Bytes/4M-10 1323.89µ ± 0% 74.08µ ± 1% -94.40% (p=0.002 n=6) |
| 607 |
IndexNonASCII_Bytes/64M-10 21.442m ± 1% 1.213m ± 3% -94.34% (p=0.002 n=6) |
| 608 |
geomean 198.3n 224.5n +13.21% |
| 609 |
|
| 610 |
│ stdlib.5.1681417522.txt │ strcase.5.1681417522.txt │ |
| 611 |
│ B/s │ B/s vs base │ |
| 612 |
CountByte/10-10 1.384Gi ± 2% 1.227Gi ± 1% -11.32% (p=0.002 n=6) |
| 613 |
CountByte/32-10 9.418Gi ± 1% 7.176Gi ± 1% -23.81% (p=0.002 n=6) |
| 614 |
CountByte/4096-10 47.49Gi ± 0% 37.84Gi ± 1% -20.32% (p=0.002 n=6) |
| 615 |
CountByte/4194304-10 47.16Gi ± 2% 41.06Gi ± 10% -12.93% (p=0.002 n=6) |
| 616 |
CountByte/67108864-10 45.72Gi ± 2% 40.16Gi ± 4% -12.16% (p=0.002 n=6) |
| 617 |
IndexByte_Bytes/10-10 3.028Gi ± 0% 2.441Gi ± 0% -19.39% (p=0.002 n=6) |
| 618 |
IndexByte_Bytes/32-10 10.479Gi ± 0% 8.490Gi ± 1% -18.98% (p=0.002 n=6) |
| 619 |
IndexByte_Bytes/4K-10 53.34Gi ± 2% 47.67Gi ± 1% -10.63% (p=0.002 n=6) |
| 620 |
IndexByte_Bytes/4M-10 62.05Gi ± 0% 52.71Gi ± 1% -15.05% (p=0.002 n=6) |
| 621 |
IndexByte_Bytes/64M-10 56.32Gi ± 1% 51.62Gi ± 6% -8.34% (p=0.002 n=6) |
| 622 |
IndexRune_Bytes/10-10 901.9Mi ± 0% 765.7Mi ± 1% -15.11% (p=0.002 n=6) |
| 623 |
IndexRune_Bytes/32-10 2.525Gi ± 0% 2.400Gi ± 1% -4.96% (p=0.002 n=6) |
| 624 |
IndexRune_Bytes/4K-10 45.93Gi ± 1% 44.50Gi ± 1% -3.12% (p=0.002 n=6) |
| 625 |
IndexRune_Bytes/4M-10 61.15Gi ± 0% 60.37Gi ± 0% -1.27% (p=0.002 n=6) |
| 626 |
IndexRune_Bytes/64M-10 56.31Gi ± 0% 54.24Gi ± 5% -3.68% (p=0.002 n=6) |
| 627 |
IndexRuneASCII_Bytes/10-10 2.945Gi ± 0% 1.716Gi ± 0% -41.74% (p=0.002 n=6) |
| 628 |
IndexRuneASCII_Bytes/32-10 9.413Gi ± 0% 5.486Gi ± 1% -41.72% (p=0.002 n=6) |
| 629 |
IndexRuneASCII_Bytes/4K-10 53.10Gi ± 1% 45.83Gi ± 1% -13.70% (p=0.002 n=6) |
| 630 |
IndexRuneASCII_Bytes/4M-10 60.95Gi ± 0% 52.55Gi ± 0% -13.78% (p=0.002 n=6) |
| 631 |
IndexRuneASCII_Bytes/64M-10 56.21Gi ± 0% 50.22Gi ± 5% -10.67% (p=0.002 n=6) |
| 632 |
IndexNonASCII_Bytes/10-10 1.993Gi ± 0% 3.086Gi ± 2% +54.86% (p=0.002 n=6) |
| 633 |
IndexNonASCII_Bytes/32-10 2.583Gi ± 0% 10.377Gi ± 1% +301.71% (p=0.002 n=6) |
| 634 |
IndexNonASCII_Bytes/4K-10 2.963Gi ± 1% 48.067Gi ± 1% +1521.97% (p=0.002 n=6) |
| 635 |
IndexNonASCII_Bytes/4M-10 2.951Gi ± 0% 52.731Gi ± 1% +1687.12% (p=0.002 n=6) |
| 636 |
IndexNonASCII_Bytes/64M-10 2.915Gi ± 1% 51.541Gi ± 3% +1668.19% (p=0.002 n=6) |
| 637 |
geomean 12.32Gi 16.24Gi +31.83% |
| 638 |
``` |
| 639 |
|
| 640 |
</details> |
| 641 |
|
| 642 |
<details> |
| 643 |
<summary>amd64</summary> |
| 644 |
|
| 645 |
``` |
| 646 |
goos: linux |
| 647 |
goarch: amd64 |
| 648 |
pkg: github.com/charlievieth/strcase/internal/benchtest |
| 649 |
cpu: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz |
| 650 |
│ stdlib.5.1681426916.txt │ strcase.5.1681426916.txt │ |
| 651 |
│ sec/op │ sec/op vs base │ |
| 652 |
IndexRune-8 10.95n ± 1% 12.09n ± 0% +10.41% (p=0.008 n=5) |
| 653 |
IndexRuneLongString-8 14.83n ± 0% 13.19n ± 1% -11.06% (p=0.008 n=5) |
| 654 |
IndexRuneFastPath-8 3.726n ± 2% 6.431n ± 1% +72.60% (p=0.008 n=5) |
| 655 |
Index-8 4.206n ± 2% 6.593n ± 0% +56.75% (p=0.008 n=5) |
| 656 |
LastIndex-8 3.621n ± 1% 5.547n ± 0% +53.19% (p=0.008 n=5) |
| 657 |
IndexByte-8 2.835n ± 1% 4.564n ± 1% +60.99% (p=0.008 n=5) |
| 658 |
EqualFold/ASCII-8 8.269n ± 1% 8.777n ± 1% +6.14% (p=0.008 n=5) |
| 659 |
EqualFold/UnicodePrefix-8 84.69n ± 0% 37.79n ± 1% -55.38% (p=0.008 n=5) |
| 660 |
EqualFold/UnicodeSuffix-8 75.96n ± 1% 28.75n ± 1% -62.15% (p=0.008 n=5) |
| 661 |
IndexHard1-8 79.80µ ± 1% 79.67µ ± 1% ~ (p=0.421 n=5) |
| 662 |
IndexHard2-8 111.8µ ± 0% 2217.6µ ± 1% +1883.07% (p=0.008 n=5) |
| 663 |
IndexHard3-8 450.1µ ± 1% 2070.0µ ± 1% +359.95% (p=0.008 n=5) |
| 664 |
IndexHard4-8 447.3µ ± 0% 1573.6µ ± 0% +251.81% (p=0.008 n=5) |
| 665 |
LastIndexHard1-8 1.134m ± 1% 1.580m ± 1% +39.28% (p=0.008 n=5) |
| 666 |
LastIndexHard2-8 1.133m ± 0% 1.579m ± 2% +39.38% (p=0.008 n=5) |
| 667 |
LastIndexHard3-8 1.130m ± 0% 1.578m ± 1% +39.60% (p=0.008 n=5) |
| 668 |
CountHard1-8 79.66µ ± 1% 79.82µ ± 2% ~ (p=0.286 n=5) |
| 669 |
CountHard2-8 111.8µ ± 0% 2226.7µ ± 1% +1890.99% (p=0.008 n=5) |
| 670 |
CountHard3-8 447.7µ ± 1% 2071.9µ ± 2% +362.77% (p=0.008 n=5) |
| 671 |
IndexTorture-8 8.706µ ± 0% 16.883µ ± 1% +93.92% (p=0.008 n=5) |
| 672 |
CountTorture-8 8.693µ ± 1% 18.808µ ± 1% +116.36% (p=0.008 n=5) |
| 673 |
CountTortureOverlapping-8 66.40µ ± 5% 3721.27µ ± 1% +5504.57% (p=0.008 n=5) |
| 674 |
CountByte/10-8 3.587n ± 1% 5.299n ± 1% +47.73% (p=0.008 n=5) |
| 675 |
CountByte/32-8 4.848n ± 0% 6.037n ± 0% +24.53% (p=0.008 n=5) |
| 676 |
CountByte/4K-8 64.04n ± 0% 70.51n ± 1% +10.10% (p=0.008 n=5) |
| 677 |
CountByte/4M-8 84.81µ ± 2% 91.86µ ± 3% +8.31% (p=0.008 n=5) |
| 678 |
CountByte/64M-8 2.889m ± 8% 3.093m ± 4% ~ (p=0.056 n=5) |
| 679 |
IndexAnyASCII/1:1-8 4.462n ± 1% 6.584n ± 1% +47.56% (p=0.008 n=5) |
| 680 |
IndexAnyASCII/1:2-8 5.435n ± 1% 8.856n ± 0% +62.94% (p=0.008 n=5) |
| 681 |
IndexAnyASCII/1:4-8 5.415n ± 1% 8.823n ± 0% +62.94% (p=0.008 n=5) |
| 682 |
IndexAnyASCII/1:8-8 5.417n ± 1% 8.855n ± 0% +63.47% (p=0.008 n=5) |
| 683 |
IndexAnyASCII/1:16-8 5.350n ± 1% 8.147n ± 0% +52.28% (p=0.008 n=5) |
| 684 |
IndexAnyASCII/1:32-8 5.912n ± 0% 10.700n ± 21% +80.99% (p=0.008 n=5) |
| 685 |
IndexAnyASCII/1:64-8 6.232n ± 1% 9.131n ± 40% +46.52% (p=0.008 n=5) |
| 686 |
IndexAnyASCII/16:1-8 4.331n ± 1% 6.431n ± 4% +48.49% (p=0.008 n=5) |
| 687 |
IndexAnyASCII/16:2-8 14.35n ± 1% 17.73n ± 4% +23.55% (p=0.008 n=5) |
| 688 |
IndexAnyASCII/16:4-8 16.12n ± 0% 18.97n ± 3% +17.68% (p=0.008 n=5) |
| 689 |
IndexAnyASCII/16:8-8 20.57n ± 1% 22.62n ± 0% +9.97% (p=0.008 n=5) |
| 690 |
IndexAnyASCII/16:16-8 27.11n ± 1% 32.80n ± 1% +20.99% (p=0.008 n=5) |
| 691 |
IndexAnyASCII/16:32-8 45.47n ± 0% 57.04n ± 1% +25.45% (p=0.008 n=5) |
| 692 |
IndexAnyASCII/16:64-8 72.05n ± 0% 95.18n ± 1% +32.10% (p=0.008 n=5) |
| 693 |
IndexAnyASCII/256:1-8 8.445n ± 0% 10.690n ± 0% +26.58% (p=0.008 n=5) |
| 694 |
IndexAnyASCII/256:2-8 131.6n ± 0% 134.5n ± 2% +2.20% (p=0.008 n=5) |
| 695 |
IndexAnyASCII/256:4-8 134.0n ± 0% 136.9n ± 1% +2.16% (p=0.008 n=5) |
| 696 |
IndexAnyASCII/256:8-8 138.4n ± 1% 141.1n ± 0% +1.95% (p=0.008 n=5) |
| 697 |
IndexAnyASCII/256:16-8 143.6n ± 0% 152.1n ± 0% +5.92% (p=0.008 n=5) |
| 698 |
IndexAnyASCII/256:32-8 160.9n ± 1% 180.4n ± 1% +12.12% (p=0.008 n=5) |
| 699 |
IndexAnyASCII/256:64-8 185.8n ± 0% 218.9n ± 1% +17.81% (p=0.008 n=5) |
| 700 |
IndexAnyUTF8/1:1-8 3.395n ± 1% 3.643n ± 0% +7.30% (p=0.008 n=5) |
| 701 |
IndexAnyUTF8/1:2-8 5.426n ± 0% 8.939n ± 1% +64.74% (p=0.008 n=5) |
| 702 |
IndexAnyUTF8/1:4-8 5.400n ± 2% 8.937n ± 1% +65.50% (p=0.008 n=5) |
| 703 |
IndexAnyUTF8/1:8-8 5.405n ± 1% 8.906n ± 0% +64.77% (p=0.008 n=5) |
| 704 |
IndexAnyUTF8/1:16-8 5.358n ± 1% 8.068n ± 1% +50.58% (p=0.008 n=5) |
| 705 |
IndexAnyUTF8/1:32-8 5.900n ± 0% 8.354n ± 1% +41.59% (p=0.008 n=5) |
| 706 |
IndexAnyUTF8/1:64-8 6.243n ± 0% 8.850n ± 1% +41.76% (p=0.008 n=5) |
| 707 |
IndexAnyUTF8/16:1-8 13.28n ± 2% 13.59n ± 8% ~ (p=0.056 n=5) |
| 708 |
IndexAnyUTF8/16:2-8 62.27n ± 0% 33.34n ± 1% -46.46% (p=0.008 n=5) |
| 709 |
IndexAnyUTF8/16:4-8 62.27n ± 0% 34.74n ± 1% -44.21% (p=0.008 n=5) |
| 710 |
IndexAnyUTF8/16:8-8 62.31n ± 0% 101.40n ± 1% +62.73% (p=0.008 n=5) |
| 711 |
IndexAnyUTF8/16:16-8 63.48n ± 0% 97.99n ± 1% +54.36% (p=0.008 n=5) |
| 712 |
IndexAnyUTF8/16:32-8 71.60n ± 0% 103.90n ± 1% +45.11% (p=0.008 n=5) |
| 713 |
IndexAnyUTF8/16:64-8 76.67n ± 1% 111.30n ± 2% +45.17% (p=0.008 n=5) |
| 714 |
IndexAnyUTF8/256:1-8 170.6n ± 0% 170.3n ± 1% ~ (p=0.143 n=5) |
| 715 |
IndexAnyUTF8/256:2-8 877.8n ± 1% 354.3n ± 0% -59.64% (p=0.008 n=5) |
| 716 |
IndexAnyUTF8/256:4-8 874.7n ± 1% 195.6n ± 1% -77.64% (p=0.008 n=5) |
| 717 |
IndexAnyUTF8/256:8-8 876.9n ± 0% 389.7n ± 1% -55.56% (p=0.008 n=5) |
| 718 |
IndexAnyUTF8/256:16-8 883.6n ± 0% 121.2n ± 1% -86.28% (p=0.008 n=5) |
| 719 |
IndexAnyUTF8/256:32-8 1006.0n ± 0% 641.4n ± 1% -36.24% (p=0.008 n=5) |
| 720 |
IndexAnyUTF8/256:64-8 1096.0n ± 0% 757.3n ± 1% -30.90% (p=0.008 n=5) |
| 721 |
LastIndexAnyASCII/1:1-8 4.829n ± 1% 7.173n ± 1% +48.54% (p=0.008 n=5) |
| 722 |
LastIndexAnyASCII/1:2-8 4.814n ± 1% 7.162n ± 1% +48.77% (p=0.008 n=5) |
| 723 |
LastIndexAnyASCII/1:4-8 4.818n ± 1% 7.167n ± 2% +48.75% (p=0.008 n=5) |
| 724 |
LastIndexAnyASCII/1:8-8 4.809n ± 1% 7.196n ± 1% +49.64% (p=0.008 n=5) |
| 725 |
LastIndexAnyASCII/1:16-8 4.500n ± 0% 6.571n ± 1% +46.02% (p=0.008 n=5) |
| 726 |
LastIndexAnyASCII/1:32-8 4.900n ± 1% 6.819n ± 1% +39.16% (p=0.008 n=5) |
| 727 |
LastIndexAnyASCII/1:64-8 5.128n ± 1% 7.309n ± 0% +42.53% (p=0.008 n=5) |
| 728 |
LastIndexAnyASCII/16:1-8 13.82n ± 1% 16.80n ± 1% +21.56% (p=0.008 n=5) |
| 729 |
LastIndexAnyASCII/16:2-8 14.47n ± 1% 16.98n ± 1% +17.35% (p=0.008 n=5) |
| 730 |
LastIndexAnyASCII/16:4-8 16.30n ± 0% 18.33n ± 1% +12.45% (p=0.008 n=5) |
| 731 |
LastIndexAnyASCII/16:8-8 21.19n ± 1% 21.97n ± 1% +3.68% (p=0.008 n=5) |
| 732 |
LastIndexAnyASCII/16:16-8 26.91n ± 0% 33.26n ± 3% +23.60% (p=0.008 n=5) |
| 733 |
LastIndexAnyASCII/16:32-8 44.98n ± 0% 55.87n ± 1% +24.21% (p=0.008 n=5) |
| 734 |
LastIndexAnyASCII/16:64-8 71.95n ± 0% 93.77n ± 1% +30.33% (p=0.008 n=5) |
| 735 |
LastIndexAnyASCII/256:1-8 130.9n ± 1% 132.5n ± 1% +1.22% (p=0.008 n=5) |
| 736 |
LastIndexAnyASCII/256:2-8 131.8n ± 1% 133.2n ± 1% +1.06% (p=0.008 n=5) |
| 737 |
LastIndexAnyASCII/256:4-8 134.1n ± 0% 135.6n ± 1% +1.12% (p=0.008 n=5) |
| 738 |
LastIndexAnyASCII/256:8-8 137.8n ± 1% 139.5n ± 1% +1.23% (p=0.008 n=5) |
| 739 |
LastIndexAnyASCII/256:16-8 143.3n ± 0% 150.2n ± 1% +4.82% (p=0.008 n=5) |
| 740 |
LastIndexAnyASCII/256:32-8 160.1n ± 0% 178.6n ± 1% +11.56% (p=0.008 n=5) |
| 741 |
LastIndexAnyASCII/256:64-8 185.3n ± 1% 217.3n ± 1% +17.27% (p=0.008 n=5) |
| 742 |
LastIndexAnyUTF8/1:1-8 4.841n ± 0% 7.195n ± 1% +48.63% (p=0.008 n=5) |
| 743 |
LastIndexAnyUTF8/1:2-8 4.842n ± 1% 7.172n ± 0% +48.12% (p=0.008 n=5) |
| 744 |
LastIndexAnyUTF8/1:4-8 4.840n ± 0% 7.161n ± 1% +47.95% (p=0.008 n=5) |
| 745 |
LastIndexAnyUTF8/1:8-8 4.831n ± 0% 7.157n ± 0% +48.15% (p=0.008 n=5) |
| 746 |
LastIndexAnyUTF8/1:16-8 4.485n ± 0% 6.563n ± 1% +46.33% (p=0.008 n=5) |
| 747 |
LastIndexAnyUTF8/1:32-8 4.896n ± 0% 6.817n ± 1% +39.24% (p=0.008 n=5) |
| 748 |
LastIndexAnyUTF8/1:64-8 5.145n ± 0% 7.308n ± 1% +42.04% (p=0.008 n=5) |
| 749 |
LastIndexAnyUTF8/16:1-8 30.13n ± 1% 27.98n ± 2% -7.14% (p=0.008 n=5) |
| 750 |
LastIndexAnyUTF8/16:2-8 80.13n ± 0% 111.70n ± 1% +39.40% (p=0.008 n=5) |
| 751 |
LastIndexAnyUTF8/16:4-8 80.12n ± 0% 112.30n ± 1% +40.16% (p=0.008 n=5) |
| 752 |
LastIndexAnyUTF8/16:8-8 80.21n ± 0% 111.60n ± 0% +39.13% (p=0.008 n=5) |
| 753 |
LastIndexAnyUTF8/16:16-8 81.12n ± 0% 109.20n ± 1% +34.62% (p=0.008 n=5) |
| 754 |
LastIndexAnyUTF8/16:32-8 89.54n ± 0% 119.00n ± 1% +32.90% (p=0.008 n=5) |
| 755 |
LastIndexAnyUTF8/16:64-8 92.18n ± 1% 130.20n ± 1% +41.25% (p=0.008 n=5) |
| 756 |
LastIndexAnyUTF8/256:1-8 443.5n ± 1% 391.9n ± 1% -11.63% (p=0.008 n=5) |
| 757 |
LastIndexAnyUTF8/256:2-8 1.130µ ± 0% 1.591µ ± 2% +40.80% (p=0.008 n=5) |
| 758 |
LastIndexAnyUTF8/256:4-8 1.130µ ± 1% 1.593µ ± 1% +40.97% (p=0.008 n=5) |
| 759 |
LastIndexAnyUTF8/256:8-8 1.129µ ± 1% 1.590µ ± 1% +40.83% (p=0.008 n=5) |
| 760 |
LastIndexAnyUTF8/256:16-8 1.156µ ± 0% 1.582µ ± 2% +36.85% (p=0.008 n=5) |
| 761 |
LastIndexAnyUTF8/256:32-8 1.285µ ± 1% 1.749µ ± 1% +36.11% (p=0.008 n=5) |
| 762 |
LastIndexAnyUTF8/256:64-8 1.331µ ± 1% 1.910µ ± 1% +43.50% (p=0.008 n=5) |
| 763 |
IndexPeriodic/IndexPeriodic2-8 5.042µ ± 0% 56.941µ ± 1% +1029.33% (p=0.008 n=5) |
| 764 |
IndexPeriodic/IndexPeriodic4-8 5.041µ ± 1% 55.882µ ± 0% +1008.55% (p=0.008 n=5) |
| 765 |
IndexPeriodic/IndexPeriodic8-8 58.03µ ± 1% 91.47µ ± 1% +57.62% (p=0.008 n=5) |
| 766 |
IndexPeriodic/IndexPeriodic16-8 28.46µ ± 4% 45.73µ ± 0% +60.67% (p=0.008 n=5) |
| 767 |
IndexPeriodic/IndexPeriodic32-8 14.74µ ± 4% 22.99µ ± 2% +56.05% (p=0.008 n=5) |
| 768 |
IndexPeriodic/IndexPeriodic64-8 8.678µ ± 9% 12.441µ ± 4% +43.36% (p=0.008 n=5) |
| 769 |
IndexByte_Bytes/10-8 3.037n ± 0% 3.935n ± 1% +29.57% (p=0.008 n=5) |
| 770 |
IndexByte_Bytes/32-8 3.851n ± 1% 4.669n ± 0% +21.24% (p=0.008 n=5) |
| 771 |
IndexByte_Bytes/4K-8 61.10n ± 0% 75.10n ± 1% +22.91% (p=0.008 n=5) |
| 772 |
IndexByte_Bytes/4M-8 89.35µ ± 1% 95.83µ ± 4% +7.25% (p=0.008 n=5) |
| 773 |
IndexByte_Bytes/64M-8 2.855m ± 10% 3.024m ± 6% ~ (p=0.151 n=5) |
| 774 |
IndexRune_Bytes/10-8 10.57n ± 1% 12.59n ± 0% +19.11% (p=0.008 n=5) |
| 775 |
IndexRune_Bytes/32-8 11.88n ± 1% 13.36n ± 1% +12.46% (p=0.008 n=5) |
| 776 |
IndexRune_Bytes/4K-8 81.27n ± 0% 80.24n ± 1% -1.27% (p=0.008 n=5) |
| 777 |
IndexRune_Bytes/4M-8 102.29µ ± 2% 99.42µ ± 3% ~ (p=0.310 n=5) |
| 778 |
IndexRune_Bytes/64M-8 3.016m ± 2% 3.004m ± 3% ~ (p=0.421 n=5) |
| 779 |
IndexRuneASCII_Bytes/10-8 3.177n ± 0% 6.011n ± 1% +89.20% (p=0.008 n=5) |
| 780 |
IndexRuneASCII_Bytes/32-8 3.882n ± 1% 6.901n ± 1% +77.77% (p=0.008 n=5) |
| 781 |
IndexRuneASCII_Bytes/4K-8 61.08n ± 0% 74.61n ± 0% +22.15% (p=0.008 n=5) |
| 782 |
IndexRuneASCII_Bytes/4M-8 92.13µ ± 5% 97.13µ ± 2% +5.43% (p=0.008 n=5) |
| 783 |
IndexRuneASCII_Bytes/64M-8 2.873m ± 2% 3.142m ± 7% +9.35% (p=0.032 n=5) |
| 784 |
IndexNonASCII_Bytes/10-8 3.401n ± 0% 2.988n ± 1% -12.14% (p=0.008 n=5) |
| 785 |
IndexNonASCII_Bytes/32-8 8.846n ± 1% 3.620n ± 1% -59.08% (p=0.008 n=5) |
| 786 |
IndexNonASCII_Bytes/4K-8 895.00n ± 1% 71.40n ± 1% -92.02% (p=0.008 n=5) |
| 787 |
IndexNonASCII_Bytes/4M-8 908.49µ ± 2% 94.63µ ± 4% -89.58% (p=0.008 n=5) |
| 788 |
IndexNonASCII_Bytes/64M-8 15.038m ± 3% 3.094m ± 7% -79.43% (p=0.008 n=5) |
| 789 |
geomean 188.6n 239.4n +26.96% |
| 790 |
|
| 791 |
│ stdlib.5.1681426916.txt │ strcase.5.1681426916.txt │ |
| 792 |
│ B/s │ B/s vs base │ |
| 793 |
CountByte/10-8 2.596Gi ± 1% 1.757Gi ± 1% -32.31% (p=0.008 n=5) |
| 794 |
CountByte/32-8 6.148Gi ± 0% 4.937Gi ± 0% -19.69% (p=0.008 n=5) |
| 795 |
CountByte/4K-8 59.56Gi ± 0% 54.10Gi ± 1% -9.18% (p=0.008 n=5) |
| 796 |
CountByte/4M-8 46.06Gi ± 2% 42.52Gi ± 3% -7.67% (p=0.008 n=5) |
| 797 |
CountByte/64M-8 21.63Gi ± 8% 20.20Gi ± 4% ~ (p=0.056 n=5) |
| 798 |
IndexByte_Bytes/10-8 3.066Gi ± 0% 2.367Gi ± 1% -22.81% (p=0.008 n=5) |
| 799 |
IndexByte_Bytes/32-8 7.739Gi ± 1% 6.384Gi ± 0% -17.51% (p=0.008 n=5) |
| 800 |
IndexByte_Bytes/4K-8 62.44Gi ± 0% 50.79Gi ± 1% -18.65% (p=0.008 n=5) |
| 801 |
IndexByte_Bytes/4M-8 43.72Gi ± 1% 40.76Gi ± 3% -6.76% (p=0.008 n=5) |
| 802 |
IndexByte_Bytes/64M-8 21.89Gi ± 9% 20.67Gi ± 6% ~ (p=0.151 n=5) |
| 803 |
IndexRune_Bytes/10-8 902.2Mi ± 1% 757.4Mi ± 0% -16.05% (p=0.008 n=5) |
| 804 |
IndexRune_Bytes/32-8 2.509Gi ± 1% 2.230Gi ± 1% -11.11% (p=0.008 n=5) |
| 805 |
IndexRune_Bytes/4K-8 46.94Gi ± 0% 47.54Gi ± 1% +1.28% (p=0.008 n=5) |
| 806 |
IndexRune_Bytes/4M-8 38.19Gi ± 2% 39.29Gi ± 3% ~ (p=0.310 n=5) |
| 807 |
IndexRune_Bytes/64M-8 20.72Gi ± 2% 20.81Gi ± 3% ~ (p=0.421 n=5) |
| 808 |
IndexRuneASCII_Bytes/10-8 2.931Gi ± 0% 1.549Gi ± 1% -47.14% (p=0.008 n=5) |
| 809 |
IndexRuneASCII_Bytes/32-8 7.677Gi ± 1% 4.319Gi ± 1% -43.74% (p=0.008 n=5) |
| 810 |
IndexRuneASCII_Bytes/4K-8 62.45Gi ± 0% 51.13Gi ± 0% -18.13% (p=0.008 n=5) |
| 811 |
IndexRuneASCII_Bytes/4M-8 42.40Gi ± 5% 40.22Gi ± 2% -5.15% (p=0.008 n=5) |
| 812 |
IndexRuneASCII_Bytes/64M-8 21.75Gi ± 2% 19.89Gi ± 8% -8.55% (p=0.032 n=5) |
| 813 |
IndexNonASCII_Bytes/10-8 2.738Gi ± 0% 3.117Gi ± 1% +13.84% (p=0.008 n=5) |
| 814 |
IndexNonASCII_Bytes/32-8 3.369Gi ± 1% 8.232Gi ± 1% +144.33% (p=0.008 n=5) |
| 815 |
IndexNonASCII_Bytes/4K-8 4.262Gi ± 1% 53.429Gi ± 1% +1153.52% (p=0.008 n=5) |
| 816 |
IndexNonASCII_Bytes/4M-8 4.300Gi ± 2% 41.278Gi ± 4% +860.01% (p=0.008 n=5) |
| 817 |
IndexNonASCII_Bytes/64M-8 4.156Gi ± 3% 20.200Gi ± 7% +386.03% (p=0.008 n=5) |
| 818 |
geomean 10.97Gi 12.85Gi +17.13% |
| 819 |
``` |
| 820 |
|
| 821 |
</details> |
| 822 |
|
| 823 |
<details> |
| 824 |
<summary>arm (pi)</summary> |
| 825 |
|
| 826 |
``` |
| 827 |
goos: linux |
| 828 |
goarch: arm |
| 829 |
pkg: github.com/charlievieth/strcase/internal/benchtest |
| 830 |
│ stdlib.5.1681426807.txt │ strcase.5.1681426807.txt │ |
| 831 |
│ sec/op │ sec/op vs base │ |
| 832 |
IndexRune-4 120.0n ± 1% 112.3n ± 3% -6.46% (p=0.002 n=6) |
| 833 |
IndexRuneLongString-4 298.4n ± 1% 286.7n ± 1% -3.94% (p=0.002 n=6) |
| 834 |
IndexRuneFastPath-4 78.38n ± 18% 69.51n ± 3% ~ (p=0.180 n=6) |
| 835 |
Index-4 77.23n ± 30% 71.47n ± 1% ~ (p=0.589 n=6) |
| 836 |
LastIndex-4 22.52n ± 3% 34.44n ± 10% +52.96% (p=0.002 n=6) |
| 837 |
IndexByte-4 49.02n ± 9% 62.13n ± 1% +26.76% (p=0.002 n=6) |
| 838 |
EqualFold/ASCII-4 64.32n ± 1% 69.51n ± 1% +8.07% (p=0.002 n=6) |
| 839 |
EqualFold/UnicodePrefix-4 636.3n ± 0% 234.8n ± 0% -63.09% (p=0.002 n=6) |
| 840 |
EqualFold/UnicodeSuffix-4 585.9n ± 0% 190.6n ± 0% -67.47% (p=0.002 n=6) |
| 841 |
IndexHard1-4 5.684m ± 1% 5.674m ± 0% -0.16% (p=0.015 n=6) |
| 842 |
IndexHard2-4 5.715m ± 0% 9.439m ± 0% +65.15% (p=0.002 n=6) |
| 843 |
IndexHard3-4 5.705m ± 0% 8.681m ± 2% +52.16% (p=0.002 n=6) |
| 844 |
IndexHard4-4 5.726m ± 3% 9.271m ± 0% +61.92% (p=0.002 n=6) |
| 845 |
LastIndexHard1-4 4.631m ± 1% 10.070m ± 1% +117.46% (p=0.002 n=6) |
| 846 |
LastIndexHard2-4 4.667m ± 3% 10.073m ± 1% +115.86% (p=0.002 n=6) |
| 847 |
LastIndexHard3-4 4.634m ± 3% 10.115m ± 0% +118.27% (p=0.002 n=6) |
| 848 |
CountHard1-4 5.680m ± 0% 5.681m ± 4% ~ (p=0.699 n=6) |
| 849 |
CountHard2-4 5.698m ± 0% 9.433m ± 0% +65.54% (p=0.002 n=6) |
| 850 |
CountHard3-4 5.856m ± 3% 8.690m ± 5% +48.39% (p=0.002 n=6) |
| 851 |
IndexTorture-4 43.41µ ± 1% 116.26µ ± 0% +167.81% (p=0.002 n=6) |
| 852 |
CountTorture-4 43.44µ ± 0% 126.59µ ± 0% +191.43% (p=0.002 n=6) |
| 853 |
CountTortureOverlapping-4 1.197m ± 1% 28.433m ± 1% +2275.73% (p=0.002 n=6) |
| 854 |
CountByte/10-4 41.48n ± 3% 45.49n ± 3% +9.65% (p=0.002 n=6) |
| 855 |
CountByte/32-4 70.84n ± 0% 121.95n ± 3% +72.14% (p=0.002 n=6) |
| 856 |
CountByte/4K-4 5.543µ ± 3% 14.107µ ± 1% +154.52% (p=0.002 n=6) |
| 857 |
CountByte/4M-4 5.782m ± 3% 14.391m ± 9% +148.87% (p=0.002 n=6) |
| 858 |
CountByte/64M-4 125.8m ± 1% 287.1m ± 9% +128.16% (p=0.002 n=6) |
| 859 |
IndexAnyASCII/1:1-4 68.25n ± 3% 108.35n ± 1% +58.77% (p=0.002 n=6) |
| 860 |
IndexAnyASCII/1:2-4 57.10n ± 3% 98.97n ± 1% +73.33% (p=0.002 n=6) |
| 861 |
IndexAnyASCII/1:4-4 60.79n ± 2% 103.20n ± 2% +69.76% (p=0.002 n=6) |
| 862 |
IndexAnyASCII/1:8-4 65.47n ± 2% 108.40n ± 1% +65.57% (p=0.002 n=6) |
| 863 |
IndexAnyASCII/1:16-4 92.55n ± 13% 132.75n ± 11% +43.44% (p=0.002 n=6) |
| 864 |
IndexAnyASCII/1:32-4 114.8n ± 2% 161.9n ± 2% +41.03% (p=0.002 n=6) |
| 865 |
IndexAnyASCII/1:64-4 167.5n ± 1% 212.1n ± 1% +26.66% (p=0.002 n=6) |
| 866 |
IndexAnyASCII/16:1-4 71.73n ± 2% 112.80n ± 5% +57.25% (p=0.002 n=6) |
| 867 |
IndexAnyASCII/16:2-4 101.6n ± 0% 132.7n ± 1% +30.55% (p=0.002 n=6) |
| 868 |
IndexAnyASCII/16:4-4 110.0n ± 3% 146.6n ± 0% +33.27% (p=0.002 n=6) |
| 869 |
IndexAnyASCII/16:8-4 128.2n ± 3% 171.8n ± 1% +34.01% (p=0.002 n=6) |
| 870 |
IndexAnyASCII/16:16-4 165.4n ± 2% 246.4n ± 2% +48.97% (p=0.002 n=6) |
| 871 |
IndexAnyASCII/16:32-4 259.4n ± 0% 450.6n ± 0% +73.69% (p=0.002 n=6) |
| 872 |
IndexAnyASCII/16:64-4 411.8n ± 0% 752.1n ± 0% +82.64% (p=0.002 n=6) |
| 873 |
IndexAnyASCII/256:1-4 473.2n ± 0% 516.0n ± 0% +9.06% (p=0.002 n=6) |
| 874 |
IndexAnyASCII/256:2-4 917.6n ± 0% 948.1n ± 0% +3.32% (p=0.002 n=6) |
| 875 |
IndexAnyASCII/256:4-4 924.1n ± 3% 960.1n ± 3% +3.89% (p=0.002 n=6) |
| 876 |
IndexAnyASCII/256:8-4 942.3n ± 0% 985.9n ± 0% +4.62% (p=0.002 n=6) |
| 877 |
IndexAnyASCII/256:16-4 982.3n ± 3% 1059.0n ± 1% +7.81% (p=0.002 n=6) |
| 878 |
IndexAnyASCII/256:32-4 1.075µ ± 1% 1.777µ ± 3% +65.30% (p=0.002 n=6) |
| 879 |
IndexAnyASCII/256:64-4 1.226µ ± 0% 2.076µ ± 0% +69.40% (p=0.002 n=6) |
| 880 |
IndexAnyUTF8/1:1-4 21.38n ± 0% 18.42n ± 1% -13.87% (p=0.002 n=6) |
| 881 |
IndexAnyUTF8/1:2-4 58.02n ± 5% 99.98n ± 1% +72.32% (p=0.002 n=6) |
| 882 |
IndexAnyUTF8/1:4-4 60.71n ± 3% 102.95n ± 1% +69.58% (p=0.002 n=6) |
| 883 |
IndexAnyUTF8/1:8-4 65.74n ± 3% 107.45n ± 1% +63.43% (p=0.002 n=6) |
| 884 |
IndexAnyUTF8/1:16-4 81.01n ± 6% 122.05n ± 12% +50.66% (p=0.002 n=6) |
| 885 |
IndexAnyUTF8/1:32-4 115.2n ± 1% 160.8n ± 1% +39.57% (p=0.002 n=6) |
| 886 |
IndexAnyUTF8/1:64-4 167.2n ± 1% 212.3n ± 2% +27.04% (p=0.002 n=6) |
| 887 |
IndexAnyUTF8/16:1-4 75.35n ± 13% 80.66n ± 13% ~ (p=0.310 n=6) |
| 888 |
IndexAnyUTF8/16:2-4 571.6n ± 8% 243.7n ± 2% -57.36% (p=0.002 n=6) |
| 889 |
IndexAnyUTF8/16:4-4 655.2n ± 6% 274.2n ± 1% -58.15% (p=0.002 n=6) |
| 890 |
IndexAnyUTF8/16:8-4 746.5n ± 3% 1418.5n ± 2% +90.02% (p=0.002 n=6) |
| 891 |
IndexAnyUTF8/16:16-4 922.1n ± 0% 1599.0n ± 11% +73.41% (p=0.002 n=6) |
| 892 |
IndexAnyUTF8/16:32-4 1.570µ ± 2% 2.267µ ± 1% +44.36% (p=0.002 n=6) |
| 893 |
IndexAnyUTF8/16:64-4 2.404µ ± 1% 3.065µ ± 1% +27.50% (p=0.002 n=6) |
| 894 |
IndexAnyUTF8/256:1-4 882.8n ± 0% 879.2n ± 0% -0.40% (p=0.002 n=6) |
| 895 |
IndexAnyUTF8/256:2-4 8.575µ ± 6% 1.865µ ± 1% -78.25% (p=0.002 n=6) |
| 896 |
IndexAnyUTF8/256:4-4 9.643µ ± 5% 1.486µ ± 0% -84.59% (p=0.002 n=6) |
| 897 |
IndexAnyUTF8/256:8-4 11.164µ ± 4% 2.926µ ± 0% -73.80% (p=0.002 n=6) |
| 898 |
IndexAnyUTF8/256:16-4 13.915µ ± 0% 4.702µ ± 0% -66.21% (p=0.002 n=6) |
| 899 |
IndexAnyUTF8/256:32-4 24.39µ ± 2% 14.45µ ± 3% -40.74% (p=0.002 n=6) |
| 900 |
IndexAnyUTF8/256:64-4 37.62µ ± 1% 27.55µ ± 3% -26.78% (p=0.002 n=6) |
| 901 |
LastIndexAnyASCII/1:1-4 69.11n ± 2% 111.15n ± 3% +60.83% (p=0.002 n=6) |
| 902 |
LastIndexAnyASCII/1:2-4 53.51n ± 3% 94.23n ± 0% +76.10% (p=0.002 n=6) |
| 903 |
LastIndexAnyASCII/1:4-4 56.18n ± 3% 97.55n ± 3% +73.63% (p=0.002 n=6) |
| 904 |
LastIndexAnyASCII/1:8-4 60.98n ± 1% 102.20n ± 0% +67.58% (p=0.002 n=6) |
| 905 |
LastIndexAnyASCII/1:16-4 72.90n ± 3% 112.95n ± 0% +54.94% (p=0.002 n=6) |
| 906 |
LastIndexAnyASCII/1:32-4 111.6n ± 2% 153.7n ± 2% +37.72% (p=0.002 n=6) |
| 907 |
LastIndexAnyASCII/1:64-4 163.2n ± 1% 201.8n ± 2% +23.62% (p=0.002 n=6) |
| 908 |
LastIndexAnyASCII/16:1-4 113.8n ± 3% 142.8n ± 1% +25.53% (p=0.002 n=6) |
| 909 |
LastIndexAnyASCII/16:2-4 119.7n ± 0% 152.5n ± 3% +27.36% (p=0.002 n=6) |
| 910 |
LastIndexAnyASCII/16:4-4 129.2n ± 1% 165.3n ± 1% +27.95% (p=0.002 n=6) |
| 911 |
LastIndexAnyASCII/16:8-4 151.5n ± 0% 192.8n ± 2% +27.29% (p=0.002 n=6) |
| 912 |
LastIndexAnyASCII/16:16-4 187.7n ± 0% 265.7n ± 2% +41.56% (p=0.002 n=6) |
| 913 |
LastIndexAnyASCII/16:32-4 278.2n ± 0% 474.2n ± 1% +70.47% (p=0.002 n=6) |
| 914 |
LastIndexAnyASCII/16:64-4 424.4n ± 1% 775.4n ± 1% +82.70% (p=0.002 n=6) |
| 915 |
LastIndexAnyASCII/256:1-4 996.0n ± 0% 1119.5n ± 8% +12.39% (p=0.002 n=6) |
| 916 |
LastIndexAnyASCII/256:2-4 1.003µ ± 1% 1.041µ ± 2% +3.79% (p=0.002 n=6) |
| 917 |
LastIndexAnyASCII/256:4-4 1.014µ ± 0% 1.049µ ± 2% +3.45% (p=0.002 n=6) |
| 918 |
LastIndexAnyASCII/256:8-4 1.033µ ± 1% 1.073µ ± 0% +3.87% (p=0.002 n=6) |
| 919 |
LastIndexAnyASCII/256:16-4 1.069µ ± 0% 1.150µ ± 0% +7.63% (p=0.002 n=6) |
| 920 |
LastIndexAnyASCII/256:32-4 1.159µ ± 0% 1.871µ ± 3% +61.39% (p=0.002 n=6) |
| 921 |
LastIndexAnyASCII/256:64-4 1.310µ ± 1% 2.174µ ± 2% +65.85% (p=0.002 n=6) |
| 922 |
LastIndexAnyUTF8/1:1-4 69.47n ± 2% 110.90n ± 1% +59.64% (p=0.002 n=6) |
| 923 |
LastIndexAnyUTF8/1:2-4 53.42n ± 0% 94.05n ± 2% +76.07% (p=0.002 n=6) |
| 924 |
LastIndexAnyUTF8/1:4-4 55.72n ± 4% 96.50n ± 1% +73.19% (p=0.002 n=6) |
| 925 |
LastIndexAnyUTF8/1:8-4 61.43n ± 2% 102.30n ± 1% +66.54% (p=0.002 n=6) |
| 926 |
LastIndexAnyUTF8/1:16-4 72.81n ± 0% 113.95n ± 6% +56.50% (p=0.002 n=6) |
| 927 |
LastIndexAnyUTF8/1:32-4 111.6n ± 0% 155.5n ± 3% +39.44% (p=0.002 n=6) |
| 928 |
LastIndexAnyUTF8/1:64-4 163.5n ± 1% 203.1n ± 2% +24.18% (p=0.002 n=6) |
| 929 |
LastIndexAnyUTF8/16:1-4 212.7n ± 0% 246.6n ± 8% +15.96% (p=0.002 n=6) |
| 930 |
LastIndexAnyUTF8/16:2-4 685.7n ± 3% 1366.5n ± 6% +99.29% (p=0.002 n=6) |
| 931 |
LastIndexAnyUTF8/16:4-4 728.8n ± 2% 1431.0n ± 2% +96.36% (p=0.002 n=6) |
| 932 |
LastIndexAnyUTF8/16:8-4 813.9n ± 2% 1504.5n ± 4% +84.86% (p=0.002 n=6) |
| 933 |
LastIndexAnyUTF8/16:16-4 1.192µ ± 7% 1.734µ ± 2% +45.47% (p=0.002 n=6) |
| 934 |
LastIndexAnyUTF8/16:32-4 1.669µ ± 2% 2.391µ ± 3% +43.26% (p=0.002 n=6) |
| 935 |
LastIndexAnyUTF8/16:64-4 2.491µ ± 2% 3.198µ ± 1% +28.38% (p=0.002 n=6) |
| 936 |
LastIndexAnyUTF8/256:1-4 2.526µ ± 0% 2.593µ ± 1% +2.63% (p=0.002 n=6) |
| 937 |
LastIndexAnyUTF8/256:2-4 10.14µ ± 4% 20.74µ ± 2% +104.44% (p=0.002 n=6) |
| 938 |
LastIndexAnyUTF8/256:4-4 10.84µ ± 1% 21.42µ ± 1% +97.56% (p=0.002 n=6) |
| 939 |
LastIndexAnyUTF8/256:8-4 12.21µ ± 3% 22.76µ ± 5% +86.46% (p=0.002 n=6) |
| 940 |
LastIndexAnyUTF8/256:16-4 16.35µ ± 19% 25.97µ ± 7% +58.83% (p=0.002 n=6) |
| 941 |
LastIndexAnyUTF8/256:32-4 25.82µ ± 1% 38.08µ ± 10% +47.51% (p=0.002 n=6) |
| 942 |
LastIndexAnyUTF8/256:64-4 39.09µ ± 2% 50.23µ ± 9% +28.50% (p=0.002 n=6) |
| 943 |
IndexPeriodic/IndexPeriodic2-4 351.4µ ± 0% 336.9µ ± 16% ~ (p=0.394 n=6) |
| 944 |
IndexPeriodic/IndexPeriodic4-4 351.4µ ± 1% 336.8µ ± 13% ~ (p=0.065 n=6) |
| 945 |
IndexPeriodic/IndexPeriodic8-4 351.2µ ± 1% 492.1µ ± 0% +40.13% (p=0.002 n=6) |
| 946 |
IndexPeriodic/IndexPeriodic16-4 167.9µ ± 0% 334.8µ ± 1% +99.44% (p=0.002 n=6) |
| 947 |
IndexPeriodic/IndexPeriodic32-4 166.1µ ± 1% 291.5µ ± 1% +75.51% (p=0.002 n=6) |
| 948 |
IndexPeriodic/IndexPeriodic64-4 132.6µ ± 0% 234.8µ ± 3% +77.02% (p=0.002 n=6) |
| 949 |
IndexByte_Bytes/10-4 40.12n ± 3% 43.35n ± 3% +8.06% (p=0.002 n=6) |
| 950 |
IndexByte_Bytes/32-4 89.12n ± 2% 117.65n ± 2% +32.01% (p=0.002 n=6) |
| 951 |
IndexByte_Bytes/4K-4 6.342µ ± 5% 11.323µ ± 4% +78.54% (p=0.002 n=6) |
| 952 |
IndexByte_Bytes/4M-4 6.742m ± 1% 11.580m ± 7% +71.75% (p=0.002 n=6) |
| 953 |
IndexByte_Bytes/64M-4 126.9m ± 2% 212.5m ± 4% +67.49% (p=0.002 n=6) |
| 954 |
IndexRune_Bytes/10-4 110.8n ± 1% 121.7n ± 2% +9.84% (p=0.002 n=6) |
| 955 |
IndexRune_Bytes/32-4 159.9n ± 2% 171.5n ± 4% +7.26% (p=0.002 n=6) |
| 956 |
IndexRune_Bytes/4K-4 6.685µ ± 1% 6.764µ ± 6% +1.19% (p=0.004 n=6) |
| 957 |
IndexRune_Bytes/4M-4 6.760m ± 0% 6.806m ± 1% ~ (p=0.065 n=6) |
| 958 |
IndexRune_Bytes/64M-4 128.1m ± 2% 130.6m ± 11% ~ (p=0.589 n=6) |
| 959 |
IndexRuneASCII_Bytes/10-4 43.45n ± 1% 57.01n ± 7% +31.21% (p=0.002 n=6) |
| 960 |
IndexRuneASCII_Bytes/32-4 92.28n ± 6% 130.85n ± 8% +41.79% (p=0.002 n=6) |
| 961 |
IndexRuneASCII_Bytes/4K-4 6.613µ ± 0% 11.271µ ± 2% +70.45% (p=0.002 n=6) |
| 962 |
IndexRuneASCII_Bytes/4M-4 6.751m ± 0% 11.502m ± 2% +70.38% (p=0.002 n=6) |
| 963 |
IndexRuneASCII_Bytes/64M-4 129.2m ± 55% 208.2m ± 54% +61.16% (p=0.002 n=6) |
| 964 |
IndexNonASCII_Bytes/10-4 24.71n ± 3% 26.28n ± 5% +6.35% (p=0.002 n=6) |
| 965 |
IndexNonASCII_Bytes/32-4 78.75n ± 4% 75.23n ± 2% -4.47% (p=0.009 n=6) |
| 966 |
IndexNonASCII_Bytes/4K-4 8.235µ ± 0% 8.874µ ± 7% +7.77% (p=0.002 n=6) |
| 967 |
IndexNonASCII_Bytes/4M-4 8.449m ± 3% 9.721m ± 3% +15.05% (p=0.002 n=6) |
| 968 |
IndexNonASCII_Bytes/64M-4 154.2m ± 2% 170.5m ± 15% +10.58% (p=0.002 n=6) |
| 969 |
geomean 2.636µ 3.464µ +31.41% |
| 970 |
|
| 971 |
│ stdlib.5.1681426807.txt │ strcase.5.1681426807.txt │ |
| 972 |
│ B/s │ B/s vs base │ |
| 973 |
CountByte/10-4 229.9Mi ± 3% 209.7Mi ± 3% -8.80% (p=0.002 n=6) |
| 974 |
CountByte/32-4 430.8Mi ± 0% 250.2Mi ± 3% -41.91% (p=0.002 n=6) |
| 975 |
CountByte/4K-4 704.7Mi ± 3% 276.9Mi ± 1% -60.71% (p=0.002 n=6) |
| 976 |
CountByte/4M-4 691.8Mi ± 3% 278.0Mi ± 10% -59.82% (p=0.002 n=6) |
| 977 |
CountByte/64M-4 508.7Mi ± 1% 222.9Mi ± 10% -56.17% (p=0.002 n=6) |
| 978 |
IndexByte_Bytes/10-4 237.7Mi ± 3% 220.0Mi ± 3% -7.47% (p=0.002 n=6) |
| 979 |
IndexByte_Bytes/32-4 342.5Mi ± 2% 259.4Mi ± 2% -24.26% (p=0.002 n=6) |
| 980 |
IndexByte_Bytes/4K-4 616.9Mi ± 4% 345.0Mi ± 4% -44.08% (p=0.002 n=6) |
| 981 |
IndexByte_Bytes/4M-4 593.3Mi ± 1% 345.4Mi ± 7% -41.78% (p=0.002 n=6) |
| 982 |
IndexByte_Bytes/64M-4 504.5Mi ± 2% 301.2Mi ± 4% -40.29% (p=0.002 n=6) |
| 983 |
IndexRune_Bytes/10-4 86.10Mi ± 1% 78.39Mi ± 2% -8.96% (p=0.002 n=6) |
| 984 |
IndexRune_Bytes/32-4 191.0Mi ± 2% 178.0Mi ± 4% -6.77% (p=0.002 n=6) |
| 985 |
IndexRune_Bytes/4K-4 584.4Mi ± 1% 577.5Mi ± 5% -1.17% (p=0.004 n=6) |
| 986 |
IndexRune_Bytes/4M-4 591.7Mi ± 0% 587.8Mi ± 1% ~ (p=0.065 n=6) |
| 987 |
IndexRune_Bytes/64M-4 499.6Mi ± 2% 490.2Mi ± 10% ~ (p=0.589 n=6) |
| 988 |
IndexRuneASCII_Bytes/10-4 219.5Mi ± 1% 167.3Mi ± 7% -23.79% (p=0.002 n=6) |
| 989 |
IndexRuneASCII_Bytes/32-4 330.7Mi ± 6% 233.2Mi ± 7% -29.47% (p=0.002 n=6) |
| 990 |
IndexRuneASCII_Bytes/4K-4 590.8Mi ± 0% 346.6Mi ± 2% -41.33% (p=0.002 n=6) |
| 991 |
IndexRuneASCII_Bytes/4M-4 592.5Mi ± 0% 347.8Mi ± 2% -41.30% (p=0.002 n=6) |
| 992 |
IndexRuneASCII_Bytes/64M-4 495.4Mi ± 35% 307.4Mi ± 35% -37.96% (p=0.002 n=6) |
| 993 |
IndexNonASCII_Bytes/10-4 385.9Mi ± 3% 362.8Mi ± 5% -5.99% (p=0.002 n=6) |
| 994 |
IndexNonASCII_Bytes/32-4 387.5Mi ± 4% 405.7Mi ± 2% +4.68% (p=0.009 n=6) |
| 995 |
IndexNonASCII_Bytes/4K-4 474.4Mi ± 0% 440.2Mi ± 7% -7.21% (p=0.002 n=6) |
| 996 |
IndexNonASCII_Bytes/4M-4 473.4Mi ± 3% 411.5Mi ± 3% -13.08% (p=0.002 n=6) |
| 997 |
IndexNonASCII_Bytes/64M-4 415.1Mi ± 2% 375.5Mi ± 13% -9.54% (p=0.002 n=6) |
| 998 |
geomean 407.9Mi 296.3Mi -27.37% |
| 999 |
``` |
| 1000 |
|
| 1001 |
</details> |