Readme.adoc revision 5d077627
1= jvpp-benchmark
2
3Provides JMH based benchmarks JVpp (Java API for VPP).
4
5Compile:
6[source,shell]
7---
8cd $HC2VPP_ROOT/it/jvpp-benchmark
9mvn clean install
10---
11
12To display JMH options, use
13[source,shell]
14---
15java -jar ./target/jvpp-benchmark*executable.jar -h
16---
17
18== AclUpdateBenchmark
19
20Creates ACL of size aclSize using acl_add_replace,
21then assigns it to loopback interface using acl_interface_set_acl_list.
22
23Then ACL is updated synchronously using acl_add_replace.
24By default 20x2s warmup and 100x2s measurement iterations are performed.
25
26VPP is restarted after each iteration.
27
28Each invocation of acl_add_replace uses ACL from precomputed
29set of ACLs of size aclSetSize.
30ACLs from the set are used in round-robin fashion.
31
32Run with:
33[source,shell]
34---
35sudo java -jar ./target/jvpp-benchmark*executable.jar AclUpdateBenchmark
36---
37
38To specify aclSize (default=100), use:
39[source,shell]
40---
41sudo java -jar ./target/jvpp-benchmark*executable.jar -p aclSize=1000 AclUpdateBenchmark
42---
43
44To specify aclSetSize (default=100), use:
45[source,shell]
46---
47sudo java -jar ./target/jvpp-benchmark*executable.jar -p aclSetSize=1000 AclUpdateBenchmark
48---
49
50To test interface in bridged (L2) / routed (L3) mode (default=L3), use:
51[source,shell]
52---
53sudo java -jar ./target/jvpp-benchmark*executable.jar -p mode=L2 AclUpdateBenchmark
54---
55
56
57== ClassifyTableBenchmark
58
59Synchronously creates classify tables using classifyAddDelTable operation.
60By default 20x2s warmup and 100x2s measurement iterations are performed.
61
62VPP is restarted after each iteration.
63
64Each invocation of classifyAddDelTable uses tables
65from precomputed set of size tableSetSize.
66Tables from the set are used in round-robin fashion.
67
68Run with:
69[source,shell]
70---
71sudo java -jar ./target/jvpp-benchmark*executable.jar ClassifyTableBenchmark
72---
73
74To specify tableSetSize (default=100), use:
75[source,shell]
76---
77sudo java -jar ./target/jvpp-benchmark*executable.jar ClassifyTableBenchmark -p aclSetSize=1000
78---
79