From c0da317656a08975cbc6f10efdf07425281d2bc1 Mon Sep 17 00:00:00 2001 From: Kristian Nielsen Date: Wed, 18 Feb 2009 13:14:51 +0100 Subject: [PATCH] - Tweak performance test output for easier parsing. - Tweak performance test SQL schema. --- perf/perftest.cc | 4 ++-- sql/schema.sql | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/perf/perftest.cc b/perf/perftest.cc index f2550ef..cd3a751 100644 --- a/perf/perftest.cc +++ b/perf/perftest.cc @@ -77,7 +77,7 @@ perftest::~perftest() void perftest::run_test(test *t, uint64_t loops) { - printf("%s", t->text); + printf("T: %s", t->text); if (t->variant != NULL) printf(" {%s}", t->variant); if (t->param1 != NULL) @@ -103,7 +103,7 @@ perftest::run_test(test *t, uint64_t loops) t->run(loops); } - printf(" Seconds: %.4f ", t->elapsed_time[0]); + printf(" Seconds: %.4f", t->elapsed_time[0]); for (int run= 1; run < num_runs; run++) printf(" %+.4f", t->elapsed_time[run] - t->elapsed_time[0]); printf("\n"); diff --git a/sql/schema.sql b/sql/schema.sql index dd78b4d..a13c5bf 100644 --- a/sql/schema.sql +++ b/sql/schema.sql @@ -3,7 +3,7 @@ CREATE TABLE perf_counts ( instance_idx INT NOT NULL, counter_idx INT NOT NULL, counter_name VARCHAR(100) NOT NULL, - value BIGINT NOT NULL, + counter_value BIGINT NOT NULL, PRIMARY KEY (test_run_id, instance_idx, counter_idx) ); @@ -44,6 +44,7 @@ CREATE TABLE perf_host ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, hostname VARCHAR(128), os VARCHAR(64), + kernel VARCHAR(64), arch VARCHAR(64), cpu_name VARCHAR(128), cpu_mhz DOUBLE -- 2.11.4.GIT