Add TestAddBatchBench

TestAddBatchBench
	nCPU: 4, nLeafs: 50000, hash: Blake2b, db: leveldb
		Add loop:	9.304195479s
		AddBatch:	817.590526ms
This commit is contained in:
arnaucube
2021-05-20 11:06:09 +02:00
parent 13378d338e
commit 2a57e223ef
6 changed files with 76 additions and 55 deletions

View File

@@ -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",