~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/archive_performance.cc

Merge Joe, plus I updated the tests.

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