Add fastest results report.
authorGreg Smith <gsmith@gregsmith.com>
Thu, 18 Mar 2010 18:57:24 +0000 (14:57 -0400)
committerGreg Smith <gsmith@gregsmith.com>
Thu, 18 Mar 2010 18:57:24 +0000 (14:57 -0400)
Cleanup SQL formatting in existing report code too.

fastest.sql [new file with mode: 0644]
report.sql
summary.sql

diff --git a/fastest.sql b/fastest.sql
new file mode 100644 (file)
index 0000000..ddda640
--- /dev/null
@@ -0,0 +1,5 @@
+SELECT
+  set,script,scale,clients,workers,
+  round(tps) as tps
+FROM tests
+ORDER BY tps DESC LIMIT 20;
index 9dd20657aa1ad439c282e297def87aa06cc1195e..0504799f94316d69f7ecc3c165bb1c6d97b068a6 100644 (file)
@@ -1 +1,9 @@
-select set,scale,test,script,clients,workers,round(tps) as tps,round(1000*avg_latency)/1000 as avg_latency,round(1000*percentile_90_latency)/1000 as "90%<",1000*round(max_latency)/1000 as max_latency,trans from tests order by set,scale,script,clients,test; 
+SELECT
+  set,scale,test,script,clients,workers,
+  round(tps) AS tps,
+  round(1000*avg_latency)/1000 AS avg_latency,
+  round(1000*percentile_90_latency)/1000 AS "90%<",
+  1000*round(max_latency)/1000 AS max_latency,
+  trans
+FROM tests
+ORDER BY set,scale,script,clients,test; 
index 80aa8edea26fc9ae193b86b6594b9770fbd752c9..e74d4d0897304f1b1584751c7c0fa9f8fcbc1079 100644 (file)
@@ -1,12 +1,12 @@
-select 
+SELECT
   set,scale,
-  pg_size_pretty(avg(dbsize)::int8) as db_size,
+  pg_size_pretty(avg(dbsize)::int8) AS db_size,
   clients,
   round(avg(tps)) as tps,
-  round(1000 * avg(avg_latency))/1000 as avg_latency,
-  round(1000 * avg(max_latency))/1000 as max_latency ,
-  round(1000 * avg(percentile_90_latency))/1000 as "90%<",
-  to_char(avg(end_time -  start_time),'HH24:MI:SS') as runtime
-from tests 
-group by set,scale,clients 
-order by set,scale,clients; 
+  round(1000 * avg(avg_latency))/1000 AS avg_latency,
+  round(1000 * avg(max_latency))/1000 AS max_latency ,
+  round(1000 * avg(percentile_90_latency))/1000 AS "90%<",
+  to_char(avg(end_time -  start_time),'HH24:MI:SS') AS runtime
+FROM tests 
+GROUP BY set,scale,clients 
+ORDER BY set,scale,clients;