Remove benchmark-data-store
[controller.git] / opendaylight / md-sal / benchmark-data-store / src / main / java / org / opendaylight / controller / md / sal / dom / store / benchmark / InMemoryBrokerWriteTransactionBenchmark.java
diff --git a/opendaylight/md-sal/benchmark-data-store/src/main/java/org/opendaylight/controller/md/sal/dom/store/benchmark/InMemoryBrokerWriteTransactionBenchmark.java b/opendaylight/md-sal/benchmark-data-store/src/main/java/org/opendaylight/controller/md/sal/dom/store/benchmark/InMemoryBrokerWriteTransactionBenchmark.java
deleted file mode 100644 (file)
index eeeebc8..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (c) 2014, 2017 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.controller.md.sal.dom.store.benchmark;
-
-import com.google.common.collect.ImmutableMap;
-import com.google.common.util.concurrent.ListeningExecutorService;
-import com.google.common.util.concurrent.MoreExecutors;
-import java.util.Map;
-import java.util.concurrent.Executors;
-import java.util.concurrent.ThreadPoolExecutor;
-import java.util.concurrent.TimeUnit;
-import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
-import org.opendaylight.mdsal.dom.broker.SerializedDOMDataBroker;
-import org.opendaylight.mdsal.dom.spi.store.DOMStore;
-import org.opendaylight.mdsal.dom.store.inmemory.InMemoryDOMDataStore;
-import org.openjdk.jmh.annotations.BenchmarkMode;
-import org.openjdk.jmh.annotations.Fork;
-import org.openjdk.jmh.annotations.Level;
-import org.openjdk.jmh.annotations.Mode;
-import org.openjdk.jmh.annotations.OutputTimeUnit;
-import org.openjdk.jmh.annotations.Scope;
-import org.openjdk.jmh.annotations.Setup;
-import org.openjdk.jmh.annotations.State;
-
-@State(Scope.Thread)
-@BenchmarkMode(Mode.AverageTime)
-@OutputTimeUnit(TimeUnit.MILLISECONDS)
-@Fork(1)
-public class InMemoryBrokerWriteTransactionBenchmark extends AbstractInMemoryBrokerWriteTransactionBenchmark {
-    private ListeningExecutorService executor = null;
-
-    @Setup(Level.Trial)
-    @Override
-    public void setUp() throws Exception {
-        ListeningExecutorService dsExec = MoreExecutors.newDirectExecutorService();
-        executor = MoreExecutors.listeningDecorator(
-                MoreExecutors.getExitingExecutorService((ThreadPoolExecutor) Executors.newFixedThreadPool(1), 1L,
-                        TimeUnit.SECONDS));
-
-        InMemoryDOMDataStore operStore = new InMemoryDOMDataStore("OPER", dsExec);
-        InMemoryDOMDataStore configStore = new InMemoryDOMDataStore("CFG", dsExec);
-        Map<LogicalDatastoreType, DOMStore> datastores = ImmutableMap.of(
-            LogicalDatastoreType.OPERATIONAL, (DOMStore)operStore,
-            LogicalDatastoreType.CONFIGURATION, configStore);
-
-        domBroker = new SerializedDOMDataBroker(datastores, executor);
-        schemaContext = BenchmarkModel.createTestContext();
-        configStore.onModelContextUpdated(schemaContext);
-        operStore.onModelContextUpdated(schemaContext);
-        initTestNode();
-    }
-
-    @Override
-    public void tearDown() {
-        domBroker.close();
-        executor.shutdown();
-    }
-}