Skip to content

Commit

Permalink
rerun with go 1.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sw-rubix committed Feb 18, 2024
1 parent 2cb15ae commit 859159a
Showing 1 changed file with 91 additions and 91 deletions.
182 changes: 91 additions & 91 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ If you\'re interested in new programming languages, you should definitely take a

## Benchmark Results

Golang Version: [go version go1.21.5 darwin/arm64](https://tip.golang.org/doc/go1.21)
Golang Version: [go version go1.22.0 darwin/arm64](https://tip.golang.org/doc/go1.22)
Hardware Spec: [Apple MacBook Pro 16-Inch M2 Max 2023](https://support.apple.com/kb/SP890) [(?)](https://everymac.com/systems/apple/macbook_pro/specs/macbook-pro-m2-max-12-core-cpu-30-core-gpu-16-2023-specs.html) [(buy)](https://amzn.to/3K80lP4)

### base64
Expand Down Expand Up @@ -95,10 +95,10 @@ func BenchmarkBase64regex(b *testing.B) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkBase64decode-12 20840026 56.71 ns/op 32 B/op 2 allocs/op
BenchmarkBase64regex-12 127686 9420 ns/op 21502 B/op 198 allocs/op
BenchmarkBase64decode-12 22690968 53.19 ns/op 32 B/op 2 allocs/op
BenchmarkBase64regex-12 123316 9634 ns/op 21937 B/op 198 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/base64 3.625s
ok _/Users/simonwaldherr/git/golang-benchmarks/base64 3.598s
```

### between
Expand Down Expand Up @@ -190,12 +190,12 @@ func BenchmarkFulltextParse(b *testing.B) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkNumberRegEx-12 175806 6500 ns/op 16217 B/op 142 allocs/op
BenchmarkFulltextRegEx-12 224685 5422 ns/op 11684 B/op 104 allocs/op
BenchmarkNumberParse-12 33828783 36.60 ns/op 0 B/op 0 allocs/op
BenchmarkFulltextParse-12 2517451 482.9 ns/op 32 B/op 2 allocs/op
BenchmarkNumberRegEx-12 180219 6571 ns/op 16888 B/op 142 allocs/op
BenchmarkFulltextRegEx-12 221482 5402 ns/op 12094 B/op 104 allocs/op
BenchmarkNumberParse-12 33574416 35.67 ns/op 0 B/op 0 allocs/op
BenchmarkFulltextParse-12 2587308 467.2 ns/op 32 B/op 2 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/between 6.611s
ok _/Users/simonwaldherr/git/golang-benchmarks/between 6.524s
```

### caseinsensitivecompare
Expand Down Expand Up @@ -237,11 +237,11 @@ func BenchmarkToLower(b *testing.B) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkEqualFold-12 82331166 13.98 ns/op 0 B/op 0 allocs/op
BenchmarkToUpper-12 10878864 107.8 ns/op 16 B/op 3 allocs/op
BenchmarkToLower-12 8704466 139.8 ns/op 20 B/op 5 allocs/op
BenchmarkEqualFold-12 84816313 14.03 ns/op 0 B/op 0 allocs/op
BenchmarkToUpper-12 11181378 105.9 ns/op 16 B/op 3 allocs/op
BenchmarkToLower-12 8854078 135.7 ns/op 20 B/op 5 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/caseinsensitivecompare 4.719s
ok _/Users/simonwaldherr/git/golang-benchmarks/caseinsensitivecompare 4.694s
```

### concat
Expand Down Expand Up @@ -287,11 +287,11 @@ func BenchmarkConcatBuilder(b *testing.B) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkConcatString-12 1000000 32765 ns/op 503994 B/op 1 allocs/op
BenchmarkConcatBuffer-12 320170188 3.851 ns/op 3 B/op 0 allocs/op
BenchmarkConcatBuilder-12 573719577 2.311 ns/op 5 B/op 0 allocs/op
BenchmarkConcatString-12 1000000 23822 ns/op 503993 B/op 1 allocs/op
BenchmarkConcatBuffer-12 325990952 3.814 ns/op 3 B/op 0 allocs/op
BenchmarkConcatBuilder-12 566374242 2.251 ns/op 5 B/op 0 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/concat 36.104s
ok _/Users/simonwaldherr/git/golang-benchmarks/concat 27.094s
```

### contains
Expand Down Expand Up @@ -441,16 +441,16 @@ func BenchmarkMatchNot(b *testing.B) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkContains-12 248208566 4.871 ns/op 0 B/op 0 allocs/op
BenchmarkContainsNot-12 197121086 5.910 ns/op 0 B/op 0 allocs/op
BenchmarkContainsBytes-12 240872742 5.064 ns/op 0 B/op 0 allocs/op
BenchmarkContainsBytesNot-12 195765949 6.129 ns/op 0 B/op 0 allocs/op
BenchmarkCompileMatch-12 24799729 48.14 ns/op 0 B/op 0 allocs/op
BenchmarkCompileMatchNot-12 52000764 23.92 ns/op 0 B/op 0 allocs/op
BenchmarkMatch-12 1644446 713.3 ns/op 1398 B/op 17 allocs/op
BenchmarkMatchNot-12 1773174 656.2 ns/op 1398 B/op 17 allocs/op
BenchmarkContains-12 246624096 4.720 ns/op 0 B/op 0 allocs/op
BenchmarkContainsNot-12 208014148 5.825 ns/op 0 B/op 0 allocs/op
BenchmarkContainsBytes-12 239591714 5.025 ns/op 0 B/op 0 allocs/op
BenchmarkContainsBytesNot-12 197281825 6.185 ns/op 0 B/op 0 allocs/op
BenchmarkCompileMatch-12 24915670 47.27 ns/op 0 B/op 0 allocs/op
BenchmarkCompileMatchNot-12 49589082 24.75 ns/op 0 B/op 0 allocs/op
BenchmarkMatch-12 1670902 716.0 ns/op 1400 B/op 17 allocs/op
BenchmarkMatchNot-12 1739562 686.4 ns/op 1400 B/op 17 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/contains 13.443s
ok _/Users/simonwaldherr/git/golang-benchmarks/contains 13.438s
```

### foreach
Expand Down Expand Up @@ -537,12 +537,12 @@ func BenchmarkRangeSliceKey(b *testing.B) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkForMap-12 60287694 19.62 ns/op 0 B/op 0 allocs/op
BenchmarkRangeMap-12 25264066 46.11 ns/op 0 B/op 0 allocs/op
BenchmarkRangeSlice-12 465727620 2.631 ns/op 0 B/op 0 allocs/op
BenchmarkRangeSliceKey-12 461361679 2.682 ns/op 0 B/op 0 allocs/op
BenchmarkForMap-12 60644628 19.54 ns/op 0 B/op 0 allocs/op
BenchmarkRangeMap-12 23501090 50.94 ns/op 0 B/op 0 allocs/op
BenchmarkRangeSlice-12 465120560 2.580 ns/op 0 B/op 0 allocs/op
BenchmarkRangeSliceKey-12 465038697 2.616 ns/op 0 B/op 0 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/foreach 6.319s
ok _/Users/simonwaldherr/git/golang-benchmarks/foreach 6.199s
```

### hash
Expand Down Expand Up @@ -749,37 +749,37 @@ func BenchmarkSHA256Parallel(b *testing.B) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkAdler32-12 1785740 650.7 ns/op 8 B/op 1 allocs/op
BenchmarkBCryptCost4-12 635139488 1.921 ns/op 0 B/op 0 allocs/op
BenchmarkBCryptCost10-12 639310113 1.957 ns/op 0 B/op 0 allocs/op
BenchmarkBCryptCost16-12 606271753 1.950 ns/op 0 B/op 0 allocs/op
BenchmarkBlake2b256-12 478315 2491 ns/op 32 B/op 1 allocs/op
BenchmarkBlake2b512-12 485422 2459 ns/op 64 B/op 1 allocs/op
BenchmarkBlake3256-12 422632 2936 ns/op 64 B/op 2 allocs/op
BenchmarkMMH3-12 3611425 327.5 ns/op 16 B/op 1 allocs/op
BenchmarkCRC32-12 5082070 235.6 ns/op 8 B/op 1 allocs/op
BenchmarkCRC64ISO-12 983139 1207 ns/op 8 B/op 1 allocs/op
BenchmarkCRC64ECMA-12 990122 1260 ns/op 8 B/op 1 allocs/op
BenchmarkFnv32-12 496581 2396 ns/op 8 B/op 1 allocs/op
BenchmarkFnv32a-12 514605 2317 ns/op 8 B/op 1 allocs/op
BenchmarkFnv64-12 516794 2316 ns/op 8 B/op 1 allocs/op
BenchmarkFnv64a-12 516573 2380 ns/op 8 B/op 1 allocs/op
BenchmarkFnv128-12 300181 3984 ns/op 16 B/op 1 allocs/op
BenchmarkFnv128a-12 483355 2423 ns/op 16 B/op 1 allocs/op
BenchmarkMD4-12 426765 2836 ns/op 24 B/op 2 allocs/op
BenchmarkMD5-12 397560 3004 ns/op 16 B/op 1 allocs/op
BenchmarkSHA1-12 1390654 869.6 ns/op 24 B/op 1 allocs/op
BenchmarkSHA224-12 1396154 842.3 ns/op 32 B/op 1 allocs/op
BenchmarkSHA256-12 1426485 856.9 ns/op 32 B/op 1 allocs/op
BenchmarkSHA384-12 804523 1486 ns/op 48 B/op 1 allocs/op
BenchmarkSHA512-12 773077 1436 ns/op 64 B/op 1 allocs/op
BenchmarkSHA3256-12 238112 5145 ns/op 480 B/op 2 allocs/op
BenchmarkSHA3512-12 135817 9078 ns/op 512 B/op 2 allocs/op
BenchmarkRIPEMD160-12 197322 6144 ns/op 24 B/op 1 allocs/op
BenchmarkWhirlpool-12 46051 26439 ns/op 64 B/op 1 allocs/op
BenchmarkSHA256Parallel-12 13431037 91.24 ns/op 32 B/op 1 allocs/op
BenchmarkAdler32-12 1832005 642.0 ns/op 8 B/op 1 allocs/op
BenchmarkBCryptCost4-12 622344232 1.939 ns/op 0 B/op 0 allocs/op
BenchmarkBCryptCost10-12 617344153 1.940 ns/op 0 B/op 0 allocs/op
BenchmarkBCryptCost16-12 610554968 1.933 ns/op 0 B/op 0 allocs/op
BenchmarkBlake2b256-12 485202 2458 ns/op 32 B/op 1 allocs/op
BenchmarkBlake2b512-12 477847 2474 ns/op 64 B/op 1 allocs/op
BenchmarkBlake3256-12 413876 2857 ns/op 64 B/op 2 allocs/op
BenchmarkMMH3-12 3728374 322.5 ns/op 16 B/op 1 allocs/op
BenchmarkCRC32-12 4956696 237.7 ns/op 8 B/op 1 allocs/op
BenchmarkCRC64ISO-12 988246 1211 ns/op 8 B/op 1 allocs/op
BenchmarkCRC64ECMA-12 989850 1214 ns/op 8 B/op 1 allocs/op
BenchmarkFnv32-12 513014 2331 ns/op 8 B/op 1 allocs/op
BenchmarkFnv32a-12 518250 2319 ns/op 8 B/op 1 allocs/op
BenchmarkFnv64-12 515239 2321 ns/op 8 B/op 1 allocs/op
BenchmarkFnv64a-12 512271 2328 ns/op 8 B/op 1 allocs/op
BenchmarkFnv128-12 314017 3836 ns/op 16 B/op 1 allocs/op
BenchmarkFnv128a-12 496381 2481 ns/op 16 B/op 1 allocs/op
BenchmarkMD4-12 417538 2854 ns/op 24 B/op 2 allocs/op
BenchmarkMD5-12 404918 2934 ns/op 16 B/op 1 allocs/op
BenchmarkSHA1-12 1415151 828.7 ns/op 24 B/op 1 allocs/op
BenchmarkSHA224-12 1459034 835.3 ns/op 32 B/op 1 allocs/op
BenchmarkSHA256-12 1430587 838.0 ns/op 32 B/op 1 allocs/op
BenchmarkSHA384-12 835683 1447 ns/op 48 B/op 1 allocs/op
BenchmarkSHA512-12 824522 1452 ns/op 64 B/op 1 allocs/op
BenchmarkSHA3256-12 235770 5189 ns/op 480 B/op 2 allocs/op
BenchmarkSHA3512-12 131142 9105 ns/op 512 B/op 2 allocs/op
BenchmarkRIPEMD160-12 198018 5949 ns/op 24 B/op 1 allocs/op
BenchmarkWhirlpool-12 45537 26392 ns/op 64 B/op 1 allocs/op
BenchmarkSHA256Parallel-12 12736846 95.40 ns/op 32 B/op 1 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/hash 40.383s
ok _/Users/simonwaldherr/git/golang-benchmarks/hash 40.163s
```

### index
Expand Down Expand Up @@ -888,12 +888,12 @@ func BenchmarkMapIntIndex(b *testing.B) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkMapStringKeys-12 18892195 63.28 ns/op 0 B/op 0 allocs/op
BenchmarkMapIntKeys-12 42557409 26.74 ns/op 0 B/op 0 allocs/op
BenchmarkMapStringIndex-12 24523098 45.95 ns/op 0 B/op 0 allocs/op
BenchmarkMapIntIndex-12 31626038 34.92 ns/op 0 B/op 0 allocs/op
BenchmarkMapStringKeys-12 21903754 47.97 ns/op 0 B/op 0 allocs/op
BenchmarkMapIntKeys-12 42697788 25.95 ns/op 0 B/op 0 allocs/op
BenchmarkMapStringIndex-12 23821516 47.70 ns/op 0 B/op 0 allocs/op
BenchmarkMapIntIndex-12 47902009 25.29 ns/op 0 B/op 0 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/index 6.628s
ok _/Users/simonwaldherr/git/golang-benchmarks/index 6.559s
```

### json
Expand Down Expand Up @@ -984,10 +984,10 @@ func BenchmarkJsonUnmarshal(b *testing.B) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkJsonMarshal-12 1663761 675.8 ns/op 480 B/op 5 allocs/op
BenchmarkJsonUnmarshal-12 332768 3573 ns/op 1912 B/op 34 allocs/op
BenchmarkJsonMarshal-12 1668337 714.1 ns/op 480 B/op 5 allocs/op
BenchmarkJsonUnmarshal-12 344632 3440 ns/op 1816 B/op 27 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/json 3.239s
ok _/Users/simonwaldherr/git/golang-benchmarks/json 3.287s
```

### math
Expand Down Expand Up @@ -1070,16 +1070,16 @@ func BenchmarkMathFloat64(b *testing.B) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkMathInt8-12 1000000000 0.3045 ns/op 0 B/op 0 allocs/op
BenchmarkMathInt32-12 1000000000 0.2995 ns/op 0 B/op 0 allocs/op
BenchmarkMathInt64-12 1000000000 0.2949 ns/op 0 B/op 0 allocs/op
BenchmarkMathAtomicInt32-12 293421100 4.142 ns/op 0 B/op 0 allocs/op
BenchmarkMathAtomicInt64-12 290238902 4.062 ns/op 0 B/op 0 allocs/op
BenchmarkMathMutexInt-12 155652537 7.998 ns/op 0 B/op 0 allocs/op
BenchmarkMathFloat32-12 1000000000 0.2918 ns/op 0 B/op 0 allocs/op
BenchmarkMathFloat64-12 1000000000 0.2913 ns/op 0 B/op 0 allocs/op
BenchmarkMathInt8-12 1000000000 0.2930 ns/op 0 B/op 0 allocs/op
BenchmarkMathInt32-12 1000000000 0.2867 ns/op 0 B/op 0 allocs/op
BenchmarkMathInt64-12 1000000000 0.2866 ns/op 0 B/op 0 allocs/op
BenchmarkMathAtomicInt32-12 308022213 3.896 ns/op 0 B/op 0 allocs/op
BenchmarkMathAtomicInt64-12 309090546 3.879 ns/op 0 B/op 0 allocs/op
BenchmarkMathMutexInt-12 154933560 7.737 ns/op 0 B/op 0 allocs/op
BenchmarkMathFloat32-12 1000000000 0.2873 ns/op 0 B/op 0 allocs/op
BenchmarkMathFloat64-12 1000000000 0.2868 ns/op 0 B/op 0 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/math 7.033s
ok _/Users/simonwaldherr/git/golang-benchmarks/math 6.919s
```

### parse
Expand Down Expand Up @@ -1125,11 +1125,11 @@ func BenchmarkParseFloat(b *testing.B) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkParseBool-12 1000000000 0.2967 ns/op 0 B/op 0 allocs/op
BenchmarkParseInt-12 122791490 9.474 ns/op 0 B/op 0 allocs/op
BenchmarkParseFloat-12 20593035 58.77 ns/op 0 B/op 0 allocs/op
BenchmarkParseBool-12 1000000000 0.2895 ns/op 0 B/op 0 allocs/op
BenchmarkParseInt-12 126848485 9.460 ns/op 0 B/op 0 allocs/op
BenchmarkParseFloat-12 20510175 58.43 ns/op 0 B/op 0 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/parse 3.914s
ok _/Users/simonwaldherr/git/golang-benchmarks/parse 3.892s
```

### random
Expand Down Expand Up @@ -1201,12 +1201,12 @@ func GenerateRandomString(s int) (string, error) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkMathRand-12 257354553 4.502 ns/op 0 B/op 0 allocs/op
BenchmarkCryptoRand-12 3245437 349.0 ns/op 48 B/op 3 allocs/op
BenchmarkCryptoRandString-12 12461068 96.32 ns/op 128 B/op 3 allocs/op
BenchmarkCryptoRandBytes-12 24781057 47.60 ns/op 32 B/op 1 allocs/op
BenchmarkMathRand-12 177514748 6.637 ns/op 0 B/op 0 allocs/op
BenchmarkCryptoRand-12 3422119 351.6 ns/op 48 B/op 3 allocs/op
BenchmarkCryptoRandString-12 10961239 109.5 ns/op 128 B/op 3 allocs/op
BenchmarkCryptoRandBytes-12 20809894 57.41 ns/op 32 B/op 1 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/random 5.824s
ok _/Users/simonwaldherr/git/golang-benchmarks/random 6.132s
```

### regexp
Expand Down Expand Up @@ -1260,10 +1260,10 @@ func BenchmarkMatchStringGolibs(b *testing.B) {
$ go test -bench . -benchmem
goos: darwin
goarch: arm64
BenchmarkMatchString-12 283754 3970 ns/op 10009 B/op 86 allocs/op
BenchmarkMatchStringCompiled-12 3820686 316.7 ns/op 0 B/op 0 allocs/op
BenchmarkMatchStringGolibs-12 3689631 319.2 ns/op 0 B/op 0 allocs/op
BenchmarkMatchString-12 293354 4092 ns/op 10224 B/op 86 allocs/op
BenchmarkMatchStringCompiled-12 3809538 314.3 ns/op 0 B/op 0 allocs/op
BenchmarkMatchStringGolibs-12 3791882 316.6 ns/op 0 B/op 0 allocs/op
PASS
ok _/Users/simonwaldherr/git/golang-benchmarks/regexp 5.219s
ok _/Users/simonwaldherr/git/golang-benchmarks/regexp 5.308s
```

0 comments on commit 859159a

Please sign in to comment.