|
Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <algorithm>#include <stdlib.h>#include <stdio.h>#include <iostream>#include "runtime/string-value.h"#include "util/benchmark.h"#include "util/cpu-info.h"#include "util/hash-util.h"#include "common/names.h"Go to the source code of this file.
Classes | |
| struct | CompactStringValue< STORAGE_SIZE > |
| struct | TestData< Decimal > |
Functions | |
| void | TestNormalStringsSequential (int batch_size, void *d) |
| void | TestCompactStringsSequential (int batch_size, void *d) |
| void | TestNormalStringsRandom (int batch_size, void *d) |
| void | TestCompactStringsRandom (int batch_size, void *d) |
| void | AddTestString (TestData *data, const char *s) |
| void | InitTestData (TestData *data, int num_small_strings, int num_large_strings) |
| int | main (int argc, char **argv) |
| void AddTestString | ( | TestData * | data, |
| const char * | s | ||
| ) |
Definition at line 146 of file string-benchmark.cc.
References TestData< Decimal >::compact_strings, and TestData< Decimal >::normal_strings.
Referenced by InitTestData().
| void InitTestData | ( | TestData * | data, |
| int | num_small_strings, | ||
| int | num_large_strings | ||
| ) |
Definition at line 152 of file string-benchmark.cc.
References AddTestString(), TestData< Decimal >::normal_strings, TestData< Decimal >::random_order, and TestData< Decimal >::string_data.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 177 of file string-benchmark.cc.
References impala::Benchmark::AddBenchmark(), impala::Benchmark::GetMachineInfo(), TestData< Decimal >::hash_compact, TestData< Decimal >::hash_normal, impala::CpuInfo::Init(), InitTestData(), impala::Benchmark::Measure(), TestCompactStringsRandom(), TestCompactStringsSequential(), TestNormalStringsRandom(), and TestNormalStringsSequential().
| void TestCompactStringsRandom | ( | int | batch_size, |
| void * | d | ||
| ) |
Definition at line 135 of file string-benchmark.cc.
References TestData< Decimal >::compact_strings, impala::HashUtil::CrcHash(), TestData< Decimal >::hash_compact, CompactStringValue< STORAGE_SIZE >::len(), CompactStringValue< STORAGE_SIZE >::ptr(), and TestData< Decimal >::random_order.
Referenced by main().
| void TestCompactStringsSequential | ( | int | batch_size, |
| void * | d | ||
| ) |
Definition at line 113 of file string-benchmark.cc.
References TestData< Decimal >::compact_strings, impala::HashUtil::CrcHash(), TestData< Decimal >::hash_compact, CompactStringValue< STORAGE_SIZE >::len(), and CompactStringValue< STORAGE_SIZE >::ptr().
Referenced by main().
| void TestNormalStringsRandom | ( | int | batch_size, |
| void * | d | ||
| ) |
Definition at line 124 of file string-benchmark.cc.
References impala::HashUtil::CrcHash(), TestData< Decimal >::hash_normal, impala::StringValue::len, TestData< Decimal >::normal_strings, impala::StringValue::ptr, and TestData< Decimal >::random_order.
Referenced by main().
| void TestNormalStringsSequential | ( | int | batch_size, |
| void * | d | ||
| ) |
Definition at line 102 of file string-benchmark.cc.
References impala::HashUtil::CrcHash(), TestData< Decimal >::hash_normal, impala::StringValue::len, TestData< Decimal >::normal_strings, and impala::StringValue::ptr.
Referenced by main().