-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gnovm): correct type for shift expression (#1775)
[shift operator where first operand is an untyped bigint always results in a bigint](#1462) is not resolved by #1426, it's fixed by this one. ================================================================= 1. This is a fix to /issues/1462; 3. **NOTE**: This PR should be reviewed following the potential merger of #1426, from which it is both decoupled and dependent. #1426 serves as base branch of this one. 4. **NOTE**: Currently, this PR displays all code including that from #1426, because it is being compared to the master branch instead of differing against #1426 directly. --------- Co-authored-by: Morgan <[email protected]> Co-authored-by: Marc Vertes <[email protected]>
- Loading branch information
1 parent
912a5db
commit d63918f
Showing
117 changed files
with
1,640 additions
and
144 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
Oops, something went wrong.
d63918f
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
462
ns/op 96 B/op 2 allocs/op290.1
ns/op 96 B/op 2 allocs/op1.59
BenchmarkBinary/EmptyStruct:encode - ns/op
462
ns/op290.1
ns/op1.59
BenchmarkBinary/EmptyStruct:decode
241.6
ns/op 0 B/op 0 allocs/op144.2
ns/op 0 B/op 0 allocs/op1.68
BenchmarkBinary/EmptyStruct:decode - ns/op
241.6
ns/op144.2
ns/op1.68
BenchmarkBinary/ShortArraysStruct:encode
749.4
ns/op 192 B/op 4 allocs/op614.6
ns/op 192 B/op 4 allocs/op1.22
BenchmarkBinary/ShortArraysStruct:encode - ns/op
749.4
ns/op614.6
ns/op1.22
BenchmarkBinary/ShortArraysStruct:decode
408.9
ns/op 0 B/op 0 allocs/op231.2
ns/op 0 B/op 0 allocs/op1.77
BenchmarkBinary/ShortArraysStruct:decode - ns/op
408.9
ns/op231.2
ns/op1.77
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
63828036
ns/op 5130 B/op 9 allocs/op31977810
ns/op 5125 B/op 9 allocs/op2.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
63828036
ns/op31977810
ns/op2.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
127551394
ns/op 5139 B/op 9 allocs/op31977810
ns/op 5125 B/op 9 allocs/op3.99
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
127551394
ns/op31977810
ns/op3.99
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
254985938
ns/op 5158 B/op 9 allocs/op31977810
ns/op 5125 B/op 9 allocs/op7.97
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
254985938
ns/op31977810
ns/op7.97
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
510003712
ns/op 5196 B/op 10 allocs/op31977810
ns/op 5125 B/op 9 allocs/op15.95
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
510003712
ns/op31977810
ns/op15.95
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
1019901991
ns/op 5736 B/op 15 allocs/op31977810
ns/op 5125 B/op 9 allocs/op31.89
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
1019901991
ns/op31977810
ns/op31.89
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - allocs/op
15
allocs/op9
allocs/op1.67
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
2043314939
ns/op 5736 B/op 15 allocs/op31977810
ns/op 5125 B/op 9 allocs/op63.90
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
2043314939
ns/op31977810
ns/op63.90
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - allocs/op
15
allocs/op9
allocs/op1.67
BenchmarkSigning
83538
ns/op 1856 B/op 36 allocs/op25683
ns/op 64 B/op 1 allocs/op3.25
BenchmarkSigning - ns/op
83538
ns/op25683
ns/op3.25
BenchmarkSigning - B/op
1856
B/op64
B/op29
BenchmarkSigning - allocs/op
36
allocs/op1
allocs/op36
BenchmarkSigning
84188
ns/op 1856 B/op 36 allocs/op25683
ns/op 64 B/op 1 allocs/op3.28
BenchmarkSigning - ns/op
84188
ns/op25683
ns/op3.28
BenchmarkSigning - B/op
1856
B/op64
B/op29
BenchmarkSigning - allocs/op
36
allocs/op1
allocs/op36
BenchmarkVerification
165678
ns/op 864 B/op 19 allocs/op61420
ns/op 0 B/op 0 allocs/op2.70
BenchmarkVerification - ns/op
165678
ns/op61420
ns/op2.70
BenchmarkVerification - B/op
864
B/op0
B/op+∞
BenchmarkVerification - allocs/op
19
allocs/op0
allocs/op+∞
BenchmarkVerification
166390
ns/op 864 B/op 19 allocs/op61420
ns/op 0 B/op 0 allocs/op2.71
BenchmarkVerification - ns/op
166390
ns/op61420
ns/op2.71
BenchmarkVerification - B/op
864
B/op0
B/op+∞
BenchmarkVerification - allocs/op
19
allocs/op0
allocs/op+∞
BenchmarkRandomBytes/random
66.37
ns/op 16 B/op 1 allocs/op33.36
ns/op 4 B/op 1 allocs/op1.99
BenchmarkRandomBytes/random - ns/op
66.37
ns/op33.36
ns/op1.99
BenchmarkRandomBytes/random - B/op
16
B/op4
B/op4
BenchmarkRandomBytes/random
101.6
ns/op 32 B/op 1 allocs/op33.36
ns/op 4 B/op 1 allocs/op3.05
BenchmarkRandomBytes/random - ns/op
101.6
ns/op33.36
ns/op3.05
BenchmarkRandomBytes/random - B/op
32
B/op4
B/op8
BenchmarkRandomBytes/random
261
ns/op 112 B/op 1 allocs/op33.36
ns/op 4 B/op 1 allocs/op7.82
BenchmarkRandomBytes/random - ns/op
261
ns/op33.36
ns/op7.82
BenchmarkRandomBytes/random - B/op
112
B/op4
B/op28
BenchmarkRandomBytes/random
2262
ns/op 1024 B/op 1 allocs/op33.36
ns/op 4 B/op 1 allocs/op67.81
BenchmarkRandomBytes/random - ns/op
2262
ns/op33.36
ns/op67.81
BenchmarkRandomBytes/random - B/op
1024
B/op4
B/op256
BenchmarkSmall/boltdb-1000-100-16-40/update
1428680
ns/op 42141 B/op 385 allocs/op991790
ns/op 37740 B/op 374 allocs/op1.44
BenchmarkSmall/boltdb-1000-100-16-40/update - ns/op
1428680
ns/op991790
ns/op1.44
BenchmarkSmall/goleveldb-1000-100-16-40/block - B/op
5556889
B/op4461049
B/op1.25
BenchmarkSmall/goleveldb-1000-100-16-40/block - allocs/op
60381
allocs/op47439
allocs/op1.27
BenchmarkSmall/memdb-1000-100-16-40/block - B/op
9706602
B/op6612647
B/op1.47
BenchmarkSmall/memdb-1000-100-16-40/block - allocs/op
176767
allocs/op117309
allocs/op1.51
BenchmarkSmall/memdb-1000-100-16-40/block
15506404
ns/op 12001079 B/op 222151 allocs/op12760783
ns/op 6612647 B/op 117309 allocs/op1.22
BenchmarkSmall/memdb-1000-100-16-40/block - ns/op
15506404
ns/op12760783
ns/op1.22
BenchmarkSmall/memdb-1000-100-16-40/block - B/op
12001079
B/op6612647
B/op1.81
BenchmarkSmall/memdb-1000-100-16-40/block - allocs/op
222151
allocs/op117309
allocs/op1.89
BenchmarkMedium/boltdb-100000-100-16-40/update
6612053
ns/op 126248 B/op 973 allocs/op4801754
ns/op 96291 B/op 815 allocs/op1.38
BenchmarkMedium/boltdb-100000-100-16-40/update - ns/op
6612053
ns/op4801754
ns/op1.38
BenchmarkMedium/boltdb-100000-100-16-40/update - B/op
126248
B/op96291
B/op1.31
BenchmarkMedium/memdb-100000-100-16-40/update - B/op
381560
B/op275733
B/op1.38
BenchmarkMedium/memdb-100000-100-16-40/update - allocs/op
7558
allocs/op5347
allocs/op1.41
BenchmarkLevelDBBatchSizes/goleveldb-100000-400-16-40/update - B/op
50017
B/op39126
B/op1.28
BenchmarkLevelDBBatchSizes/goleveldb-100000-400-16-40/update - allocs/op
610
allocs/op454
allocs/op1.34
BenchmarkLevelDBBatchSizes/goleveldb-100000-2000-16-40/update - allocs/op
447
allocs/op340
allocs/op1.31
BenchmarkLevelDBBatchSizes/goleveldb-100000-2000-16-40/block - allocs/op
1218856
allocs/op1006651
allocs/op1.21
BenchmarkLevelDBBatchSizes/goleveldb-100000-2000-16-40/block - B/op
118665400
B/op86867917
B/op1.37
BenchmarkLevelDBBatchSizes/goleveldb-100000-2000-16-40/block - allocs/op
1421257
allocs/op1006651
allocs/op1.41
BenchmarkHash/ripemd160
2818
ns/op 25 B/op 1 allocs/op703.9
ns/op 25 B/op 1 allocs/op4.00
BenchmarkHash/ripemd160 - ns/op
2818
ns/op703.9
ns/op4.00
BenchmarkHash/sha2-256
500.6
ns/op 33 B/op 1 allocs/op168.8
ns/op 33 B/op 1 allocs/op2.97
BenchmarkHash/sha2-256 - ns/op
500.6
ns/op168.8
ns/op2.97
BenchmarkHash/sha3-256
1814
ns/op 33 B/op 1 allocs/op716.7
ns/op 33 B/op 1 allocs/op2.53
BenchmarkHash/sha3-256 - ns/op
1814
ns/op716.7
ns/op2.53
BenchmarkWriteSecretConnection
5076
ns/op 0 B/op 0 allocs/op4023
ns/op 0 B/op 0 allocs/op1.26
BenchmarkWriteSecretConnection - ns/op
5076
ns/op4023
ns/op1.26
BenchmarkReadSecretConnection
2866
ns/op 0 B/op 0 allocs/op2361
ns/op 0 B/op 0 allocs/op1.21
BenchmarkReadSecretConnection - ns/op
2866
ns/op2361
ns/op1.21
This comment was automatically generated by workflow using github-action-benchmark.
CC: @ajnavarro @thehowl @zivkovicmilos