3 ms·
The C++ and Swift implementations use a node pool from the Apache Portable Runtime. This benchmark would be a lot more interesting if we got to see the price of
by sirwhinesalot 5y ago
The C++ and Swift implementations use a node pool from the Apache Portable Runtime. This benchmark would be a lot more interesting if we got to see the price of C++'s RAII or Swift's reference counting.
The Swift Code looks like something you'd write in C.
- igouy 5y agoYou could ask the authors to update their study. You could look at the different binary trees programs shown on the current benchmarks game.
- igouy 5y ago> … the price of C++'s RAII… Like this? (There are 8 other C++ binary trees programs.) https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/binarytrees-gpp-7.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... > … or Swift's reference counting. Like this? (There are 4 other Swift binary trees programs.) https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/binarytrees-swift-1.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...