GG-12225 Create consistence benchmark
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/918cd3e6 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/918cd3e6 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/918cd3e6 Branch: refs/heads/ignite-5398 Commit: 918cd3e6abf7bb72a9f78aff9d0626a489728aae Parents: 74840ae Author: vd-pyatkov <[email protected]> Authored: Tue May 30 13:30:40 2017 +0300 Committer: vd-pyatkov <[email protected]> Committed: Tue May 30 13:30:40 2017 +0300 ---------------------------------------------------------------------- .../yardstick/IgniteBenchmarkArguments.java | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/918cd3e6/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteBenchmarkArguments.java ---------------------------------------------------------------------- diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteBenchmarkArguments.java b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteBenchmarkArguments.java index fd07841..cc3557d 100644 --- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteBenchmarkArguments.java +++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteBenchmarkArguments.java @@ -168,6 +168,14 @@ public class IgniteBenchmarkArguments { private boolean keysPerThread; /** */ + @Parameter(names = {"-pc", "--partitionedCachesNumber"}, description = "Number of partitioned caches") + private int partitionedCachesNumber = 1; + + /** */ + @Parameter(names = {"-rc", "--replicatedCachesNumber"}, description = "Number of replicated caches") + private int replicatedCachesNumber = 1; + + /** */ @Parameter(names = {"-pp", "--printPartitionStats"}, description = "Print partition statistics") private boolean printPartStats; @@ -179,6 +187,10 @@ public class IgniteBenchmarkArguments { @Parameter(names = {"-ps", "--pageSize"}, description = "Page size") private int pageSize = MemoryConfiguration.DFLT_PAGE_SIZE; + /** */ + @Parameter(names = {"-prt", "--partitions"}, description = "Number of cache partitions") + private int partitions = 10; + /** * @return List of enabled load test operations. */ @@ -430,6 +442,27 @@ public class IgniteBenchmarkArguments { } /** + * @return Number of partitioned caches. + */ + public int partitionedCachesNumber() { + return partitionedCachesNumber; + } + + /** + * @return Number of replicated caches. + */ + public int replicatedCachesNumber() { + return replicatedCachesNumber; + } + + /** + * @return Number of cache partitions. + */ + public int partitions() { + return partitions; + } + + /** * @return Description. */ public String description() {
