d8tltanc commented on a change in pull request #9485:
URL: https://github.com/apache/kafka/pull/9485#discussion_r541212190



##########
File path: 
jmh-benchmarks/src/main/java/org/apache/kafka/jmh/acl/AclAuthorizerBenchmark.java
##########
@@ -105,49 +120,76 @@ private void setFieldValue(Object obj, String fieldName, 
Object value) throws Ex
         field.set(obj, value);
     }
 
-    private TreeMap<ResourcePattern, VersionedAcls> prepareAclCache() {
+    private void prepareAclCache() throws UnknownHostException {
         Map<ResourcePattern, Set<AclEntry>> aclEntries = new HashMap<>();
         for (int resourceId = 0; resourceId < resourceCount; resourceId++) {
             ResourcePattern resource = new ResourcePattern(
                 (resourceId % 10 == 0) ? ResourceType.GROUP : 
ResourceType.TOPIC,
-                resourceNamePrefix + resourceId,
+                resourceName(resourceNamePrefix),

Review comment:
       The existing benchmark does not have any DENY resource in it. Adding 
some DENY bindings whose percentage is controlled by parameters will be an 
improvement to the existing benchmark and help us understand the performance 
better. 
   
   I've reverted all changes other than adding some DENY bindings. Does the 
benchmark look good to you now?
   
   commit 6536cea788210860a764f3f0a6901244e8d974fe
   
   
   @rajinisivaram




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to