git-hulk commented on PR #3001:
URL: https://github.com/apache/kvrocks/pull/3001#issuecomment-2923861396

   > Is there any performance impact of this flag? e.g. through redis-benchmark.
   
   In summary, there's no impact on performance.
   
   The first one is running without enable the `--enable-prof` when compiling.
   
   ```
   hulk@instance-20241021-041032:~$ redis-benchmark -c -p 6666 -n 1000000 -r 
1000000 -t set -d 128
   ====== 6666 -n 1000000 -r 1000000 -t set -d 128 ======
     100000 requests completed in 4.52 seconds
     0 parallel clients
     3 bytes payload
     keep alive: 1
     host configuration "save": 900 1 300 10 60 10000
     host configuration "appendonly": no
     multi-thread: no
   
   99.62% <= 0.1 milliseconds
   99.95% <= 0.2 milliseconds
   100.00% <= 0.3 milliseconds
   100.00% <= 0.7 milliseconds
   100.00% <= 1.0 milliseconds
   22114.11 requests per second
   ```
   
   The second one is running with `--enable-prof`, but `prof_active` is false.
   ```
   hulk@instance-20241021-041032:~$ redis-benchmark -c -p 6666 -n 1000000 -r 
1000000 -t set -d 128
   ====== 6666 -n 1000000 -r 1000000 -t set -d 128 ======
     100000 requests completed in 4.52 seconds
     0 parallel clients
     3 bytes payload
     keep alive: 1
     host configuration "save": 900 1 300 10 60 10000
     host configuration "appendonly": no
     multi-thread: no
   
   99.62% <= 0.1 milliseconds
   99.95% <= 0.2 milliseconds
   99.99% <= 0.3 milliseconds
   100.00% <= 0.4 milliseconds
   100.00% <= 0.5 milliseconds
   100.00% <= 0.6 milliseconds
   100.00% <= 1.0 milliseconds
   22128.79 requests per second
   ```
   
   The last one is running with `--enable-prof` and `prof_active` is true.
   
   ```
   hulk@instance-20241021-041032:~$ redis-benchmark -c -p 6666 -n 1000000 -r 
1000000 -t set -d 128
   ====== 6666 -n 1000000 -r 1000000 -t set -d 128 ======
     100000 requests completed in 4.54 seconds
     0 parallel clients
     3 bytes payload
     keep alive: 1
     host configuration "save": 900 1 300 10 60 10000
     host configuration "appendonly": no
     multi-thread: no
   
   99.51% <= 0.1 milliseconds
   99.94% <= 0.2 milliseconds
   99.99% <= 0.3 milliseconds
   100.00% <= 0.4 milliseconds
   100.00% <= 0.4 milliseconds
   22011.88 requests per second
   ```


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