Article Preview
Buy Now
COLUMN
Optimizing REALbasic
Optimizing with Stock Replacements
Issue: 4.3 (January/February 2006)
Author: Hank Marquis
Author Bio: Hank Marquis is the creator of Extreme Optimizing (
Article Description: No description available.
Article Length (in bytes): 12,552
Starting Page Number: 40
Article Number: 4319
Related Web Link(s):
http://www.extremeoptimizing.com
http://www.slayfire.com
http://www.itl.nist.gov/div898/handbook/prc/section1/prc13.htm
http://davidmlane.com/hyperstat/A28521.html
http://www.its.bldrdoc.gov/fs-1037/dir-001/_0125.htm
Excerpt of article text...
To optimize performance you must have a way of comparing two code blocks to see which method is faster. This article is part one of a three part series in which we will create a measuring system that provides statistically valid performance data. The "test harness" we build will be accurate, precise, and yield repeatable values about which you may feel confident.
The best way to explain how to compare code execution speed is by describing the incorrect method so many developers think they can use for optimization -- the Microseconds keyword. Many developers think optimization is as simple as follows:
- Save Microseconds current value (Start)
- Doing something interesting
- Save Microseconds current value (Stop)
...End of Excerpt. Please purchase the magazine to read the full article.