home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / TRACK.ZIP / STATS.SQL < prev    next >
Text File  |  1989-05-17  |  3KB  |  94 lines

  1. /* */
  2. /* This script creates the statistics tables for the Performance Tests */
  3. /* Tracking DB */
  4. /* */
  5.  
  6. use bench_stat
  7. go
  8.  
  9. /* */
  10. /* Runs */
  11. /* */
  12.  
  13. drop table multi_runs
  14. go
  15. create table multi_runs     /* Run summary information */
  16. (
  17.  multi_number int           NOT NULL,   /* Queen Run number */
  18.  start_time   datetime      NOT NULL,   /* Date/time test started */
  19.  end_time     datetime      NOT NULL,   /* Date/time test ended */
  20.  startrun     int           NOT NULL,   /* Starting workstation run number */
  21.  endrun       int           NOT NULL,   /* Ending workstation run number */
  22.  seconds      int           NOT NULL,   /* Number of seconds to run */
  23.  users        int           NOT NULL,   /* Number of users */
  24.  test_server  varchar(30)   NOT NULL,   /* Name of the server tests run on */
  25.  db           varchar(30)   NOT NULL,   /* Database under test */
  26.  track_server varchar(30)   NOT NULL,   /* Performance tracking server name */
  27.  max_accts    int           NOT NULL,   /* Max account */
  28.  max_teller   int           NOT NULL,   /* Max teller */
  29.  max_branch   int           NOT NULL    /* Max branch */
  30. )
  31. go
  32.  
  33. drop table runs
  34. go
  35.  
  36. create table runs        /* Workstation test information */
  37. (
  38.  number     int          NOT NULL,   /* Run number */
  39.  computer   varchar(30)  NOT NULL,   /* Computer identifier */
  40.  start_time datetime     NOT NULL,   /* Date/time test started */
  41.  end_time   datetime     NOT NULL,   /* Date/time test ended */
  42.  iterations int          NOT NULL,   /* Number of iterations completed */
  43.  errors     int          NOT NULL,   /* Number of errors occured */
  44.  tot_exec   int          NOT NULL,   /* Total execution time */
  45.  min_exec   int          NOT NULL,   /* Minimum execution time */
  46.  max_exec   int          NOT NULL,   /* Maximum execution time */
  47.  avg_exec   float        NOT NULL,   /* Average execution time */
  48.  under1_exec int         NOT NULL,   /* Number of iterations under 1 sec */
  49.  under2_exec int         NOT NULL    /* Number of iterations under 2 secs */
  50. )
  51.  
  52. create unique clustered index multi_run_idx on multi_runs(multi_number)
  53. go
  54. create unique clustered index run_idx on runs(number)
  55. go
  56.  
  57. /* */
  58. /* Multiresults */
  59. /* */
  60.  
  61. drop table multi_results
  62. go
  63.  
  64. create table multi_results
  65. (
  66.  multi_number   int          NOT NULL,   /* Queen run number */
  67.  iterations     int          NOT NULL,   /* Number of iterations completed */
  68.  errors         int          NOT NULL,   /* Number of errors occured */
  69.  tot_exec       int          NOT NULL,   /* Total execution time */
  70.  min_exec       int          NOT NULL,   /* Minimum execution time */
  71.  max_exec       int          NOT NULL,   /* Maximum execution time */
  72.  avg_exec       float        NOT NULL,   /* Average execution time */
  73.  elapsed        int          NOT NULL,   /* Actual elapsed time */
  74.  under1_exec    int          NOT NULL,   /* Number of iterations under 1 sec */
  75.  under2_exec    int          NOT NULL    /* Number of iterations under 2 secs */
  76. )
  77. go
  78.  
  79. create unique clustered index multi_results_idx on multi_results(multi_number)
  80. go
  81.  
  82.  
  83. /* */
  84. /* Stored procedure to clear all the above tables */
  85. /* */
  86.  
  87. drop procedure tp_clearstats
  88. go
  89. create procedure tp_clearstats as
  90. truncate table runs
  91. truncate table multi_runs
  92. truncate table multi_results
  93. go
  94.