Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include "runtime/string-value.h"
#include "util/benchmark.h"
#include "util/cpu-info.h"
#include "util/sse-util.h"
#include "common/names.h"
Go to the source code of this file.
Classes | |
struct | TestData< Decimal > |
Functions | |
int | StringCompare1 (const char *s1, int n1, const char *s2, int n2, int len) |
int | StringCompare2 (const char *s1, int n1, const char *s2, int n2, int len) |
int | StringCompare3 (const char *s1, int n1, const char *s2, int n2, int len) |
void | TestStringCompare1 (int batch_size, void *d) |
void | TestStringCompare2 (int batch_size, void *d) |
void | TestStringCompare3 (int batch_size, void *d) |
TestData | InitTestData (int len) |
int | main (int argc, char **argv) |
TestData InitTestData | ( | int | len | ) |
Definition at line 168 of file string-compare-benchmark.cc.
References TestData< Decimal >::n1, TestData< Decimal >::n2, TestData< Decimal >::s1, and TestData< Decimal >::s2.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 179 of file string-compare-benchmark.cc.
References impala::Benchmark::AddBenchmark(), impala::CpuInfo::Init(), InitTestData(), impala::Benchmark::Measure(), TestStringCompare1(), TestStringCompare2(), and TestStringCompare3().
int StringCompare1 | ( | const char * | s1, |
int | n1, | ||
const char * | s2, | ||
int | n2, | ||
int | len | ||
) |
Definition at line 28 of file string-compare-benchmark.cc.
References impala::SSEUtil::CHARS_PER_128_BIT_REGISTER, impala::SSEUtil::CHARS_PER_64_BIT_REGISTER, impala::CpuInfo::IsSupported(), impala::CpuInfo::SSE4_2, impala::SSE4_cmpestri(), and impala::SSEUtil::STRCMP_MODE.
Referenced by TestStringCompare1().
int StringCompare2 | ( | const char * | s1, |
int | n1, | ||
const char * | s2, | ||
int | n2, | ||
int | len | ||
) |
Definition at line 66 of file string-compare-benchmark.cc.
References impala::SSEUtil::CHARS_PER_128_BIT_REGISTER, impala::CpuInfo::IsSupported(), impala::CpuInfo::SSE4_2, impala::SSE4_cmpestri(), and impala::SSEUtil::STRCMP_MODE.
Referenced by TestStringCompare2().
int StringCompare3 | ( | const char * | s1, |
int | n1, | ||
const char * | s2, | ||
int | n2, | ||
int | len | ||
) |
Definition at line 90 of file string-compare-benchmark.cc.
References impala::SSEUtil::CHARS_PER_128_BIT_REGISTER, impala::CpuInfo::IsSupported(), impala::CpuInfo::SSE4_2, impala::SSE4_cmpestri(), and impala::SSEUtil::STRCMP_MODE.
Referenced by TestStringCompare3().
void TestStringCompare1 | ( | int | batch_size, |
void * | d | ||
) |
Definition at line 120 of file string-compare-benchmark.cc.
References TestData< Decimal >::n1, TestData< Decimal >::n2, TestData< Decimal >::result, TestData< Decimal >::s1, TestData< Decimal >::s2, and StringCompare1().
Referenced by main().
void TestStringCompare2 | ( | int | batch_size, |
void * | d | ||
) |
Definition at line 136 of file string-compare-benchmark.cc.
References TestData< Decimal >::n1, TestData< Decimal >::n2, TestData< Decimal >::result, TestData< Decimal >::s1, TestData< Decimal >::s2, and StringCompare2().
Referenced by main().
void TestStringCompare3 | ( | int | batch_size, |
void * | d | ||
) |
Definition at line 152 of file string-compare-benchmark.cc.
References TestData< Decimal >::n1, TestData< Decimal >::n2, TestData< Decimal >::result, TestData< Decimal >::s1, TestData< Decimal >::s2, and StringCompare3().
Referenced by main().