MCPcopy Create free account
hub / github.com/apache/impala / TestPython

Function TestPython

be/src/benchmarks/string-search-benchmark.cc:65–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void TestPython(int batch_size, void* d) {
66 TestData* data = reinterpret_cast<TestData*>(d);
67 for (int i = 0; i < batch_size; ++i) {
68 data->matches = 0;
69 for (int n = 0; n < data->needles.size(); ++n) {
70 StringSearch needle(&(data->needles[n]));
71 for (int iters = 0; iters < 10; ++iters) {
72 for (int h = 0; h < data->haystacks.size(); ++h) {
73 if (needle.Search(&(data->haystacks[h])) != -1) {
74 ++data->matches;
75 }
76 }
77 }
78 }
79 }
80}
81
82void TestImpalaNullTerminated(int batch_size, void* d) {
83 TestData* data = reinterpret_cast<TestData*>(d);

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
SearchMethod · 0.45

Tested by

no test coverage detected