First draft of performance test SQL schema.
[beedb.git] / sql / schema.sql
blobdd78b4d7ed676803a16fc302573c8a5708db5753
1 CREATE TABLE perf_counts (
2   test_run_id   INT NOT NULL,
3   instance_idx  INT NOT NULL,
4   counter_idx   INT NOT NULL,
5   counter_name  VARCHAR(100) NOT NULL,
6   value         BIGINT NOT NULL,
7   PRIMARY KEY (test_run_id, instance_idx, counter_idx)
8 );
10 CREATE TABLE perf_wallclock (
11   test_run_id   INT NOT NULL,
12   instance_idx  INT NOT NULL,
13   secs          DOUBLE NOT NULL,
14   PRIMARY KEY (test_run_id, instance_idx)
17 CREATE TABLE perf_test_run (
18   id            INT PRIMARY KEY AUTO_INCREMENT,
19   suite_run_id  INT NOT NULL,
20   /* Major is the test program, minor the test name. */
21   test_major    VARCHAR(50) NOT NULL,
22   test_minor    VARCHAR(50) NOT NULL,
23   /* Different parameters (eg. buffer size), can be NULL. */
24   param1        VARCHAR(200),
25   param2        VARCHAR(200),
26   /* Variants of a test are intended to be compared against each other. */
27   /* Can be NULL if no variant. */
28   variant       VARCHAR(50),
29   /* Number of iterations run. */
30   /* Used to compute cost/iteration. */
31   iterations    BIGINT NOT NULL,
32   /* Amount of work done in one iteration (eg. bytes copied etc), optional. */
33   workunits     BIGINT
36 CREATE TABLE perf_suite_run (
37   id        INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
38   dt        TIMESTAMP NOT NULL,
39   code_rev  VARCHAR(128),
40   host_id   INT
43 CREATE TABLE perf_host (
44   id        INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
45   hostname  VARCHAR(128),
46   os        VARCHAR(64),
47   arch      VARCHAR(64),
48   cpu_name  VARCHAR(128),
49   cpu_mhz   DOUBLE