aboutsummaryrefslogtreecommitdiffstats
path: root/tests/kubernetes/perf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/kubernetes/perf')
0 files changed, 0 insertions, 0 deletions
al.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
= jvpp-benchmark

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*executable.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 measurement 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.

Run with:
[source,shell]
---
sudo java -jar ./target/jvpp-benchmark*executable.jar AclUpdateBenchmark
---

To specify aclSize (default=100), use:
[source,shell]
---
sudo java -jar ./target/jvpp-benchmark*executable.jar -p aclSize=1000 AclUpdateBenchmark
---

To specify aclSetSize (default=100), use:
[source,shell]
---
sudo java -jar ./target/jvpp-benchmark*executable.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*executable.jar -p mode=L2 AclUpdateBenchmark
---


== ClassifyTableBenchmark

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]
---
sudo java -jar ./target/jvpp-benchmark*executable.jar ClassifyTableBenchmark
---

To specify tableSetSize (default=100), use:
[source,shell]
---
sudo java -jar ./target/jvpp-benchmark*executable.jar ClassifyTableBenchmark -p aclSetSize=1000
---