Added benchmark IgnitePutOffHeapIndexedValue8Benchmark.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/9d9e61fc Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/9d9e61fc Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/9d9e61fc Branch: refs/heads/ignite-1.9 Commit: 9d9e61fc9db0f79daaa87b7ec2c89c652bd3beaa Parents: 3db0971 Author: sboikov <[email protected]> Authored: Wed Jan 25 14:37:57 2017 +0300 Committer: sboikov <[email protected]> Committed: Wed Jan 25 14:37:57 2017 +0300 ---------------------------------------------------------------------- modules/yardstick/config/ignite-base-config.xml | 25 ++++++++++++++++ .../IgnitePutOffHeapIndexedValue8Benchmark.java | 30 ++++++++++++++++++++ 2 files changed, 55 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/9d9e61fc/modules/yardstick/config/ignite-base-config.xml ---------------------------------------------------------------------- diff --git a/modules/yardstick/config/ignite-base-config.xml b/modules/yardstick/config/ignite-base-config.xml index 615cb42..e363674 100644 --- a/modules/yardstick/config/ignite-base-config.xml +++ b/modules/yardstick/config/ignite-base-config.xml @@ -127,6 +127,31 @@ </bean> <bean class="org.apache.ignite.configuration.CacheConfiguration"> + <property name="name" value="atomic-index-offheap"/> + + <property name="cacheMode" value="PARTITIONED"/> + + <property name="atomicityMode" value="ATOMIC"/> + + <property name="swapEnabled" value="false"/> + + <property name="memoryMode" value="OFFHEAP_TIERED"/> + + <property name="indexedTypes"> + <list> + <value>java.lang.Integer</value> + <value>org.apache.ignite.yardstick.cache.model.Person1</value> + + <value>java.lang.Integer</value> + <value>org.apache.ignite.yardstick.cache.model.Person2</value> + + <value>java.lang.Integer</value> + <value>org.apache.ignite.yardstick.cache.model.Person8</value> + </list> + </property> + </bean> + + <bean class="org.apache.ignite.configuration.CacheConfiguration"> <property name="name" value="atomic-index-with-eviction"/> <property name="evictionPolicy"> http://git-wip-us.apache.org/repos/asf/ignite/blob/9d9e61fc/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgnitePutOffHeapIndexedValue8Benchmark.java ---------------------------------------------------------------------- diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgnitePutOffHeapIndexedValue8Benchmark.java b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgnitePutOffHeapIndexedValue8Benchmark.java new file mode 100644 index 0000000..85202cd --- /dev/null +++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgnitePutOffHeapIndexedValue8Benchmark.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.ignite.yardstick.cache; + +import org.apache.ignite.IgniteCache; + +/** + * Ignite benchmark that performs put operations for entity with indexed fields. + */ +public class IgnitePutOffHeapIndexedValue8Benchmark extends IgnitePutIndexedValue8Benchmark { + /** {@inheritDoc} */ + @Override protected IgniteCache<Integer, Object> cache() { + return ignite().cache("atomic-index-offheap"); + } +}
