Skip to content

Commit

Permalink
Add benchmark for seed generation
Browse files Browse the repository at this point in the history
  • Loading branch information
moncho committed Sep 2, 2017
1 parent c22fd64 commit c9d3206
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions warp/seeds_benchmark_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package warp

import "testing"

//BenchmarkSeedGeneration benchmarks warpwallet seed generation
func BenchmarkSeedGeneration(b *testing.B) {
pass := "uyVkW5vKXX3RpvnUcj7U3Q"
salt := "zXrlmk3p5Lxr0vjJKdcJWQ"
for i := 0; i < b.N; i++ {
xorSeeds(
scryptSeed(pass, salt),
pbkdf2Seed(pass, salt))()
}
}

0 comments on commit c9d3206

Please sign in to comment.