Skip to content

Commit 2cb15ae

Browse files
committed
rerun with go 1.21.5 (macOS Sonoma Version 14.3 Beta (23D5033f) on Apple M2 Max 32GB RAM)
1 parent 0bab063 commit 2cb15ae

File tree

1 file changed

+91
-91
lines changed

1 file changed

+91
-91
lines changed

README.md

Lines changed: 91 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ If you\'re interested in new programming languages, you should definitely take a
4343

4444
## Benchmark Results
4545

46-
Golang Version: [go version go1.21.3 darwin/arm64](https://tip.golang.org/doc/go1.21)
46+
Golang Version: [go version go1.21.5 darwin/arm64](https://tip.golang.org/doc/go1.21)
4747
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)
4848

4949
### base64
@@ -95,10 +95,10 @@ func BenchmarkBase64regex(b *testing.B) {
9595
$ go test -bench . -benchmem
9696
goos: darwin
9797
goarch: arm64
98-
BenchmarkBase64decode-12 20140136 57.33 ns/op 32 B/op 2 allocs/op
99-
BenchmarkBase64regex-12 129114 9324 ns/op 21500 B/op 198 allocs/op
98+
BenchmarkBase64decode-12 20840026 56.71 ns/op 32 B/op 2 allocs/op
99+
BenchmarkBase64regex-12 127686 9420 ns/op 21502 B/op 198 allocs/op
100100
PASS
101-
ok _/Users/simonwaldherr/git/golang-benchmarks/base64 3.630s
101+
ok _/Users/simonwaldherr/git/golang-benchmarks/base64 3.625s
102102
```
103103

104104
### between
@@ -190,12 +190,12 @@ func BenchmarkFulltextParse(b *testing.B) {
190190
$ go test -bench . -benchmem
191191
goos: darwin
192192
goarch: arm64
193-
BenchmarkNumberRegEx-12 178693 6817 ns/op 16209 B/op 142 allocs/op
194-
BenchmarkFulltextRegEx-12 208675 5440 ns/op 11686 B/op 104 allocs/op
195-
BenchmarkNumberParse-12 33615994 35.71 ns/op 0 B/op 0 allocs/op
196-
BenchmarkFulltextParse-12 2532831 485.5 ns/op 32 B/op 2 allocs/op
193+
BenchmarkNumberRegEx-12 175806 6500 ns/op 16217 B/op 142 allocs/op
194+
BenchmarkFulltextRegEx-12 224685 5422 ns/op 11684 B/op 104 allocs/op
195+
BenchmarkNumberParse-12 33828783 36.60 ns/op 0 B/op 0 allocs/op
196+
BenchmarkFulltextParse-12 2517451 482.9 ns/op 32 B/op 2 allocs/op
197197
PASS
198-
ok _/Users/simonwaldherr/git/golang-benchmarks/between 6.593s
198+
ok _/Users/simonwaldherr/git/golang-benchmarks/between 6.611s
199199
```
200200

201201
### caseinsensitivecompare
@@ -237,11 +237,11 @@ func BenchmarkToLower(b *testing.B) {
237237
$ go test -bench . -benchmem
238238
goos: darwin
239239
goarch: arm64
240-
BenchmarkEqualFold-12 81217236 14.14 ns/op 0 B/op 0 allocs/op
241-
BenchmarkToUpper-12 11396989 104.2 ns/op 16 B/op 3 allocs/op
242-
BenchmarkToLower-12 8967961 136.4 ns/op 20 B/op 5 allocs/op
240+
BenchmarkEqualFold-12 82331166 13.98 ns/op 0 B/op 0 allocs/op
241+
BenchmarkToUpper-12 10878864 107.8 ns/op 16 B/op 3 allocs/op
242+
BenchmarkToLower-12 8704466 139.8 ns/op 20 B/op 5 allocs/op
243243
PASS
244-
ok _/Users/simonwaldherr/git/golang-benchmarks/caseinsensitivecompare 4.839s
244+
ok _/Users/simonwaldherr/git/golang-benchmarks/caseinsensitivecompare 4.719s
245245
```
246246

247247
### concat
@@ -287,11 +287,11 @@ func BenchmarkConcatBuilder(b *testing.B) {
287287
$ go test -bench . -benchmem
288288
goos: darwin
289289
goarch: arm64
290-
BenchmarkConcatString-12 1000000 30499 ns/op 503994 B/op 1 allocs/op
291-
BenchmarkConcatBuffer-12 310645966 3.993 ns/op 3 B/op 0 allocs/op
292-
BenchmarkConcatBuilder-12 544508565 2.469 ns/op 5 B/op 0 allocs/op
290+
BenchmarkConcatString-12 1000000 32765 ns/op 503994 B/op 1 allocs/op
291+
BenchmarkConcatBuffer-12 320170188 3.851 ns/op 3 B/op 0 allocs/op
292+
BenchmarkConcatBuilder-12 573719577 2.311 ns/op 5 B/op 0 allocs/op
293293
PASS
294-
ok _/Users/simonwaldherr/git/golang-benchmarks/concat 33.888s
294+
ok _/Users/simonwaldherr/git/golang-benchmarks/concat 36.104s
295295
```
296296

297297
### contains
@@ -441,16 +441,16 @@ func BenchmarkMatchNot(b *testing.B) {
441441
$ go test -bench . -benchmem
442442
goos: darwin
443443
goarch: arm64
444-
BenchmarkContains-12 198037815 6.008 ns/op 0 B/op 0 allocs/op
445-
BenchmarkContainsNot-12 100000000 10.27 ns/op 0 B/op 0 allocs/op
446-
BenchmarkContainsBytes-12 189392007 6.234 ns/op 0 B/op 0 allocs/op
447-
BenchmarkContainsBytesNot-12 100000000 10.20 ns/op 0 B/op 0 allocs/op
448-
BenchmarkCompileMatch-12 25235133 48.47 ns/op 0 B/op 0 allocs/op
449-
BenchmarkCompileMatchNot-12 39759069 29.88 ns/op 0 B/op 0 allocs/op
450-
BenchmarkMatch-12 1659705 709.1 ns/op 1398 B/op 17 allocs/op
451-
BenchmarkMatchNot-12 1769216 683.1 ns/op 1397 B/op 17 allocs/op
444+
BenchmarkContains-12 248208566 4.871 ns/op 0 B/op 0 allocs/op
445+
BenchmarkContainsNot-12 197121086 5.910 ns/op 0 B/op 0 allocs/op
446+
BenchmarkContainsBytes-12 240872742 5.064 ns/op 0 B/op 0 allocs/op
447+
BenchmarkContainsBytesNot-12 195765949 6.129 ns/op 0 B/op 0 allocs/op
448+
BenchmarkCompileMatch-12 24799729 48.14 ns/op 0 B/op 0 allocs/op
449+
BenchmarkCompileMatchNot-12 52000764 23.92 ns/op 0 B/op 0 allocs/op
450+
BenchmarkMatch-12 1644446 713.3 ns/op 1398 B/op 17 allocs/op
451+
BenchmarkMatchNot-12 1773174 656.2 ns/op 1398 B/op 17 allocs/op
452452
PASS
453-
ok _/Users/simonwaldherr/git/golang-benchmarks/contains 12.139s
453+
ok _/Users/simonwaldherr/git/golang-benchmarks/contains 13.443s
454454
```
455455

456456
### foreach
@@ -537,12 +537,12 @@ func BenchmarkRangeSliceKey(b *testing.B) {
537537
$ go test -bench . -benchmem
538538
goos: darwin
539539
goarch: arm64
540-
BenchmarkForMap-12 59073667 19.93 ns/op 0 B/op 0 allocs/op
541-
BenchmarkRangeMap-12 26191080 45.82 ns/op 0 B/op 0 allocs/op
542-
BenchmarkRangeSlice-12 462672230 2.620 ns/op 0 B/op 0 allocs/op
543-
BenchmarkRangeSliceKey-12 443830683 2.708 ns/op 0 B/op 0 allocs/op
540+
BenchmarkForMap-12 60287694 19.62 ns/op 0 B/op 0 allocs/op
541+
BenchmarkRangeMap-12 25264066 46.11 ns/op 0 B/op 0 allocs/op
542+
BenchmarkRangeSlice-12 465727620 2.631 ns/op 0 B/op 0 allocs/op
543+
BenchmarkRangeSliceKey-12 461361679 2.682 ns/op 0 B/op 0 allocs/op
544544
PASS
545-
ok _/Users/simonwaldherr/git/golang-benchmarks/foreach 6.438s
545+
ok _/Users/simonwaldherr/git/golang-benchmarks/foreach 6.319s
546546
```
547547

548548
### hash
@@ -749,37 +749,37 @@ func BenchmarkSHA256Parallel(b *testing.B) {
749749
$ go test -bench . -benchmem
750750
goos: darwin
751751
goarch: arm64
752-
BenchmarkAdler32-12 1777747 661.1 ns/op 8 B/op 1 allocs/op
753-
BenchmarkBCryptCost4-12 619322872 1.965 ns/op 0 B/op 0 allocs/op
754-
BenchmarkBCryptCost10-12 597774038 2.009 ns/op 0 B/op 0 allocs/op
755-
BenchmarkBCryptCost16-12 603385117 1.942 ns/op 0 B/op 0 allocs/op
756-
BenchmarkBlake2b256-12 473156 2529 ns/op 32 B/op 1 allocs/op
757-
BenchmarkBlake2b512-12 475653 2575 ns/op 64 B/op 1 allocs/op
758-
BenchmarkBlake3256-12 404091 2983 ns/op 64 B/op 2 allocs/op
759-
BenchmarkMMH3-12 3586161 326.6 ns/op 16 B/op 1 allocs/op
760-
BenchmarkCRC32-12 5076469 236.1 ns/op 8 B/op 1 allocs/op
761-
BenchmarkCRC64ISO-12 981260 1253 ns/op 8 B/op 1 allocs/op
762-
BenchmarkCRC64ECMA-12 950695 1265 ns/op 8 B/op 1 allocs/op
763-
BenchmarkFnv32-12 491764 2340 ns/op 8 B/op 1 allocs/op
764-
BenchmarkFnv32a-12 514635 2327 ns/op 8 B/op 1 allocs/op
765-
BenchmarkFnv64-12 515085 2373 ns/op 8 B/op 1 allocs/op
766-
BenchmarkFnv64a-12 492265 2435 ns/op 8 B/op 1 allocs/op
767-
BenchmarkFnv128-12 299892 3891 ns/op 16 B/op 1 allocs/op
768-
BenchmarkFnv128a-12 478249 2489 ns/op 16 B/op 1 allocs/op
769-
BenchmarkMD4-12 416311 2909 ns/op 24 B/op 2 allocs/op
770-
BenchmarkMD5-12 401024 3068 ns/op 16 B/op 1 allocs/op
771-
BenchmarkSHA1-12 1403372 825.7 ns/op 24 B/op 1 allocs/op
772-
BenchmarkSHA224-12 1453176 836.6 ns/op 32 B/op 1 allocs/op
773-
BenchmarkSHA256-12 1389282 853.9 ns/op 32 B/op 1 allocs/op
774-
BenchmarkSHA384-12 837554 1432 ns/op 48 B/op 1 allocs/op
775-
BenchmarkSHA512-12 838664 1431 ns/op 64 B/op 1 allocs/op
776-
BenchmarkSHA3256-12 229356 5387 ns/op 512 B/op 3 allocs/op
777-
BenchmarkSHA3512-12 125749 9434 ns/op 576 B/op 3 allocs/op
778-
BenchmarkRIPEMD160-12 199862 5976 ns/op 24 B/op 1 allocs/op
779-
BenchmarkWhirlpool-12 45343 26511 ns/op 64 B/op 1 allocs/op
780-
BenchmarkSHA256Parallel-12 13320831 93.35 ns/op 32 B/op 1 allocs/op
752+
BenchmarkAdler32-12 1785740 650.7 ns/op 8 B/op 1 allocs/op
753+
BenchmarkBCryptCost4-12 635139488 1.921 ns/op 0 B/op 0 allocs/op
754+
BenchmarkBCryptCost10-12 639310113 1.957 ns/op 0 B/op 0 allocs/op
755+
BenchmarkBCryptCost16-12 606271753 1.950 ns/op 0 B/op 0 allocs/op
756+
BenchmarkBlake2b256-12 478315 2491 ns/op 32 B/op 1 allocs/op
757+
BenchmarkBlake2b512-12 485422 2459 ns/op 64 B/op 1 allocs/op
758+
BenchmarkBlake3256-12 422632 2936 ns/op 64 B/op 2 allocs/op
759+
BenchmarkMMH3-12 3611425 327.5 ns/op 16 B/op 1 allocs/op
760+
BenchmarkCRC32-12 5082070 235.6 ns/op 8 B/op 1 allocs/op
761+
BenchmarkCRC64ISO-12 983139 1207 ns/op 8 B/op 1 allocs/op
762+
BenchmarkCRC64ECMA-12 990122 1260 ns/op 8 B/op 1 allocs/op
763+
BenchmarkFnv32-12 496581 2396 ns/op 8 B/op 1 allocs/op
764+
BenchmarkFnv32a-12 514605 2317 ns/op 8 B/op 1 allocs/op
765+
BenchmarkFnv64-12 516794 2316 ns/op 8 B/op 1 allocs/op
766+
BenchmarkFnv64a-12 516573 2380 ns/op 8 B/op 1 allocs/op
767+
BenchmarkFnv128-12 300181 3984 ns/op 16 B/op 1 allocs/op
768+
BenchmarkFnv128a-12 483355 2423 ns/op 16 B/op 1 allocs/op
769+
BenchmarkMD4-12 426765 2836 ns/op 24 B/op 2 allocs/op
770+
BenchmarkMD5-12 397560 3004 ns/op 16 B/op 1 allocs/op
771+
BenchmarkSHA1-12 1390654 869.6 ns/op 24 B/op 1 allocs/op
772+
BenchmarkSHA224-12 1396154 842.3 ns/op 32 B/op 1 allocs/op
773+
BenchmarkSHA256-12 1426485 856.9 ns/op 32 B/op 1 allocs/op
774+
BenchmarkSHA384-12 804523 1486 ns/op 48 B/op 1 allocs/op
775+
BenchmarkSHA512-12 773077 1436 ns/op 64 B/op 1 allocs/op
776+
BenchmarkSHA3256-12 238112 5145 ns/op 480 B/op 2 allocs/op
777+
BenchmarkSHA3512-12 135817 9078 ns/op 512 B/op 2 allocs/op
778+
BenchmarkRIPEMD160-12 197322 6144 ns/op 24 B/op 1 allocs/op
779+
BenchmarkWhirlpool-12 46051 26439 ns/op 64 B/op 1 allocs/op
780+
BenchmarkSHA256Parallel-12 13431037 91.24 ns/op 32 B/op 1 allocs/op
781781
PASS
782-
ok _/Users/simonwaldherr/git/golang-benchmarks/hash 40.315s
782+
ok _/Users/simonwaldherr/git/golang-benchmarks/hash 40.383s
783783
```
784784

785785
### index
@@ -888,12 +888,12 @@ func BenchmarkMapIntIndex(b *testing.B) {
888888
$ go test -bench . -benchmem
889889
goos: darwin
890890
goarch: arm64
891-
BenchmarkMapStringKeys-12 25086579 46.78 ns/op 0 B/op 0 allocs/op
892-
BenchmarkMapIntKeys-12 41083227 26.60 ns/op 0 B/op 0 allocs/op
893-
BenchmarkMapStringIndex-12 18865279 62.55 ns/op 0 B/op 0 allocs/op
894-
BenchmarkMapIntIndex-12 43326114 25.20 ns/op 0 B/op 0 allocs/op
891+
BenchmarkMapStringKeys-12 18892195 63.28 ns/op 0 B/op 0 allocs/op
892+
BenchmarkMapIntKeys-12 42557409 26.74 ns/op 0 B/op 0 allocs/op
893+
BenchmarkMapStringIndex-12 24523098 45.95 ns/op 0 B/op 0 allocs/op
894+
BenchmarkMapIntIndex-12 31626038 34.92 ns/op 0 B/op 0 allocs/op
895895
PASS
896-
ok _/Users/simonwaldherr/git/golang-benchmarks/index 7.552s
896+
ok _/Users/simonwaldherr/git/golang-benchmarks/index 6.628s
897897
```
898898

899899
### json
@@ -984,10 +984,10 @@ func BenchmarkJsonUnmarshal(b *testing.B) {
984984
$ go test -bench . -benchmem
985985
goos: darwin
986986
goarch: arm64
987-
BenchmarkJsonMarshal-12 1731160 699.9 ns/op 480 B/op 5 allocs/op
988-
BenchmarkJsonUnmarshal-12 315576 3787 ns/op 1912 B/op 34 allocs/op
987+
BenchmarkJsonMarshal-12 1663761 675.8 ns/op 480 B/op 5 allocs/op
988+
BenchmarkJsonUnmarshal-12 332768 3573 ns/op 1912 B/op 34 allocs/op
989989
PASS
990-
ok _/Users/simonwaldherr/git/golang-benchmarks/json 3.297s
990+
ok _/Users/simonwaldherr/git/golang-benchmarks/json 3.239s
991991
```
992992

993993
### math
@@ -1070,16 +1070,16 @@ func BenchmarkMathFloat64(b *testing.B) {
10701070
$ go test -bench . -benchmem
10711071
goos: darwin
10721072
goarch: arm64
1073-
BenchmarkMathInt8-12 1000000000 0.2954 ns/op 0 B/op 0 allocs/op
1074-
BenchmarkMathInt32-12 1000000000 0.2886 ns/op 0 B/op 0 allocs/op
1075-
BenchmarkMathInt64-12 1000000000 0.2881 ns/op 0 B/op 0 allocs/op
1076-
BenchmarkMathAtomicInt32-12 307675279 3.904 ns/op 0 B/op 0 allocs/op
1077-
BenchmarkMathAtomicInt64-12 296024270 4.077 ns/op 0 B/op 0 allocs/op
1078-
BenchmarkMathMutexInt-12 149814168 7.772 ns/op 0 B/op 0 allocs/op
1079-
BenchmarkMathFloat32-12 1000000000 0.2879 ns/op 0 B/op 0 allocs/op
1080-
BenchmarkMathFloat64-12 1000000000 0.2881 ns/op 0 B/op 0 allocs/op
1073+
BenchmarkMathInt8-12 1000000000 0.3045 ns/op 0 B/op 0 allocs/op
1074+
BenchmarkMathInt32-12 1000000000 0.2995 ns/op 0 B/op 0 allocs/op
1075+
BenchmarkMathInt64-12 1000000000 0.2949 ns/op 0 B/op 0 allocs/op
1076+
BenchmarkMathAtomicInt32-12 293421100 4.142 ns/op 0 B/op 0 allocs/op
1077+
BenchmarkMathAtomicInt64-12 290238902 4.062 ns/op 0 B/op 0 allocs/op
1078+
BenchmarkMathMutexInt-12 155652537 7.998 ns/op 0 B/op 0 allocs/op
1079+
BenchmarkMathFloat32-12 1000000000 0.2918 ns/op 0 B/op 0 allocs/op
1080+
BenchmarkMathFloat64-12 1000000000 0.2913 ns/op 0 B/op 0 allocs/op
10811081
PASS
1082-
ok _/Users/simonwaldherr/git/golang-benchmarks/math 6.945s
1082+
ok _/Users/simonwaldherr/git/golang-benchmarks/math 7.033s
10831083
```
10841084

10851085
### parse
@@ -1125,11 +1125,11 @@ func BenchmarkParseFloat(b *testing.B) {
11251125
$ go test -bench . -benchmem
11261126
goos: darwin
11271127
goarch: arm64
1128-
BenchmarkParseBool-12 1000000000 0.2954 ns/op 0 B/op 0 allocs/op
1129-
BenchmarkParseInt-12 120146542 10.03 ns/op 0 B/op 0 allocs/op
1130-
BenchmarkParseFloat-12 20124787 58.64 ns/op 0 B/op 0 allocs/op
1128+
BenchmarkParseBool-12 1000000000 0.2967 ns/op 0 B/op 0 allocs/op
1129+
BenchmarkParseInt-12 122791490 9.474 ns/op 0 B/op 0 allocs/op
1130+
BenchmarkParseFloat-12 20593035 58.77 ns/op 0 B/op 0 allocs/op
11311131
PASS
1132-
ok _/Users/simonwaldherr/git/golang-benchmarks/parse 3.943s
1132+
ok _/Users/simonwaldherr/git/golang-benchmarks/parse 3.914s
11331133
```
11341134

11351135
### random
@@ -1201,12 +1201,12 @@ func GenerateRandomString(s int) (string, error) {
12011201
$ go test -bench . -benchmem
12021202
goos: darwin
12031203
goarch: arm64
1204-
BenchmarkMathRand-12 261002004 4.467 ns/op 0 B/op 0 allocs/op
1205-
BenchmarkCryptoRand-12 3391574 352.9 ns/op 48 B/op 3 allocs/op
1206-
BenchmarkCryptoRandString-12 11683560 99.85 ns/op 128 B/op 3 allocs/op
1207-
BenchmarkCryptoRandBytes-12 24723300 48.45 ns/op 32 B/op 1 allocs/op
1204+
BenchmarkMathRand-12 257354553 4.502 ns/op 0 B/op 0 allocs/op
1205+
BenchmarkCryptoRand-12 3245437 349.0 ns/op 48 B/op 3 allocs/op
1206+
BenchmarkCryptoRandString-12 12461068 96.32 ns/op 128 B/op 3 allocs/op
1207+
BenchmarkCryptoRandBytes-12 24781057 47.60 ns/op 32 B/op 1 allocs/op
12081208
PASS
1209-
ok _/Users/simonwaldherr/git/golang-benchmarks/random 5.855s
1209+
ok _/Users/simonwaldherr/git/golang-benchmarks/random 5.824s
12101210
```
12111211

12121212
### regexp
@@ -1260,10 +1260,10 @@ func BenchmarkMatchStringGolibs(b *testing.B) {
12601260
$ go test -bench . -benchmem
12611261
goos: darwin
12621262
goarch: arm64
1263-
BenchmarkMatchString-12 292045 4272 ns/op 10009 B/op 86 allocs/op
1264-
BenchmarkMatchStringCompiled-12 3656646 318.5 ns/op 0 B/op 0 allocs/op
1265-
BenchmarkMatchStringGolibs-12 3770820 318.7 ns/op 0 B/op 0 allocs/op
1263+
BenchmarkMatchString-12 283754 3970 ns/op 10009 B/op 86 allocs/op
1264+
BenchmarkMatchStringCompiled-12 3820686 316.7 ns/op 0 B/op 0 allocs/op
1265+
BenchmarkMatchStringGolibs-12 3689631 319.2 ns/op 0 B/op 0 allocs/op
12661266
PASS
1267-
ok _/Users/simonwaldherr/git/golang-benchmarks/regexp 5.399s
1267+
ok _/Users/simonwaldherr/git/golang-benchmarks/regexp 5.219s
12681268
```
12691269

0 commit comments

Comments
 (0)