Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
thread-create-benchmark.cc File Reference
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include "util/cpu-info.h"
#include "util/debug-util.h"
#include "util/pretty-printer.h"
#include "util/thread.h"
#include "util/stopwatch.h"
#include <boost/thread/thread.hpp>
#include <boost/foreach.hpp>
#include <boost/bind.hpp>
#include "common/names.h"
Include dependency graph for thread-create-benchmark.cc:

Go to the source code of this file.

Functions

void EmptyThread ()
 
void NativeThreadStarter (int num_threads, const function< void()> &f)
 
void ImpalaThreadStarter (int num_threads, const function< void()> &f)
 
void TimeParallelExecutors (int num_threads, int num_threads_per_executor, bool use_native_threads=true)
 
int main (int argc, char **argv)
 

Function Documentation

void EmptyThread ( )

Definition at line 74 of file thread-create-benchmark.cc.

Referenced by TimeParallelExecutors().

void ImpalaThreadStarter ( int  num_threads,
const function< void()> &  f 
)

Definition at line 87 of file thread-create-benchmark.cc.

References impala::Thread::Join().

Referenced by TimeParallelExecutors().

void NativeThreadStarter ( int  num_threads,
const function< void()> &  f 
)

Definition at line 78 of file thread-create-benchmark.cc.

Referenced by TimeParallelExecutors().

void TimeParallelExecutors ( int  num_threads,
int  num_threads_per_executor,
bool  use_native_threads = true 
)