I propose the attached patch to change pg_test_fsync's output from
"microsecs" to "usecs", which is the designation we use in other places.
Also remove parentheses, e.g.
1 * 16kB open_sync write 8012.933 ops/sec 125 usecs/op
2 * 8kB open_sync writes 5399.901 ops/sec 185 usecs/op
4 * 4kB open_sync writes 3340.958 ops/sec 299 usecs/op
8 * 2kB open_sync writes 1903.621 ops/sec 525 usecs/op
16 * 1kB open_sync writes 1032.606 ops/sec 968 usecs/op
This is new output for 9.3.
--
Bruce Momjian <[email protected]> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
diff --git a/contrib/pg_test_fsync/pg_test_fsync.c b/contrib/pg_test_fsync/pg_test_fsync.c
new file mode 100644
index 7bc0d0e..b978d9e
*** a/contrib/pg_test_fsync/pg_test_fsync.c
--- b/contrib/pg_test_fsync/pg_test_fsync.c
***************
*** 25,31 ****
#define LABEL_FORMAT " %-32s"
#define NA_FORMAT "%18s"
! #define OPS_FORMAT "%9.3f ops/sec (%6.0f microsecs/op)"
#define USECS_SEC 1000000
/* These are macros to avoid timing the function call overhead. */
--- 25,31 ----
#define LABEL_FORMAT " %-32s"
#define NA_FORMAT "%18s"
! #define OPS_FORMAT "%9.3f ops/sec %6.0f usecs/op"
#define USECS_SEC 1000000
/* These are macros to avoid timing the function call overhead. */
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers