Thursday, October 25, 2012

3 Tips for Benchmarking Dart Applications

John McCutchan shares three tips for benchmarking your Dart application. Benchmarking is the act of measuring how much memory or CPU time your application takes to execute. The article focuses on CPU benchmarking and explains how to correctly set up a Dart benchmark.

Make your code faster (Photo by Slooby)
The article covers these three important steps when benchmarking your Dart application:
  1. Perform a warm-up before measuring code performance.
  2. Ensure the code does not raise any errors when run in checked mode.
  3. Run your benchmark in production mode with debugging disabled.
As always, the Dart team is interested in your feedback. Please join the Dart mailing list, ask questions on Stack Overflow, and file feature and bugs on