Skip to content

Commit 8115985

Browse files
committed
after-init fixes
1 parent 8e8fe09 commit 8115985

File tree

8 files changed

+19
-13
lines changed

8 files changed

+19
-13
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ our hardware in the paper .
66

77
## Benchmarks List
88

9-
9+
* Performance Benchmark
10+
* Batching Benchmark
11+
* Blockchain Processing Simulation Benchmark
1012

src/main/scala/benchmarks/BatchingBenchmark.scala

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package scorex.crypto.authds.benchmarks
22

3-
import scorex.crypto.authds.TwoPartyTests
3+
import benchmarks.helpers._
44
import scorex.crypto.authds.avltree.batch._
55
import scorex.crypto.authds.avltree.legacy.{AVLModifyProof, AVLTree}
66
import scorex.utils.Random
77
import scorex.crypto.authds.avltree._
8+
89
import scala.util.Success
910

1011
/**
@@ -13,10 +14,10 @@ import scala.util.Success
1314
object BatchingBenchmark extends App with TwoPartyTests {
1415

1516
println ("treeSize, numLookups, proofSizeForEach")
16-
benchSizeLookupsInTree(1000000, Seq(1000), false, false)
17-
benchSizeLookupsInTree(1000000, Seq(1000), true, false)
18-
benchSizeLookupsInTree(1000000, Seq(1000), false, true)
19-
benchSizeLookupsInTree(1000000, Seq(1000), true, true)
17+
benchSizeLookupsInTree(1000000, Seq(1000), useFreshLookups = false, halfInserts = false)
18+
benchSizeLookupsInTree(1000000, Seq(1000), useFreshLookups = true, halfInserts = false)
19+
benchSizeLookupsInTree(1000000, Seq(1000), useFreshLookups = false, halfInserts = true)
20+
benchSizeLookupsInTree(1000000, Seq(1000), useFreshLookups = true, halfInserts = true)
2021

2122
bench2()
2223
// timeBenchmarksNewContinuous

src/main/scala/benchmarks/BlockchainBench.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
package scorex.crypto.authds.benchmarks
33

4+
/*
45
import com.google.common.primitives.Ints
56
import org.mapdb.DB.TreeMapMaker
67
import org.mapdb.{BTreeMap, DBMaker, Serializer}
@@ -27,6 +28,7 @@ trait BenchmarkCommons {
2728
val perBlock = additionsInBlock + modificationsInBlock
2829
}
2930
31+
3032
trait TwoPartyCommons extends BenchmarkCommons with UpdateF[TreapValue] {
3133
lazy val db = DBMaker
3234
.fileDB("/tmp/proofs")
@@ -363,4 +365,4 @@ object BlockchainBench extends BenchmarkLaunchers with App {
363365
runBatchProver()
364366
//runBatchVerifier()
365367
}
366-
368+
*/

src/main/scala/benchmarks/PerformanceMeter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package scorex.crypto.authds.benchmarks
22

3+
import benchmarks.helpers.TwoPartyTests
34
import scorex.crypto.authds.avltree.legacy.AVLTree
45
import scorex.crypto.authds.legacy.treap._
5-
import scorex.crypto.authds.TwoPartyTests
66
import scorex.crypto.hash.Blake2b256Unsafe
77

88

src/main/scala/benchmarks/helpers/BatchTesting.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
package scorex.crypto.authds.avltree.batch
1+
package benchmarks.helpers
22

33
import scorex.crypto.authds.TwoPartyDictionary.Label
44
import scorex.crypto.authds.UpdateF
55
import scorex.crypto.authds.avltree._
6+
import scorex.crypto.authds.avltree.batch.Modification
67
import scorex.crypto.authds.avltree.legacy.{AVLModifyProof, AVLTree}
78

89
import scala.collection.mutable.ArrayBuffer

src/main/scala/benchmarks/helpers/Gzip.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package scorex.crypto.authds.benchmarks
1+
package benchmarks.helpers
22

33
import java.io.{ByteArrayInputStream, ByteArrayOutputStream}
44
import java.util.zip.{GZIPInputStream, GZIPOutputStream}

src/main/scala/benchmarks/helpers/TestingCommons.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package scorex.crypto
1+
package benchmarks.helpers
22

33
import java.io.File
44

src/main/scala/benchmarks/helpers/TwoPartyTests.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package scorex.crypto.authds
1+
package benchmarks.helpers
22

33
import com.google.common.primitives.Longs
4-
import scorex.crypto.TestingCommons
54
import scorex.crypto.authds.TwoPartyDictionary.Label
5+
import scorex.crypto.authds._
66
import scorex.crypto.authds.avltree.AVLValue
77
import scorex.crypto.authds.legacy.treap.Constants.TreapValue
88
import scorex.crypto.hash.Sha256

0 commit comments

Comments
 (0)