From 9fb8895b38fffbaa556c7aecdad57fd1230152c5 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Mon, 21 May 2018 14:43:45 +0200 Subject: JVpp JMH benchmark Creates ACL of size aclSize using acl_add_replace, then assigns it to local0 using acl_interface_set_acl_list. Then ACL is updated synchronously using acl_add_replace. By default 20x2s warmup and 100x2s measurment iterations are performed. VPP is restarted after each iteration. Each invocation of acl_add_replace uses ACL from precomputed set of ACLs of size aclSetSize. ACLs from the set are used in round-robin fashion. Compile: cd $HC2VPP_ROOT/it/jvpp-benchmark mvn clean install Run with: sudo java -jar ./target/jvpp-benchmark-exec.jar To specify aclSize (default=100), use: sudo java -jar ./target/jvpp-benchmark-exec.jar -p aclSize=1000 To specify aclSetSize (default=100), use: sudo java -jar ./target/jvpp-benchmark-exec.jar -p aclSetSize=1000 To see more options, use java -jar ./target/jvpp-benchmark-exec.jar -h Change-Id: I43691ba891940a1c341f8e9893c8598c811bc077 Signed-off-by: Marek Gradzki --- it/jvpp-benchmark/pom.xml | 101 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 it/jvpp-benchmark/pom.xml (limited to 'it/jvpp-benchmark/pom.xml') diff --git a/it/jvpp-benchmark/pom.xml b/it/jvpp-benchmark/pom.xml new file mode 100644 index 000000000..2b5d334b8 --- /dev/null +++ b/it/jvpp-benchmark/pom.xml @@ -0,0 +1,101 @@ + + + + + + io.fd.hc2vpp.common + hc2vpp-parent + 1.18.04.1-SNAPSHOT + ../../common/hc2vpp-parent + + 4.0.0 + + io.fd.hc2vpp.it + jvpp-benchmark + 1.18.04.1-SNAPSHOT + ${project.artifactId} + + + 1.21 + jvpp-benchmark-exec + 18.04 + + + + + org.openjdk.jmh + jmh-core + ${jmh.version} + + + org.openjdk.jmh + jmh-generator-annprocess + ${jmh.version} + provided + + + org.slf4j + slf4j-api + + + com.google.guava + guava + + + + io.fd.vpp + jvpp-registry + ${jvpp.version} + + + io.fd.vpp + jvpp-acl + ${jvpp.version} + + + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.1.1 + + + package + + shade + + + + ${shaded.name} + + + org.openjdk.jmh.Main + + + + + + + + + + -- cgit 1.2.3-korg