Skip to content

Commit

Permalink
update the queries to include run_id and total_hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
spennihana committed Apr 18, 2014
1 parent 7bcb82f commit 4a5d8b4
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 19 deletions.
58 changes: 44 additions & 14 deletions h2o-perf/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 700px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -65,6 +66,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -92,7 +94,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 700px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -101,6 +104,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -137,7 +141,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 700px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -146,6 +151,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -173,7 +179,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 650px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -182,6 +189,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -219,7 +227,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 700px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -228,6 +237,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -255,7 +265,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 600px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -264,6 +275,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -302,7 +314,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 650px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -311,6 +324,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -338,7 +352,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 600px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -347,6 +362,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -385,7 +401,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 700px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -394,6 +411,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -421,7 +439,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 600px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -430,6 +449,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -468,7 +488,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 700px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -477,6 +498,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -504,6 +526,7 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 700px;">
SELECT
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(p.end_epoch_ms - p.start_epoch_ms) / 1000 time_s,
Expand All @@ -514,6 +537,7 @@ <h4 class="panel-title">
tr.num_explan_cols,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -552,7 +576,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 700px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -561,6 +586,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -597,7 +623,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 650px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -606,6 +633,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down Expand Up @@ -644,7 +672,8 @@ <h4 class="panel-title">
<div>
<textarea name="parse_1" style="width: 700px; height: 650px;">
SELECT
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_run_id,
FROM_UNIXTIME(tr.start_epoch_ms / 1000, '%Y-%m-%d') as run_date,
tr.test_name,
(tp.end_epoch_ms - tp.start_epoch_ms) / 1000 time_s,
tr.train_dataset_name,
Expand All @@ -653,6 +682,7 @@ <h4 class="panel-title">
tr.build_version,
tr.build_branch,
tr.cpus_per_host,
tr.total_hosts,
tr.heap_bytes_per_node / (1024 * 1024) heap_gb,
tr.contaminated,
tr.contamination_message
Expand Down
10 changes: 5 additions & 5 deletions h2o-perf/web/prototype/js/perf.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ function makeGraph(json, svg) {

var test_names = new Array();
for(i = 0; i < json.data.length; i++) {
bv = d3.values(json.data[i])[6].split('.');
bv = d3.values(json.data[i])[7].split('.');
bv = bv[bv.length - 1];
if (bv == "99999") { continue; }
if (bv == 99999) { continue; }
test_names.push(d3.values(json.data[i])[1]);
test_names.push(d3.values(json.data[i])[2]);
}
test_names = d3.set(test_names).values();

Expand All @@ -98,12 +98,12 @@ function makeGraph(json, svg) {
}
}
for(i = 0; i < json.data.length; i++) {
build = d3.values(json.data[i])[6].split('.');
build = d3.values(json.data[i])[7].split('.');
build = build[build.length - 1]
if (build == "99999") { continue; }
if (build == 99999) { continue; }
test = d3.values(json.data[i])[1];
dat = d3.values(json.data[i])[2];
test = d3.values(json.data[i])[2];
dat = d3.values(json.data[i])[3];
for(j = 0; j < datas2.length; j++) {
if (datas2[j].name === test) {
datas2[j].data.push([build, dat, test])
Expand Down

0 comments on commit 4a5d8b4

Please sign in to comment.