This is a great video about avoiding fallacies in benchmarking, specifically around Kotlin. One thing they used during tests is a "blackhole" object to make sure that compilers don't optimize away code from loops. The implementation goes back to a GPL2 licensed one in the JVM. I wonder if it would make sense to port that to Dart. Dart already has benchmarking harnesses but having a black hole evaluator could be interesting. #DartLang #kotlin #programming
- YouTube

There are no comments yet.