Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add getCpuTicks based on RDTSC instruction for highest-performance counters #773

Open
timotheecour opened this issue Jul 1, 2021 · 0 comments

Comments

@timotheecour
Copy link
Owner

timotheecour commented Jul 1, 2021

links

  • would solve randomPathName called twice in a row can return the same string on windows nim-lang/Nim#17898 without having to resort to {.threadvar.} or atomics
  • would improve resolution of CPU profiler (eg nimprof)
  • would improve accuracy of benchmarks, without needing to run through lots of loops
  • would avoid problems due to CPU speed variations (eg under load) to a large extent
  • would replace advantageously cpuTime for most benchmarking applications
  • D20210609T004849

note

I have a PR in the works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant