2 ms·
If you have spare time, the Pikus talks at CPPCON talk about the performance hits associated with various primitives. https://www.youtube.com/watch?v=9hJkWwHDD
by dragontamer 7y ago
If you have spare time, the Pikus talks at CPPCON talk about the performance hits associated with various primitives.
https://www.youtube.com/watch?v=9hJkWwHDDxs https://www.youtube.com/watch?v=9hJkWwHDDxs
This is the one you want, with benchmarks associated with everything. Of course, benchmark on your own system too, and learn hardware performance counters (!!). This sort of stuff gets into nanosecond-level measurements, so learning to use the hardware profiler of your CPU really, really helps to see these details.
Honestly, because of how intricate the L1 / L2 caches can be on a modern system... learning hardware performance counters while you're measuring benchmark code / benchmark tests like this is helpful.