show test result in ops/sec
authorAndrew Tridgell <tridge@samba.org>
Sun, 2 Jan 2000 01:40:54 +0000 (01:40 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 2 Jan 2000 01:40:54 +0000 (01:40 +0000)
source/tdb/tdbtest.c

index 39dd5ff93bc1a665b519d5939108ffd30fd55d3c..8089e7be7d5a845a379aa6453e455a224b6e7a31 100644 (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();