summaryrefslogtreecommitdiffstats
path: root/it/jvpp-benchmark/asciidoc/Readme.adoc
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-05-21 14:43:45 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-05-24 07:25:03 +0000
commitd3cc46c357c83c0c0b41b4f64b166bbb40b74743 (patch)
tree2a0a36f962937cf44c691da072bb1017139b4e62 /it/jvpp-benchmark/asciidoc/Readme.adoc
parent3f57d2a86a086fd8c70293f51ce004aba580a5bd (diff)
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 <mgradzki@cisco.com>
Diffstat (limited to 'it/jvpp-benchmark/asciidoc/Readme.adoc')
-rw-r--r--it/jvpp-benchmark/asciidoc/Readme.adoc49
1 files changed, 49 insertions, 0 deletions
diff --git a/it/jvpp-benchmark/asciidoc/Readme.adoc b/it/jvpp-benchmark/asciidoc/Readme.adoc
new file mode 100644
index 000000000..604abf9b3
--- /dev/null
+++ b/it/jvpp-benchmark/asciidoc/Readme.adoc
@@ -0,0 +1,49 @@
+= jvpp-benchmark
+
+Provides JMH based benchmarks JVpp (Java API for VPP).
+
+== AclUpdateBenchmark
+
+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:
+[source,shell]
+---
+cd $HC2VPP_ROOT/it/jvpp-benchmark
+mvn clean install
+---
+
+Run with:
+[source,shell]
+---
+sudo java -jar ./target/jvpp-benchmark-exec.jar
+---
+
+To specify aclSize (default=100), use:
+[source,shell]
+---
+sudo java -jar ./target/jvpp-benchmark-exec.jar -p aclSize=1000
+---
+
+To specify aclSetSize (default=100), use:
+[source,shell]
+---
+sudo java -jar ./target/jvpp-benchmark-exec.jar -p aclSetSize=1000
+---
+
+To see more options, use
+[source,shell]
+---
+java -jar ./target/jvpp-benchmark-exec.jar -h
+---