projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8359ed8
)
pg_test_fsync: expand ops/sec display
author
Bruce Momjian
<
[email protected]
>
Fri, 2 Aug 2013 04:45:19 +0000
(
00:45
-0400)
committer
Bruce Momjian
<
[email protected]
>
Fri, 2 Aug 2013 04:45:19 +0000
(
00:45
-0400)
Expand ops/sec by two digits to maintain alignment on servers with fast
I/O subsystems, e.g. can now display < 10M ops/sec with consistent
alignment.
contrib/pg_test_fsync/pg_test_fsync.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_test_fsync/pg_test_fsync.c
b/contrib/pg_test_fsync/pg_test_fsync.c
index 78c94859159f35f70b305e666aa4620f824b4d43..669c4190d38c342afaaa0e4480dfc374612d6063 100644
(file)
--- a/
contrib/pg_test_fsync/pg_test_fsync.c
+++ b/
contrib/pg_test_fsync/pg_test_fsync.c
@@
-24,8
+24,8
@@
#define XLOG_BLCKSZ_K (XLOG_BLCKSZ / 1024)
#define LABEL_FORMAT " %-32s"
-#define NA_FORMAT "%
18
s"
-#define OPS_FORMAT "%
9
.3f ops/sec %6.0f usecs/op"
+#define NA_FORMAT "%
20
s"
+#define OPS_FORMAT "%
11
.3f ops/sec %6.0f usecs/op"
#define USECS_SEC 1000000
/* These are macros to avoid timing the function call overhead. */