added output test

This commit is contained in:
obscuren
2014-11-18 12:18:27 +01:00
parent 34f29d57b6
commit e08aba5dd9
3 changed files with 22 additions and 2 deletions

View File

@ -497,6 +497,7 @@ func BenchmarkUpdate(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
trie.Update(fmt.Sprintf("aaaaaaaaaaaaaaa%d", j), "value")
trie.Update(fmt.Sprintf("aaaaaaaaaaaaaaa%d", i), "value")
}
fmt.Println(trie.root)
}