-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix issues reported by
go vet
(#2952)
<!-- please provide a detailed description of the changes made in this pull request. --> Passing `go vet` is the minimum level of code quality for a go project. This is addressed here for the full mono-repo. Mainly trivial changes, except for a few `copy lock` issues which could be more meaningful (kept for a separate pull request). Addresses #2954 (but not sufficient to close it yet). Hint for reviewers: it's easier to review each commit individually. <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details>
- Loading branch information
Showing
23 changed files
with
64 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
a73cb22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'Go Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.20
.BenchmarkBinary/EmptyStruct:encode
482.9
ns/op 96 B/op 2 allocs/op291.2
ns/op 96 B/op 2 allocs/op1.66
BenchmarkBinary/EmptyStruct:encode - ns/op
482.9
ns/op291.2
ns/op1.66
BenchmarkBinary/EmptyStruct:decode
248.6
ns/op 0 B/op 0 allocs/op145.4
ns/op 0 B/op 0 allocs/op1.71
BenchmarkBinary/EmptyStruct:decode - ns/op
248.6
ns/op145.4
ns/op1.71
BenchmarkBinary/ShortArraysStruct:encode
778.3
ns/op 192 B/op 4 allocs/op609.4
ns/op 192 B/op 4 allocs/op1.28
BenchmarkBinary/ShortArraysStruct:encode - ns/op
778.3
ns/op609.4
ns/op1.28
BenchmarkBinary/ShortArraysStruct:decode
349.8
ns/op 0 B/op 0 allocs/op230.1
ns/op 0 B/op 0 allocs/op1.52
BenchmarkBinary/ShortArraysStruct:decode - ns/op
349.8
ns/op230.1
ns/op1.52
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
63807299
ns/op 5130 B/op 9 allocs/op31915575
ns/op 5125 B/op 9 allocs/op2.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
63807299
ns/op31915575
ns/op2.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
127516897
ns/op 5139 B/op 9 allocs/op31915575
ns/op 5125 B/op 9 allocs/op4.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
127516897
ns/op31915575
ns/op4.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
254987971
ns/op 5158 B/op 9 allocs/op31915575
ns/op 5125 B/op 9 allocs/op7.99
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
254987971
ns/op31915575
ns/op7.99
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
509971014
ns/op 5196 B/op 10 allocs/op31915575
ns/op 5125 B/op 9 allocs/op15.98
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
509971014
ns/op31915575
ns/op15.98
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
1019616010
ns/op 5528 B/op 13 allocs/op31915575
ns/op 5125 B/op 9 allocs/op31.95
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
1019616010
ns/op31915575
ns/op31.95
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - allocs/op
13
allocs/op9
allocs/op1.44
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
2040020395
ns/op 5736 B/op 15 allocs/op31915575
ns/op 5125 B/op 9 allocs/op63.92
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
2040020395
ns/op31915575
ns/op63.92
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - allocs/op
15
allocs/op9
allocs/op1.67
BenchmarkSigning
84658
ns/op 1856 B/op 36 allocs/op25697
ns/op 64 B/op 1 allocs/op3.29
BenchmarkSigning - ns/op
84658
ns/op25697
ns/op3.29
BenchmarkSigning - B/op
1856
B/op64
B/op29
BenchmarkSigning - allocs/op
36
allocs/op1
allocs/op36
BenchmarkSigning
84375
ns/op 1856 B/op 36 allocs/op25697
ns/op 64 B/op 1 allocs/op3.28
BenchmarkSigning - ns/op
84375
ns/op25697
ns/op3.28
BenchmarkSigning - B/op
1856
B/op64
B/op29
BenchmarkSigning - allocs/op
36
allocs/op1
allocs/op36
BenchmarkVerification
170968
ns/op 864 B/op 19 allocs/op60930
ns/op 0 B/op 0 allocs/op2.81
BenchmarkVerification - ns/op
170968
ns/op60930
ns/op2.81
BenchmarkVerification - B/op
864
B/op0
B/op+∞
BenchmarkVerification - allocs/op
19
allocs/op0
allocs/op+∞
BenchmarkVerification
170022
ns/op 864 B/op 19 allocs/op60930
ns/op 0 B/op 0 allocs/op2.79
BenchmarkVerification - ns/op
170022
ns/op60930
ns/op2.79
BenchmarkVerification - B/op
864
B/op0
B/op+∞
BenchmarkVerification - allocs/op
19
allocs/op0
allocs/op+∞
BenchmarkRandomBytes/random
68.38
ns/op 16 B/op 1 allocs/op32.73
ns/op 4 B/op 1 allocs/op2.09
BenchmarkRandomBytes/random - ns/op
68.38
ns/op32.73
ns/op2.09
BenchmarkRandomBytes/random - B/op
16
B/op4
B/op4
BenchmarkRandomBytes/random
105.8
ns/op 32 B/op 1 allocs/op32.73
ns/op 4 B/op 1 allocs/op3.23
BenchmarkRandomBytes/random - ns/op
105.8
ns/op32.73
ns/op3.23
BenchmarkRandomBytes/random - B/op
32
B/op4
B/op8
BenchmarkRandomBytes/random
266.1
ns/op 112 B/op 1 allocs/op32.73
ns/op 4 B/op 1 allocs/op8.13
BenchmarkRandomBytes/random - ns/op
266.1
ns/op32.73
ns/op8.13
BenchmarkRandomBytes/random - B/op
112
B/op4
B/op28
BenchmarkRandomBytes/random
2308
ns/op 1024 B/op 1 allocs/op32.73
ns/op 4 B/op 1 allocs/op70.52
BenchmarkRandomBytes/random - ns/op
2308
ns/op32.73
ns/op70.52
BenchmarkRandomBytes/random - B/op
1024
B/op4
B/op256
BenchmarkSmall/boltdb-1000-100-16-40/update
1405481
ns/op 41421 B/op 378 allocs/op926569
ns/op 37612 B/op 369 allocs/op1.52
BenchmarkSmall/boltdb-1000-100-16-40/update - ns/op
1405481
ns/op926569
ns/op1.52
BenchmarkSmall/memdb-1000-100-16-40/block
18789110
ns/op 9011885 B/op 163981 allocs/op12279193
ns/op 6595721 B/op 117024 allocs/op1.53
BenchmarkSmall/memdb-1000-100-16-40/block - ns/op
18789110
ns/op12279193
ns/op1.53
BenchmarkSmall/memdb-1000-100-16-40/block - B/op
9011885
B/op6595721
B/op1.37
BenchmarkSmall/memdb-1000-100-16-40/block - allocs/op
163981
allocs/op117024
allocs/op1.40
BenchmarkMedium/boltdb-100000-100-16-40/update
6484751
ns/op 131140 B/op 1021 allocs/op5013464
ns/op 96661 B/op 818 allocs/op1.29
BenchmarkMedium/boltdb-100000-100-16-40/update - ns/op
6484751
ns/op5013464
ns/op1.29
BenchmarkMedium/boltdb-100000-100-16-40/update - B/op
131140
B/op96661
B/op1.36
BenchmarkMedium/boltdb-100000-100-16-40/update - allocs/op
1021
allocs/op818
allocs/op1.25
BenchmarkMedium/memdb-100000-100-16-40/update - B/op
357982
B/op266355
B/op1.34
BenchmarkMedium/memdb-100000-100-16-40/update - allocs/op
7091
allocs/op5150
allocs/op1.38
BenchmarkLevelDBBatchSizes/goleveldb-100000-400-16-40/update - B/op
47362
B/op38986
B/op1.21
BenchmarkLevelDBBatchSizes/goleveldb-100000-400-16-40/update - allocs/op
569
allocs/op455
allocs/op1.25
BenchmarkLevelDBBatchSizes/goleveldb-100000-2000-16-40/update - allocs/op
439
allocs/op340
allocs/op1.29
BenchmarkLevelDBBatchSizes/goleveldb-100000-2000-16-40/block - B/op
108541290
B/op81167928
B/op1.34
BenchmarkLevelDBBatchSizes/goleveldb-100000-2000-16-40/block - allocs/op
1232359
allocs/op1017216
allocs/op1.21
BenchmarkHash/ripemd160
2829
ns/op 25 B/op 1 allocs/op702.6
ns/op 25 B/op 1 allocs/op4.03
BenchmarkHash/ripemd160 - ns/op
2829
ns/op702.6
ns/op4.03
BenchmarkHash/sha2-256
521.4
ns/op 33 B/op 1 allocs/op169.8
ns/op 33 B/op 1 allocs/op3.07
BenchmarkHash/sha2-256 - ns/op
521.4
ns/op169.8
ns/op3.07
BenchmarkHash/sha3-256
1841
ns/op 33 B/op 1 allocs/op690.5
ns/op 33 B/op 1 allocs/op2.67
BenchmarkHash/sha3-256 - ns/op
1841
ns/op690.5
ns/op2.67
BenchmarkWriteSecretConnection
6206
ns/op 0 B/op 0 allocs/op4022
ns/op 0 B/op 0 allocs/op1.54
BenchmarkWriteSecretConnection - ns/op
6206
ns/op4022
ns/op1.54
BenchmarkReadSecretConnection
3863
ns/op 0 B/op 0 allocs/op2349
ns/op 0 B/op 0 allocs/op1.64
BenchmarkReadSecretConnection - ns/op
3863
ns/op2349
ns/op1.64
This comment was automatically generated by workflow using github-action-benchmark.
CC: @ajnavarro @thehowl @zivkovicmilos