diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2018-05-28 17:56:18 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2018-05-29 09:05:50 +0200 |
commit | bed970cdde06918fe600340a98337a0f9707f3bf (patch) | |
tree | e9dce8dae2566929ba6dd0758132be6388093756 /it/jvpp-benchmark/asciidoc | |
parent | fb10579575c4cdc9c4de330c955cc470a8ca8892 (diff) |
jvpp-benchmark: measure classifyAddDelTable
Synchronously creates classify tables.
By default 20x2s warmup
and 100x2s measurement iterations are performed.
VPP is restarted after each iteration.
Each invocation of classifyAddDelTable uses tables
from precomputed set of size tableSetSize.
Tables from the set are used in round-robin fashion.
Run with:
sudo java -jar ./target/jvpp-benchmark-exec.jar \
ClassifyTableCreateBenchmark
To specify aclSetSize (default=100), use:
sudo java -jar ./target/jvpp-benchmark-exec.jar \
ClassifyTableCreateBenchmark -p tableSetSize=1000
To see more options, use
java -jar ./target/jvpp-benchmark-exec.jar -h
Change-Id: I387d879bc99dce45f93d66e8a99f7206f067b443
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'it/jvpp-benchmark/asciidoc')
-rw-r--r-- | it/jvpp-benchmark/asciidoc/Readme.adoc | 53 |
1 files changed, 38 insertions, 15 deletions
diff --git a/it/jvpp-benchmark/asciidoc/Readme.adoc b/it/jvpp-benchmark/asciidoc/Readme.adoc index 8c787d4ac..a8e5d2c48 100644 --- a/it/jvpp-benchmark/asciidoc/Readme.adoc +++ b/it/jvpp-benchmark/asciidoc/Readme.adoc @@ -2,14 +2,26 @@ Provides JMH based benchmarks JVpp (Java API for VPP). +Compile: +[source,shell] +--- +cd $HC2VPP_ROOT/it/jvpp-benchmark +mvn clean install +--- + +To display JMH options, use +[source,shell] +--- +java -jar ./target/jvpp-benchmark-exec.jar -h +--- + == AclUpdateBenchmark Creates ACL of size aclSize using acl_add_replace, then assigns it to loopback interface 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. +By default 20x2s warmup and 100x2s measurement iterations are performed. VPP is restarted after each iteration. @@ -17,39 +29,50 @@ 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 +sudo java -jar ./target/jvpp-benchmark-exec.jar AclUpdateBenchmark --- To specify aclSize (default=100), use: [source,shell] --- -sudo java -jar ./target/jvpp-benchmark-exec.jar -p aclSize=1000 +sudo java -jar ./target/jvpp-benchmark-exec.jar -p aclSize=1000 AclUpdateBenchmark --- To specify aclSetSize (default=100), use: [source,shell] --- -sudo java -jar ./target/jvpp-benchmark-exec.jar -p aclSetSize=1000 +sudo java -jar ./target/jvpp-benchmark-exec.jar -p aclSetSize=1000 AclUpdateBenchmark --- To test interface in bridged (L2) / routed (L3) mode (default=L3), use: [source,shell] --- -sudo java -jar ./target/jvpp-benchmark-exec.jar -p mode=L2 +sudo java -jar ./target/jvpp-benchmark-exec.jar -p mode=L2 AclUpdateBenchmark --- -To see more options, use + +== ClassifyTableCreateBenchmark + +Synchronously creates classify tables using classifyAddDelTable operation. +By default 20x2s warmup and 100x2s measurement iterations are performed. + +VPP is restarted after each iteration. + +Each invocation of classifyAddDelTable uses tables +from precomputed set of size tableSetSize. +Tables from the set are used in round-robin fashion. + +Run with: [source,shell] --- -java -jar ./target/jvpp-benchmark-exec.jar -h +sudo java -jar ./target/jvpp-benchmark-exec.jar ClassifyTableCreateBenchmark +--- + +To specify tableSetSize (default=100), use: +[source,shell] +--- +sudo java -jar ./target/jvpp-benchmark-exec.jar ClassifyTableCreateBenchmark -p aclSetSize=1000 --- |