mirror of
https://github.com/postgres/postgres.git
synced 2026-02-27 03:40:28 -05:00
It's still useless because it tests a standalone backend, but at least the bit rot is repaired.
9 lines
349 B
Bash
9 lines
349 B
Bash
#!/bin/sh
|
|
|
|
egrep 'x = "|elapse' | \
|
|
awk 'BEGIN { x = 0; y = 0; z = 0; a = 0; } \
|
|
/.*elapse.*/ {x = $2 + x; y = $4 + y; z = $6 + z;} \
|
|
/.*x = ".*/ { \
|
|
printf "query %2d: %7.3f real %7.3f user %7.3f sys\n", a, x, y, z; \
|
|
x = 0; y = 0; z = 0; a = a + 1; } \
|
|
END {printf("query %2d: %7.3f real %7.3f user %7.3f sys\n", a, x, y, z);}'
|