Skip to Main Content
Pro .NET Benchmarking: The Art of Performance Measurement
book

Pro .NET Benchmarking: The Art of Performance Measurement

by Andrey Akinshin
June 2019
Intermediate to advanced content levelIntermediate to advanced
681 pages
15h 30m
English
Apress
Content preview from Pro .NET Benchmarking: The Art of Performance Measurement
© Andrey Akinshin 2019
Andrey AkinshinPro .NET Benchmarkinghttps://doi.org/10.1007/978-1-4842-4941-3_7

7. CPU-Bound Benchmarks

Andrey Akinshin1 
(1)
Saint Petersburg, Russia
 

Knock, knock.

Branch prediction.

Who’s there?

— A classic programming joke

One of the most common bottlenecks in many benchmarks is CPU. Proper design and analysis of CPU-bound benchmarks require knowledge of different runtime and hardware “features” that can affect performance. Each .NET runtime has a lot of different optimizations that can improve (or spoil) performance of your code. Each CPU microarchitecture has a lot of low-level mechanisms that also affect measurements. If you are not aware of these optimizations and mechanisms, it’s hard to design some benchmarks ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro .NET Memory Management: For Better Code, Performance, and Scalability

Pro .NET Memory Management: For Better Code, Performance, and Scalability

Konrad Kokosa
Concurrency in .NET

Concurrency in .NET

Riccardo Terrell

Publisher Resources

ISBN: 9781484249413Purchase LinkPublisher Website