win port of java binding + java perf tests

This commit is contained in:
Martin Sustrik
2009-09-08 13:55:13 +02:00
parent ec6822a477
commit 3069b6bd54
10 changed files with 374 additions and 140 deletions

View File

@@ -73,7 +73,8 @@ int main (int argc, char *argv [])
if (elapsed == 0)
elapsed = 1;
throughput = (double) message_count / (double) elapsed * 1000000;
throughput = (unsigned long)
((double) message_count / (double) elapsed * 1000000);
megabits = (double) (throughput * message_size * 8) / 1000000;
printf ("message size: %d [B]\n", (int) message_size);