News for hackers. Stuff that matters.
Re:The most unethical thing I was asked to build while worki... by Infinity315 on Monday November 07, 2022 @05:48PM (#33513646)
Probably more than likely it's not generalizable to real world conditions.

Benchmarks are meant to be reproducible, meaning perfectly predictable. CPUs have things called branch predictors which try to predict what the software is going to do and try to do the calculation ahead of time resulting in (hopefully, if it predicted right) faster execution time. If you know which 'branches' a benchmark goes down, you can make a program which can coax the branch predictor to always make the right guesses for a given benchmark.

A program branches whenever you encounter some sort of conditional if-else statement.

There are no comments on this comment yet.