Quick Bench is now part of Compiler Explorer!

published at 03.12.2026 14:05 by Jens Weller
Save to Instapaper Pocket

I've been using quick-bench on my blog for while, an the site existed now for 9 years...

But in November 2026 quick-bench.com was down, and a few days later Fred Tingaud announced that he'd stopped hosting the site. Thanks to Fred for starting and hosting Quick Bench over the years! In todays web environment its not easy to host a service that executes strangers code. I fully understand and support Freds decision to not host the quick-bench and build-bench websites any longer. Unfortunately that also means that all links to quick-bench would be dead now, and I've seen lots of things that happen to abandomed websites. Could we as a community prevent this to happen for quick bench? Fred seemed to be open to such a solution. 

As Meeting C++ 2026 was just going to happen, this situation also made me wonder how things workout for Compiler Explorer. And as Matt Godbolt would speak about running Compiler Explorer in 2026, it would be a great conversation to know what hosting quick bench in 2026 would mean. He told me that quick-bench was already based on and partly inspired by an earlier version of Compiler Explorer and that he was already thinking about talking to Fred. Which then set things in motion. During the conference I've been talking about my upcoming book and that one of the recent issues was what would happen to the quick-bench links in the book and my blog. During this Matt always gave me a thumbs up from the audience, thanks Matt!

And not even a week later, last night Matt Godbolt asked me to test the new Compiler Explorer feature, to see if the old Quick Bench links were working again.

Also a bit later last night Fred Tingaud announced that he has transferred Quick Bench to Compiler Explorer.

Testing quick-bench @ Compiler Explorer

I think this is my main contribution to this effort, to see if things are working like they should. While clicking on a specific link from quick-bench.com now forwards you to Compiler Explorer, I wanted to make sure that its still kinda showing the same thing. This is where my blog was helpful, it has screenshots of graphs and links to quick bench. This also gives Matt and his team a good reference to see how the original graphs looked.

But that was not good enough for me. As earlier this year I've learned about more advanced use cases of Quick Bench. That you could create groups with a chain of Arg(number) calls. This is a google benchmark feature, that was supported by Quick Bench. When you register a benchmarking function with BENCHMARK(myFunc), you can use the builder pattern to add additional setup to your benchmark. Like BENCHMARK(myFunc)->Arg(512)->Arg(1024)->Arg(2048) will create 3 groups. In the benchmarking function you then can access these arguments through state.range(0). Quick Bench now would support this by switching from a bar graph to a line graph, with each line representing one of the groups/Arg calls. I know how surprised I was seeing this earlier this year in spring/early summer, once. Its a cool feature, but the only place where I saw it was some LinkedIn posting. No chance of finding that again! A potential use case would be to measure various sorting functions with different lenght of the input.

With access to the code that was hosted on Quick Bench, one would be able to find more test cases easily from aboves information. As searching the web was not really bringing results at first. After some digging I've found a great introduction to quick bench from two years ago on medium, that ends with a very advanced use case with screenshots and a quick-bench.com link! Exactly what I was looking for as a reference for Matt and his team.

With most of these things kinda working, Matt was confident enough to take this live last night. Compiler Explorer shows the old result from quick-bench, but also has a tab for showing a graph that has its origin in the execution at Compiler Explorer. Quick-Bench did have a 2 minute timeout, Compiler Explorer does have a shorter timeout. There will still be some things to iron out I expect, but its awesome to see that the links work again and show the old results.

One major improvement is already that now you can run the old quick-bench code on newer compilers! It does not change the old results in the "Quick Bench 2026" tab, but gives you a comparison with newer versions of clang or GCC. Quick Bench did support GCC 13 and clang 17, so this is a small improvement! Also the UI has a ton of settings you can play around with.

Overall I am very happy how this went. In a single week this has gone from broken links on the web to building a new interface for Compiler Explorer and integrating the data from the Quick Bench website! Its still early days for this, and one should read the disclaimers:

Also, if your code runs to long you may get The program failed part way through, so these results may be incomplete. There are some plans to improve on things and ideas about an execution environment for benchmarks. Though this needs to be thought through and takes a bit longer to setup (IMHO).

Thanks to Fred Tingaud for starting this site and hosting it for 9 years!

Thanks to Matt Godbolt to quickly react and enabling a new feature set for Compiler Explorer! Matt works for Hudson River Trading, and he was able to do this work during his work time! HRT was also present with a booth at Meeting C++ 2026, sponsoring the t-shirts and a social reception!

 

Join the Meeting C++ patreon community!
This and other posts on Meeting C++ are enabled by my supporters on patreon!