Benchmarking Retpoline-Enabled GCC 8 With -mindirect-branch=thunk
Written by Michael Larabel in Software on 16 January 2018. Page 2 of 2. 5 Comments

In some of the benchmarks, the overhead of avoiding speculative indirect calls is fairly minimal.

While in other workloads the overhead of using -mindirect-branch=thunk and -mindirect-branch=thunk-inline was quite noticeable.

Though with the kernel protected, you probably don't need to worry about e.g. building your chess application with Retpolines.

The Bullet Physics performance was also showed down by -mindirect-branch=thunk.

Those wishing to see more performance numbers when user-space tests are built with -mindirect-branch=thunk -mindirect-branch=thunk-inline can find more benchmarks via OpenBenchmarking.org.


About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.


Related Articles
Trending Linux News