~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/test/bench/perquery

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
egrep 'x = "|elapse' | \
 
4
awk 'BEGIN { x = 0; y = 0; z = 0; a = 0; } \
 
5
     /.*elapse.*/ {x = $2 + x; y = $4 + y; z = $6 + z;} \
 
6
     /.*x = ".*/ { \
 
7
         printf "query %2d: %7.3f real %7.3f user %7.3f sys\n", a, x, y, z; \
 
8
         x = 0; y = 0; z = 0; a = a + 1; } \
 
9
     END {printf("query %2d: %7.3f real %7.3f user %7.3f sys\n", a, x, y, z);}'