summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-02 01:40:54 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-02 01:40:54 +0000
commit321983bb6b68b5fe18f1021dc5851ce3bb0de625 (patch)
tree59df6d62c8437bfc7f33c61672b9cd373335c172 /source3/tdb
parent7a0bc5322114d792c5bce0f8f3d5f6a060670e36 (diff)
downloadsamba-321983bb6b68b5fe18f1021dc5851ce3bb0de625.tar.gz
samba-321983bb6b68b5fe18f1021dc5851ce3bb0de625.tar.bz2
samba-321983bb6b68b5fe18f1021dc5851ce3bb0de625.zip
show test result in ops/sec
(This used to be commit 88a146ab04d65fc306569044dc00907a374fac51)
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdbtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/tdb/tdbtest.c b/source3/tdb/tdbtest.c
index 39dd5ff93b..8089e7be7d 100644
--- a/source3/tdb/tdbtest.c
+++ b/source3/tdb/tdbtest.c
@@ -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();