Skip to content

Commit

Permalink
constant key for benchmarks()
Browse files Browse the repository at this point in the history
  • Loading branch information
tildeleb committed Dec 20, 2014
1 parent 562f6fd commit 5d4eea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ht.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func benchmark32s(n int) {
case 4:
start = time.Now()
for i := 0; i < n; i++ {
bs[0], bs[1], bs[2], bs[3] = byte(i), byte(i>>8), byte(i>>16), byte(i>>24)
//bs[0], bs[1], bs[2], bs[3] = byte(i), byte(i>>8), byte(i>>16), byte(i>>24)
//_, _ = jenkins.Jenkins364(bs, 0, 0, 0)
//_ = jenkins.Hash232(bs, 0)
//_, _ = jenkins.Jenkins364(bs, 0, 0, 0)
Expand All @@ -421,7 +421,7 @@ func benchmark32s(n int) {
default:
start = time.Now()
for i := 0; i < n; i++ {
bs[0], bs[1], bs[2], bs[3], bs[4], bs[5], bs[6], bs[7] = byte(i), byte(i>>8), byte(i>>16), byte(i>>24), byte(i>>32), byte(i>>40), byte(i>>48), byte(i>>56)
//bs[0], bs[1], bs[2], bs[3], bs[4], bs[5], bs[6], bs[7] = byte(i), byte(i>>8), byte(i>>16), byte(i>>24), byte(i>>32), byte(i>>40), byte(i>>48), byte(i>>56)
_ = aeshash.Hash(bs, 0)
//_ = siphash.Hash(0, 0, bs)
}
Expand Down

0 comments on commit 5d4eea1

Please sign in to comment.