romange / helio

A modern framework for backend development based on io_uring Linux interface
Apache License 2.0
447 stars 50 forks source link

fix: improve time measurement performance in fibers #179

Closed romange closed 11 months ago

romange commented 11 months ago

Replace fiber switch latency measurement with cycle clock, assuming that modern CPUs have constant tsc cycle and these measurements are not critical for correctness.

codecov-commenter commented 11 months ago

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (792bd8c) 78.38% compared to head (2ae8895) 78.47%. Report is 1 commits behind head on master.

Files Patch % Lines
util/fibers/detail/fiber_interface.cc 81.81% 4 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #179 +/- ## ========================================== + Coverage 78.38% 78.47% +0.08% ========================================== Files 98 100 +2 Lines 7305 7339 +34 ========================================== + Hits 5726 5759 +33 - Misses 1579 1580 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.