Monday, May 12, 2025
1 change · 18.0
Enhancements to existing features
Performance tests now measure CPU time instead of general elapsed time, making results less affected by other activity on the machine. This should reduce inconsistent test outcomes and improve confidence in performance measurements.
Original PR description
Use `time.process_time_ns` which is not influenced by other processes running on the machine. This allows to have consistent timing and less non-deterministic results. We also switch to the ns version, so that division per record does not loose too much precision for small values. We may need to fallback to `perf_counter_ns` on some systems where the precision is too low. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr