Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
atof-benchmark.cc File Reference
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <vector>
#include <sstream>
#include "runtime/string-value.h"
#include "util/benchmark.h"
#include "util/cpu-info.h"
#include "util/string-parser.h"
#include "common/names.h"
Include dependency graph for atof-benchmark.cc:

Go to the source code of this file.

Classes

struct  TestData< Decimal >
 

Macros

#define VALIDATE   0
 
#define VALIDATE_RESULT(actual, expected, str)
 

Functions

void AddTestData (TestData *data, const string &input)
 
void AddTestData (TestData *data, int n, double min=-10, double max=10)
 
void TestAtof (int batch_size, void *d)
 
void TestImpala (int batch_size, void *d)
 
void TestStrtod (int batch_size, void *d)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define VALIDATE   0

Definition at line 41 of file atof-benchmark.cc.

#define VALIDATE_RESULT (   actual,
  expected,
  str 
)

Definition at line 53 of file atof-benchmark.cc.

Referenced by TestImpala().

Function Documentation

void AddTestData ( TestData data,
const string &  input 
)

Definition at line 62 of file atof-benchmark.cc.

References TestData< Decimal >::data, and TestData< Decimal >::memory.

Referenced by AddTestData(), and main().

void AddTestData ( TestData data,
int  n,
double  min = -10,
double  max = 10 
)

Definition at line 68 of file atof-benchmark.cc.

References AddTestData().

void TestAtof ( int  batch_size,
void *  d 
)

Definition at line 79 of file atof-benchmark.cc.

References TestData< Decimal >::data, and TestData< Decimal >::result.

Referenced by main().

void TestImpala ( int  batch_size,
void *  d 
)
void TestStrtod ( int  batch_size,
void *  d 
)

Definition at line 103 of file atof-benchmark.cc.

References TestData< Decimal >::data, and TestData< Decimal >::result.

Referenced by main().