Refactoring speed test for Chrome