| ▲ | rayiner 17 hours ago | |
Using random values defeats the purpose of the branch predictor. The best branch predictor for this test would be one that always predicts the branch taken or not taken. | ||
| ▲ | gpderetta 16 hours ago | parent | next [-] | |
The author is running the benchmark multiple times with the same random seed to discover how long a pattern can the predictor learn. | ||
| ▲ | dundarious 17 hours ago | parent | prev [-] | |
There will be runs of even and runs of odd outputs from the rng. This benchmark tests how well does the branch predictor "retrain" to the current run. It is a good test of this adaptability of the predictor. The benchmark is still narrow in focus, and the results don't unequivocally mean AMD's predictor is overall "the best". | ||