Fix checksum bench
This commit is contained in:
parent
7f3343169a
commit
57aba1a5c4
4 changed files with 7 additions and 5 deletions
|
|
@ -28,6 +28,6 @@ func BenchmarkGChecksum(b *testing.B) {
|
|||
}
|
||||
b.ResetTimer()
|
||||
for i := 0; i < b.N; i++ {
|
||||
checksum.Checksum(packet[i%1000], 0)
|
||||
checksum.ChecksumDefault(packet[i%1000], 0)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue