Update speed test code.