Skip to content

Commit

Permalink
benchmark user session hash function - to help with string casting ti…
Browse files Browse the repository at this point in the history
…cket
  • Loading branch information
joshblakeley committed May 9, 2018
1 parent 9f13654 commit e05365a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions user/session_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package user

import "testing"

var session SessionState

func BenchmarkHash(b *testing.B) {
for i := 0; i < b.N; i++ {
session.Hash()
}
}

0 comments on commit e05365a

Please sign in to comment.