Class ElementIngestTest
- java.lang.Object
-
- uk.gov.gchq.gaffer.performancetesting.ingest.ElementIngestTest
-
public class ElementIngestTest extends Object
This class measures the time taken to add some elements to the providedGraph
.The test is configured using a
ElementIngestTestProperties
. This specifies the class to be used to generate the random elements and the number of random elements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ElementIngestTest.ElementSupplierFactory
-
Constructor Summary
Constructors Constructor Description ElementIngestTest(uk.gov.gchq.gaffer.graph.Graph graph, ElementIngestTestProperties testProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
double
run()
Runs a test of adding elements in batches.
-
-
-
Constructor Detail
-
ElementIngestTest
public ElementIngestTest(uk.gov.gchq.gaffer.graph.Graph graph, ElementIngestTestProperties testProperties)
-
-
Method Detail
-
run
public double run()
Runs a test of adding elements in batches.- Returns:
- The rate at which elements were added (number of elements per second).
-
main
public static void main(String[] args)
-
-