mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
433e3fed93
commit
8a2d9fe1fd
1 changed files with 8 additions and 0 deletions
|
@ -63,6 +63,14 @@ bench_object()
|
||||||
baseline = [eTime timeIntervalSinceDate: sTime];
|
baseline = [eTime timeIntervalSinceDate: sTime];
|
||||||
PRINT_TIMER("Baseline: method call");
|
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;
|
START_TIMER;
|
||||||
myZone = NSCreateZone(2048, 2048, 1);
|
myZone = NSCreateZone(2048, 2048, 1);
|
||||||
for (i = 0; i < MAX_COUNT; i++)
|
for (i = 0; i < MAX_COUNT; i++)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue