lhotari commented on PR #22494:
URL: https://github.com/apache/pulsar/pull/22494#issuecomment-2052043146

   Performance test results with the changes. 
   
   Reproducing the results:
   
   ```shell
   gh pr checkout 22494
   mvn -Pcore-modules,-main -T 1C clean install -DskipTests -Dspotbugs.skip=true
   rm -rf data
   PULSAR_MEM="-Xms2g -Xmx4g -XX:MaxDirectMemorySize=6g" 
PULSAR_GC="-XX:+UseG1GC -XX:+PerfDisableSharedMem -XX:+AlwaysPreTouch" 
PULSAR_EXTRA_OPTS="-Djute.maxbuffer=20000000" PULSAR_STANDALONE_USE_ZOOKEEPER=1 
bin/pulsar standalone -nss -nfw 2>&1 | tee standalone.log
   ```
   
   ```shell
   git clone https://github.com/lhotari/pulsar-playground
   cd pulsar-playground
   ./gradlew shadowJar
   # create the topics
   java -cp build/libs/pulsar-playground-all.jar 
com.github.lhotari.pulsar.playground.TestScenarioCreateLongNamedTopics
   ```
   
   ```
   git clone https://github.com/lhotari/pulsar-playground
   cd pulsar-playground/experiments/metrics-performance
   
   ❯ k6 run load_test.js
   
             /\      |‾‾| /‾‾/   /‾‾/
        /\  /  \     |  |/  /   /  /
       /  \/    \    |     (   /   ‾‾\
      /          \   |  |\  \ |  (‾)  |
     / __________ \  |__| \__\ \_____/ .io
   
        execution: local
           script: load_test.js
           output: -
   
        scenarios: (100.00%) 1 scenario, 100 max VUs, 10m30s max duration 
(incl. graceful stop):
                 * default: 10000 iterations shared among 100 VUs (maxDuration: 
10m0s, gracefulStop: 30s)
   
   
        data_received..................: 3.8 TB 8.1 GB/s
        data_sent......................: 880 kB 1.9 kB/s
        http_req_blocked...............: avg=35.04µs  min=1µs      med=3µs     
max=3.92ms   p(90)=6µs      p(95)=8µs
        http_req_connecting............: avg=25.17µs  min=0s       med=0s      
max=3.02ms   p(90)=0s       p(95)=0s
        http_req_duration..............: avg=4.7s     min=457.09ms med=4.68s   
max=9.71s    p(90)=8.15s    p(95)=8.58s
          { expected_response:true }...: avg=4.7s     min=457.09ms med=4.68s   
max=9.71s    p(90)=8.15s    p(95)=8.58s
        http_req_failed................: 0.00%  ✓ 0         ✗ 10000
        http_req_receiving.............: avg=185.35ms min=86.9ms   med=183.9ms 
max=469.76ms p(90)=214.08ms p(95)=224.08ms
        http_req_sending...............: avg=58.44µs  min=3µs      med=15µs    
max=41.26ms  p(90)=28µs     p(95)=38µs
        http_req_tls_handshaking.......: avg=0s       min=0s       med=0s      
max=0s       p(90)=0s       p(95)=0s
        http_req_waiting...............: avg=4.51s    min=302.02ms med=4.5s    
max=9.56s    p(90)=7.96s    p(95)=8.4s
        http_reqs......................: 10000  21.179615/s
        iteration_duration.............: avg=4.7s     min=457.16ms med=4.69s   
max=9.71s    p(90)=8.15s    p(95)=8.58s
        iterations.....................: 10000  21.179615/s
        vus............................: 5      min=5       max=100
        vus_max........................: 100    min=100     max=100
   
   
   running (07m52.2s), 000/100 VUs, 10000 complete and 0 interrupted iterations
   default ✓ [======================================] 100 VUs  07m52.2s/10m0s  
10000/10000 shared iters
   ```


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