which means you really don't want to guess wrong well how do we guess basically fundamentally it's predicting the future based on the past it's actually not that trivial they are pretty smart but fundamentally predicting the future based on the past so this is going to be a the loop itself is going to be very easily predictable it's a long loop predicting that it's going to continue as a loop is a good bet at the end it will be a pipeline flash but it will be amortized over many many iterations so that's going to be a good prediction the one inside the loop now that's where it gets interesting if that boolean is always false or always true it's going to be well predicted if it's varies well depends on how predictably it varies i'm going to be using uh the google benchmark and the the standard perf profiler on linux you can use vtune or whatever profiler you want the capabilities that i'm going to show you are not exotic and the benchmark again any benchmark will do what with what i'm about to do let's see some code
NO_SEGMENT_TOKEN