mirror of
https://github.com/vocdoni/arbo.git
synced 2026-01-10 14:28:08 -05:00
Add TestAddBatchBench
TestAddBatchBench nCPU: 4, nLeafs: 50000, hash: Blake2b, db: leveldb Add loop: 9.304195479s AddBatch: 817.590526ms
This commit is contained in:
14
tree_test.go
14
tree_test.go
@@ -14,13 +14,13 @@ func TestAddTestVectors(t *testing.T) {
|
||||
c := qt.New(t)
|
||||
|
||||
// Poseidon test vectors generated using https://github.com/iden3/circomlib smt.js
|
||||
// testVectorsPoseidon := []string{
|
||||
// "0000000000000000000000000000000000000000000000000000000000000000",
|
||||
// "13578938674299138072471463694055224830892726234048532520316387704878000008795",
|
||||
// "5412393676474193513566895793055462193090331607895808993925969873307089394741",
|
||||
// "14204494359367183802864593755198662203838502594566452929175967972147978322084",
|
||||
// }
|
||||
// testAdd(c, HashFunctionPoseidon, testVectorsPoseidon)
|
||||
testVectorsPoseidon := []string{
|
||||
"0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"13578938674299138072471463694055224830892726234048532520316387704878000008795",
|
||||
"5412393676474193513566895793055462193090331607895808993925969873307089394741",
|
||||
"14204494359367183802864593755198662203838502594566452929175967972147978322084",
|
||||
}
|
||||
testAdd(c, HashFunctionPoseidon, testVectorsPoseidon)
|
||||
|
||||
testVectorsSha256 := []string{
|
||||
"0000000000000000000000000000000000000000000000000000000000000000",
|
||||
|
||||
Reference in New Issue
Block a user