Skip to content

Instantly share code, notes, and snippets.

package com.hazelcast.query.impl;
import com.hazelcast.config.Config;
import com.hazelcast.config.EvictionPolicy;
import com.hazelcast.config.InMemoryFormat;
import com.hazelcast.config.MapAttributeConfig;
import com.hazelcast.config.MapConfig;
import com.hazelcast.config.MapIndexConfig;
import com.hazelcast.config.MaxSizeConfig;
import com.hazelcast.core.Hazelcast;
package com.hazelcast.query.impl;
import com.hazelcast.cluster.SystemClockChangeTest;
import com.hazelcast.config.Config;
import com.hazelcast.config.EvictionPolicy;
import com.hazelcast.config.InMemoryFormat;
import com.hazelcast.config.MapAttributeConfig;
import com.hazelcast.config.MapConfig;
import com.hazelcast.config.MapIndexConfig;
import com.hazelcast.config.MaxSizeConfig;
```
/*
* Copyright (c) 2008-2017, Hazelcast, Inc. All Rights Reserved.
*
* Licensed 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
*
```
INFO 17:16:42 TargetMapLightWriteTest Running 00d 00h 00m 20s ( 3.33%) 401,484 ops 40,119.02 ops/s 2,413 µs (avg) 63,012 µs (99.9th) 206,700 µs (max)
INFO 17:16:52 TargetMapLightWriteTest Running 00d 00h 00m 30s ( 5.00%) 837,720 ops 43,594.57 ops/s 2,216 µs (avg) 23,576 µs (99.9th) 40,861 µs (max)
INFO 17:17:02 TargetMapLightWriteTest Running 00d 00h 00m 40s ( 6.67%) 1,273,177 ops 43,513.90 ops/s 2,245 µs (avg) 23,445 µs (99.9th) 47,644 µs (max)
INFO 17:17:12 TargetMapLightWriteTest Running 00d 00h 00m 50s ( 8.33%) 1,707,100 ops 43,364.84 ops/s 2,232 µs (avg) 24,002 µs (99.9th) 55,640 µs (max)
INFO 17:17:22 TargetMapLightWriteTest Running 00d 00h 01m 00s ( 10.00%) 2,142,501 ops 43,512.56 ops/s 2,217 µs (avg) 25,051 µs (99.9th) 52,035 µs (max)
INFO 17:17:32 TargetMapLightWriteTest Running 00d 00h 01m 10s ( 11.67%) 2,577,836 ops 43,508.86 ops/s 2,241 µs (avg) 24,363 µs (99.9th)
```
➜ workdir git:(fast-ep) ✗ ./run.sh
INFO 13:11:53 Hazelcast Simulator Coordinator
INFO 13:11:53 Version: 0.10-SNAPSHOT, Commit: 57f2067, Build Time: 16.03.2017 @ 09:51:24 CET
INFO 13:11:53 SIMULATOR_HOME: /Users/tom/hazelcast-simulator-0.10-SNAPSHOT
INFO 13:11:53 Loading default simulator.properties: /Users/tom/hazelcast-simulator-0.10-SNAPSHOT/conf/simulator.properties
INFO 13:11:53 Loading additional simulator.properties: /repos/target/workdir/simulator.properties
INFO 13:11:53 Loading Agents file: /repos/target/workdir/agents.txt
INFO 13:11:53 Loading TestSuite file: /repos/target/workdir/test.properties
INFO 13:11:53 Loading Log4j configuration for Worker: /Users/tom/hazelcast-simulator-0.10-SNAPSHOT/conf/worker-log4j.xml
/*
* Copyright (c) 2008-2017, Hazelcast, Inc. All Rights Reserved.
*
* Licensed 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
import java.lang.management.ManagementFactory;
import java.lang.management.OperatingSystemMXBean;
import java.lang.reflect.Method;
public class Test {
private static final OperatingSystemMXBean OPERATING_SYSTEM_MX_BEAN = ManagementFactory.getOperatingSystemMXBean();
private static final double PERCENTAGE_MULTIPLIER = 100d;
/**
com.hazelcast.client.cache.impl.AbstractClientCacheProxy
com.hazelcast.cache.CacheStatistics
com.hazelcast.monitor.NearCacheStats
com.hazelcast.cache.impl.ICacheInternal
com.hazelcast.cache.ICache
com.hazelcast.cache.impl.event.CachePartitionLostListener
com.hazelcast.core.ICompletableFuture
com.hazelcast.core.PrefixedDistributedObject
com.hazelcast.cache.impl.nearcache.NearCache
com.hazelcast.config.InMemoryFormat
com.hazelcast.client.cache.impl.AbstractClientCacheProxy
com.hazelcast.cache.CacheStatistics
com.hazelcast.monitor.NearCacheStats
com.hazelcast.cache.impl.ICacheInternal
com.hazelcast.cache.ICache
com.hazelcast.cache.impl.event.CachePartitionLostListener
com.hazelcast.core.ICompletableFuture
com.hazelcast.core.PrefixedDistributedObject
com.hazelcast.cache.impl.nearcache.NearCache
./src/main/java/com/hazelcast/client/cache/impl/AbstractClientCacheProxy.java:import com.hazelcast.cache.CacheStatistics;
./src/main/java/com/hazelcast/client/cache/impl/AbstractClientCacheProxy.java:import com.hazelcast.cache.impl.ICacheInternal;
./src/main/java/com/hazelcast/client/cache/impl/AbstractClientCacheProxy.java:import com.hazelcast.cache.impl.nearcache.NearCache;
./src/main/java/com/hazelcast/client/cache/impl/AbstractClientCacheProxy.java:import com.hazelcast.config.CacheConfig;
./src/main/java/com/hazelcast/client/cache/impl/AbstractClientCacheProxy.java:import com.hazelcast.core.ExecutionCallback;
./src/main/java/com/hazelcast/client/cache/impl/AbstractClientCacheProxy.java:import com.hazelcast.core.ICompletableFuture;
./src/main/java/com/hazelcast/client/cache/impl/AbstractClientCacheProxy.java:import com.hazelcast.nio.serialization.Data;
./src/main/java/com/hazelcast/client/cache/impl/AbstractClientCacheProxy.java:import com.hazelcast.spi.serialization.SerializationService;
./src/main/java/c