ChenSammi commented on PR #8360: URL: https://github.com/apache/ozone/pull/8360#issuecomment-2862185286
I used your code and increase the iteration from 1000 to 1000000. When iteration is smaller, the variance is huge. With 1000000 iteration, the data is more consistent. Here are five run data. ``` Without patch Performance results for CapacityVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 8595214 ms Average time per operation: 85952.14961086 ns Operations per second: 11634.380344498686 Performance results for RoundRobinVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 1842511 ms Average time per operation: 18425.11104205 ns Operations per second: 54273.75703287695 Performance results for CapacityVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 8597296 ms Average time per operation: 85972.96259339 ns Operations per second: 11631.563806048072 Performance results for RoundRobinVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 1705104 ms Average time per operation: 17051.04959121 ns Operations per second: 58647.41608138368 Performance results for CapacityVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 8606974 ms Average time per operation: 86069.74989122 ns Operations per second: 11618.483860634644 Performance results for RoundRobinVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 1619432 ms Average time per operation: 16194.32189543 ns Operations per second: 61750.038467630904 Performance results for CapacityVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 8241240 ms Average time per operation: 82412.40437041 ns Operations per second: 12134.095681827332 Performance results for RoundRobinVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 1678796 ms Average time per operation: 16787.96074832 ns Operations per second: 59566.49619281912 Performance results for CapacityVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 8037039 ms Average time per operation: 80370.39892128 ns Operations per second: 12442.3918933072 Performance results for RoundRobinVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 1641007 ms Average time per operation: 16410.07820917 ns Operations per second: 60938.16173534122 With the patch Performance results for CapacityVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 8595214 ms Average time per operation: 85952.14961086 ns Operations per second: 11634.380344498686 Performance results for RoundRobinVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 1842511 ms Average time per operation: 18425.11104205 ns Operations per second: 54273.75703287695 Performance results for CapacityVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 8597296 ms Average time per operation: 85972.96259339 ns Operations per second: 11631.563806048072 Performance results for RoundRobinVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 1705104 ms Average time per operation: 17051.04959121 ns Operations per second: 58647.41608138368 Performance results for CapacityVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 8606974 ms Average time per operation: 86069.74989122 ns Operations per second: 11618.483860634644 Performance results for RoundRobinVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 1619432 ms Average time per operation: 16194.32189543 ns Operations per second: 61750.038467630904 Performance results for CapacityVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 8241240 ms Average time per operation: 82412.40437041 ns Operations per second: 12134.095681827332 Performance results for RoundRobinVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 1678796 ms Average time per operation: 16787.96074832 ns Operations per second: 59566.49619281912 Performance results for CapacityVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 8037039 ms Average time per operation: 80370.39892128 ns Operations per second: 12442.3918933072 Performance results for RoundRobinVolumeChoosingPolicy Total operations: 100000000 Successful operations: 100000000 Failed operations: 0 Total time: 1641007 ms Average time per operation: 16410.07820917 ns Operations per second: 60938.16173534122 ``` -- 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: issues-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org