Skip to content

Instantly share code, notes, and snippets.

@owensd owensd/perf_loop_million.m
Last active Aug 29, 2015

Embed
What would you like to do?
- (void)testLoopOneMillionTimes
{
__block int count = 0;
[self measureBlock:^{
for (int i = 0; i < 1000000; ++i) {
count++;
}
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.