mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Benchmark overhead for classname lookup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3546 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
315e58360e
commit
a234fe0ccf
1 changed files with 8 additions and 0 deletions
|
@ -63,6 +63,14 @@ bench_object()
|
|||
baseline = [eTime timeIntervalSinceDate: sTime];
|
||||
PRINT_TIMER("Baseline: method call");
|
||||
|
||||
START_TIMER;
|
||||
for (i = 0; i < MAX_COUNT*10; i++)
|
||||
{
|
||||
id i = [NSObject class];
|
||||
}
|
||||
END_TIMER;
|
||||
PRINT_TIMER("Class: overhead ");
|
||||
|
||||
START_TIMER;
|
||||
myZone = NSCreateZone(2048, 2048, 1);
|
||||
for (i = 0; i < MAX_COUNT; i++)
|
||||
|
|
Loading…
Reference in a new issue