KingRabbid commented on PR #6510:
URL: https://github.com/apache/jmeter/pull/6510#issuecomment-5526338064

   As per latest push, below a sample output report. Top <N> and whether to 
generate the report is fully configurable via parameters:
   `
   #jsr223.compiled_scripts_cache_size=100
   # Configurable options on the compiled scripts cache, overrides the 
jsr223.compiled_scripts_cache_size property
   # See com.github.benmanes.caffeine.cache.Caffeine API for details
   jsr223.compiled_scripts_cache_spec=maximumSize=100,recordStats
   # How many entries to show in the JSR223 cache report (if enabled, i.e. > 0)
   #jsr223.statsReportsTop=5
   `
   Sample report displayed at the end of the run when log level is INFO:
   `
   2026-09-03 16:08:09,985 INFO o.a.j.u.JSR223TestElement: JSR223 cache stats 
=> scripts: 2, requestsCount: 121 (hitCount: 58 + missedCount: 63), (hitRate: 
0.48, missRate: 0.52), loadCount: 63 (loadSuccessCount: 2 + loadFailureCount: 
61), evictionCount: 0, evictionWeight: 0, totalLoadTime: 19.38 ms, 
averageLoadPenalty: 0.31 ms
   
   2026-09-03 16:08:09,988 INFO o.a.j.u.JSR223TestElement: Heaviest top 5 
contributors by their total 'computeScriptCacheKey' execution times (ms)
   
   ===> By total duration (ms) <===
   Rank  Element name                                                        
Calls    Duration(ms)      Avg(ms)
   1     JSR223 Sampler - Editor                                                
30           4.026        0.134
   2     JSR223 Sampler                                                         
 1           0.055        0.055
   3     JSR223 Timer                                                           
30           0.051        0.002
   4     JSR223 Assertion                                                       
30           0.017        0.001
   5     JSR223 Sampler - Color listing                                         
30           0.008        0.000
         Total:                                                                
121           4.157        0.034
   
   ===> By average duration (ms) <===
   Rank  Element name                                                        
Calls    Duration(ms)      Avg(ms)
   1     JSR223 Sampler - Editor                                                
30           4.026        0.134
   2     JSR223 Sampler                                                         
 1           0.055        0.055
   3     JSR223 Timer                                                           
30           0.051        0.002
   4     JSR223 Assertion                                                       
30           0.017        0.001
   5     JSR223 Sampler - Color listing                                         
30           0.008        0.000
         Total:                                                                
121           4.157        0.034
   
   2026-09-03 16:08:09,988 INFO o.a.j.u.JSR223TestElement: Heaviest top 3 
contributors by their total 'getCompiledScript' execution times (ms)
   
   ===> By total duration (ms) <===
   Rank  Element name                                                        
Calls    Duration(ms)      Avg(ms)
   1     JSR223 Sampler - Editor                                                
30          19.882        0.663
   2     JSR223 Timer                                                           
30           5.735        0.191
   3     JSR223 Sampler                                                         
 1           2.519        2.519
         Total:                                                                 
61          28.136        0.461
   
   ===> By average duration (ms) <===
   Rank  Element name                                                        
Calls    Duration(ms)      Avg(ms)
   1     JSR223 Sampler                                                         
 1           2.519        2.519
   2     JSR223 Sampler - Editor                                                
30          19.882        0.663
   3     JSR223 Timer                                                           
30           5.735        0.191
         Total:                                                                 
61          28.136        0.461
   
   2026-09-03 16:08:09,988 INFO o.a.j.u.JSR223TestElement: Heaviest top 5 
contributors by their total 'processFileOrScript' execution times (ms)
   
   ===> By total duration (ms) <===
   Rank  Element name                                                        
Calls    Duration(ms)      Avg(ms)
   1     JSR223 Sampler - Color listing                                         
30         413.583       13.786
   2     JSR223 Assertion                                                       
30         165.279        5.509
   3     JSR223 Sampler - Editor                                                
30          71.982        2.399
   4     JSR223 Timer                                                           
30          17.303        0.577
   5     JSR223 Sampler                                                         
 1           2.981        2.981
         Total:                                                                
121         671.127        5.547
   
   ===> By average duration (ms) <===
   Rank  Element name                                                        
Calls    Duration(ms)      Avg(ms)
   1     JSR223 Sampler - Color listing                                         
30         413.583       13.786
   2     JSR223 Assertion                                                       
30         165.279        5.509
   3     JSR223 Sampler                                                         
 1           2.981        2.981
   4     JSR223 Sampler - Editor                                                
30          71.982        2.399
   5     JSR223 Timer                                                           
30          17.303        0.577
         Total:                                                                
121         671.127        5.547
   
   `


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to