-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gnolang): ensure complete Uverse initialization (#2997)
Fixes #2067. UverseNode now distinguishes when it's uninitialized, initializing and initialized. In combination with calling Uverse() at init, we make sure that after package initialization we always have the same result from Uverse() and UverseNode() and we don't have issues like those pointed out in #2067.
- Loading branch information
Showing
3 changed files
with
39 additions
and
26 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
0b2c67e
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
480
ns/op 96 B/op 2 allocs/op286.9
ns/op 96 B/op 2 allocs/op1.67
BenchmarkBinary/EmptyStruct:encode - ns/op
480
ns/op286.9
ns/op1.67
BenchmarkBinary/EmptyStruct:decode
270.2
ns/op 0 B/op 0 allocs/op133.3
ns/op 0 B/op 0 allocs/op2.03
BenchmarkBinary/EmptyStruct:decode - ns/op
270.2
ns/op133.3
ns/op2.03
BenchmarkBinary/ShortArraysStruct:encode
756.7
ns/op 192 B/op 4 allocs/op616.5
ns/op 192 B/op 4 allocs/op1.23
BenchmarkBinary/ShortArraysStruct:encode - ns/op
756.7
ns/op616.5
ns/op1.23
BenchmarkBinary/ShortArraysStruct:decode
399.7
ns/op 0 B/op 0 allocs/op215.1
ns/op 0 B/op 0 allocs/op1.86
BenchmarkBinary/ShortArraysStruct:decode - ns/op
399.7
ns/op215.1
ns/op1.86
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
63647235
ns/op 5130 B/op 9 allocs/op31901806
ns/op 5125 B/op 9 allocs/op2.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
63647235
ns/op31901806
ns/op2.00
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
127267147
ns/op 5139 B/op 9 allocs/op31901806
ns/op 5125 B/op 9 allocs/op3.99
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
127267147
ns/op31901806
ns/op3.99
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
254368631
ns/op 5158 B/op 9 allocs/op31901806
ns/op 5125 B/op 9 allocs/op7.97
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
254368631
ns/op31901806
ns/op7.97
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
508759844
ns/op 5196 B/op 10 allocs/op31901806
ns/op 5125 B/op 9 allocs/op15.95
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
508759844
ns/op31901806
ns/op15.95
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
1017185385
ns/op 5736 B/op 15 allocs/op31901806
ns/op 5125 B/op 9 allocs/op31.88
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
1017185385
ns/op31901806
ns/op31.88
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - allocs/op
15
allocs/op9
allocs/op1.67
BenchmarkBcryptGenerateFromPassword/benchmark-security-param
2034651179
ns/op 5528 B/op 13 allocs/op31901806
ns/op 5125 B/op 9 allocs/op63.78
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - ns/op
2034651179
ns/op31901806
ns/op63.78
BenchmarkBcryptGenerateFromPassword/benchmark-security-param - allocs/op
13
allocs/op9
allocs/op1.44
BenchmarkSigning
83525
ns/op 1856 B/op 36 allocs/op25716
ns/op 64 B/op 1 allocs/op3.25
BenchmarkSigning - ns/op
83525
ns/op25716
ns/op3.25
BenchmarkSigning - B/op
1856
B/op64
B/op29
BenchmarkSigning - allocs/op
36
allocs/op1
allocs/op36
BenchmarkSigning
84229
ns/op 1856 B/op 36 allocs/op25716
ns/op 64 B/op 1 allocs/op3.28
BenchmarkSigning - ns/op
84229
ns/op25716
ns/op3.28
BenchmarkSigning - B/op
1856
B/op64
B/op29
BenchmarkSigning - allocs/op
36
allocs/op1
allocs/op36
BenchmarkVerification
165923
ns/op 864 B/op 19 allocs/op61337
ns/op 0 B/op 0 allocs/op2.71
BenchmarkVerification - ns/op
165923
ns/op61337
ns/op2.71
BenchmarkVerification - B/op
864
B/op0
B/op+∞
BenchmarkVerification - allocs/op
19
allocs/op0
allocs/op+∞
BenchmarkVerification
171044
ns/op 864 B/op 19 allocs/op61337
ns/op 0 B/op 0 allocs/op2.79
BenchmarkVerification - ns/op
171044
ns/op61337
ns/op2.79
BenchmarkVerification - B/op
864
B/op0
B/op+∞
BenchmarkVerification - allocs/op
19
allocs/op0
allocs/op+∞
BenchmarkImmutableAvlTreeMemDB
4090475
ns/op 1001607 B/op 20374 allocs/op3220999
ns/op 836512 B/op 16992 allocs/op1.27
BenchmarkImmutableAvlTreeMemDB - ns/op
4090475
ns/op3220999
ns/op1.27
BenchmarkRandomBytes/random
68.42
ns/op 16 B/op 1 allocs/op32.77
ns/op 4 B/op 1 allocs/op2.09
BenchmarkRandomBytes/random - ns/op
68.42
ns/op32.77
ns/op2.09
BenchmarkRandomBytes/random - B/op
16
B/op4
B/op4
BenchmarkRandomBytes/random
105.7
ns/op 32 B/op 1 allocs/op32.77
ns/op 4 B/op 1 allocs/op3.23
BenchmarkRandomBytes/random - ns/op
105.7
ns/op32.77
ns/op3.23
BenchmarkRandomBytes/random - B/op
32
B/op4
B/op8
BenchmarkRandomBytes/random
265.3
ns/op 112 B/op 1 allocs/op32.77
ns/op 4 B/op 1 allocs/op8.10
BenchmarkRandomBytes/random - ns/op
265.3
ns/op32.77
ns/op8.10
BenchmarkRandomBytes/random - B/op
112
B/op4
B/op28
BenchmarkRandomBytes/random
2310
ns/op 1024 B/op 1 allocs/op32.77
ns/op 4 B/op 1 allocs/op70.49
BenchmarkRandomBytes/random - ns/op
2310
ns/op32.77
ns/op70.49
BenchmarkRandomBytes/random - B/op
1024
B/op4
B/op256
BenchmarkSmall/boltdb-1000-100-16-40/update
1332282
ns/op 40798 B/op 372 allocs/op981912
ns/op 37696 B/op 375 allocs/op1.36
BenchmarkSmall/boltdb-1000-100-16-40/update - ns/op
1332282
ns/op981912
ns/op1.36
BenchmarkSmall/boltdb-1000-100-16-40/block - B/op
5606453
B/op4631094
B/op1.21
BenchmarkSmall/memdb-1000-100-16-40/block
16151357
ns/op 9392961 B/op 171570 allocs/op12241675
ns/op 6587137 B/op 116865 allocs/op1.32
BenchmarkSmall/memdb-1000-100-16-40/block - ns/op
16151357
ns/op12241675
ns/op1.32
BenchmarkSmall/memdb-1000-100-16-40/block - B/op
9392961
B/op6587137
B/op1.43
BenchmarkSmall/memdb-1000-100-16-40/block - allocs/op
171570
allocs/op116865
allocs/op1.47
BenchmarkMedium/boltdb-100000-100-16-40/update
7155641
ns/op 136720 B/op 1056 allocs/op5410085
ns/op 100865 B/op 854 allocs/op1.32
BenchmarkMedium/boltdb-100000-100-16-40/update - ns/op
7155641
ns/op5410085
ns/op1.32
BenchmarkMedium/boltdb-100000-100-16-40/update - B/op
136720
B/op100865
B/op1.36
BenchmarkMedium/boltdb-100000-100-16-40/update - allocs/op
1056
allocs/op854
allocs/op1.24
BenchmarkMedium/memdb-100000-100-16-40/update
1290219
ns/op 393269 B/op 7797 allocs/op997219
ns/op 254581 B/op 4910 allocs/op1.29
BenchmarkMedium/memdb-100000-100-16-40/update - ns/op
1290219
ns/op997219
ns/op1.29
BenchmarkMedium/memdb-100000-100-16-40/update - B/op
393269
B/op254581
B/op1.54
BenchmarkMedium/memdb-100000-100-16-40/update - allocs/op
7797
allocs/op4910
allocs/op1.59
BenchmarkLevelDBBatchSizes/goleveldb-100000-400-16-40/update - B/op
48253
B/op39101
B/op1.23
BenchmarkLevelDBBatchSizes/goleveldb-100000-400-16-40/update - allocs/op
583
allocs/op458
allocs/op1.27
BenchmarkLevelDBBatchSizes/goleveldb-100000-2000-16-40/block - B/op
96313492
B/op79373362
B/op1.21
BenchmarkHash/ripemd160
2841
ns/op 25 B/op 1 allocs/op703.5
ns/op 25 B/op 1 allocs/op4.04
BenchmarkHash/ripemd160 - ns/op
2841
ns/op703.5
ns/op4.04
BenchmarkHash/sha2-256
523.3
ns/op 33 B/op 1 allocs/op170.9
ns/op 33 B/op 1 allocs/op3.06
BenchmarkHash/sha2-256 - ns/op
523.3
ns/op170.9
ns/op3.06
BenchmarkHash/sha3-256
1840
ns/op 33 B/op 1 allocs/op713.6
ns/op 33 B/op 1 allocs/op2.58
BenchmarkHash/sha3-256 - ns/op
1840
ns/op713.6
ns/op2.58
BenchmarkWriteSecretConnection
6409
ns/op 0 B/op 0 allocs/op4090
ns/op 0 B/op 0 allocs/op1.57
BenchmarkWriteSecretConnection - ns/op
6409
ns/op4090
ns/op1.57
BenchmarkReadSecretConnection
3666
ns/op 0 B/op 0 allocs/op2360
ns/op 0 B/op 0 allocs/op1.55
BenchmarkReadSecretConnection - ns/op
3666
ns/op2360
ns/op1.55
This comment was automatically generated by workflow using github-action-benchmark.
CC: @ajnavarro @thehowl @zivkovicmilos