~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/archive_performance.cc

  • Committer: Joe Daly
  • Date: 2010-03-08 04:23:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1380.
  • Revision ID: skinny.moey@gmail.com-20100308042354-7k0jibdqaxkhac7o
scoreboardĀ implementationĀ forĀ statistics

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <string.h>
24
24
#include <fcntl.h>
25
25
#include <sys/stat.h>
26
 
#include <memory>
 
26
#include "drizzled/my_getopt.h"
27
27
 
28
28
#if TIME_WITH_SYS_TIME
29
29
# include <sys/time.h>
36
36
# endif
37
37
#endif
38
38
 
39
 
#include <boost/scoped_ptr.hpp>
40
39
 
41
40
#define TEST_FILENAME "performance_test.az"
42
41
 
69
68
  for (method= AZ_METHOD_BLOCK; method < AZ_METHOD_MAX; method++)
70
69
  {
71
70
    unsigned int ret;
72
 
    boost::scoped_ptr<azio_stream> reader_handle_ap(new azio_stream);
73
 
    azio_stream &reader_handle= *reader_handle_ap.get();
 
71
    azio_stream reader_handle;
74
72
 
75
73
    if (method)
76
74
      printf("Performing azio_read() test\n");
100
98
 
101
99
static int generate_data(uint64_t rows_to_test)
102
100
{
103
 
  boost::scoped_ptr<azio_stream> writer_handle_ap(new azio_stream);
104
 
  azio_stream &writer_handle= *writer_handle_ap.get();
 
101
  azio_stream writer_handle;
105
102
  uint64_t x;
106
103
  unsigned int ret;
107
104
  struct timeval start_time, end_time;