Corrected the count in building the MessageSpeedTestLookup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13919 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2005-08-09 13:34:37 +00:00
parent dd3c15369e
commit 629192bcaa
@@ -22,7 +22,7 @@
#define LOG(function, time) \ #define LOG(function, time) \
{ \ { \
FILE *logfile = fopen("/boot/home/Desktop/messagespeed.log", "a"); \ FILE *logfile = fopen("/boot/home/Desktop/messagespeed.log", "a"); \
fprintf(logfile, "%s:\t%lld\n", function, time); \ fprintf(logfile, "%s:\t%lld\n", function, time); \
fclose(logfile); \ fclose(logfile); \
} }
#else #else
@@ -69,7 +69,7 @@ TMessageSpeedTest::MessageSpeedTestLookup##count##type() \
srand(time(NULL)); \ srand(time(NULL)); \
BMessage message; \ BMessage message; \
\ \
for (int32 i = 0; i < 5; i++) { \ for (int32 i = 0; i < count; i++) { \
BString string; \ BString string; \
string << i; \ string << i; \
message.AddInt32(string.String(), i); \ message.AddInt32(string.String(), i); \