1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

show test result in ops/sec

(This used to be commit 88a146ab04d65fc306569044dc00907a374fac51)
This commit is contained in:
Andrew Tridgell 2000-01-02 01:40:54 +00:00
parent 7a0bc53221
commit 321983bb6b

View File

@ -197,13 +197,13 @@ int main(int argc, char *argv[])
srand(seed);
start_timer();
for (i=0;i<loops;i++) addrec_gdbm();
printf("gdbm took %g secs\n", end_timer());
printf("gdbm got %.2f ops/sec\n", i/end_timer());
#endif
srand(seed);
start_timer();
for (i=0;i<loops;i++) addrec_db();
printf("tdb took %g secs\n", end_timer());
printf("tdb got %.2f ops/sec\n", i/end_timer());
compare_db();