proxygen
|
#include <folly/test/function_benchmark/benchmark_impl.h>
#include <folly/test/function_benchmark/test_functions.h>
#include <glog/logging.h>
#include <folly/Benchmark.h>
#include <folly/ScopeGuard.h>
#include <folly/portability/GFlags.h>
Go to the source code of this file.
Functions | |
DECLARE_int32 (bm_max_iters) | |
BENCHMARK (fn_invoke, iters) | |
BENCHMARK (fn_ptr_invoke, iters) | |
BENCHMARK (std_function_invoke, iters) | |
BENCHMARK (Function_invoke, iters) | |
BENCHMARK (mem_fn_invoke, iters) | |
BENCHMARK (fn_ptr_invoke_through_inline, iters) | |
BENCHMARK (lambda_invoke_fn, iters) | |
BENCHMARK (lambda_noop, iters) | |
BENCHMARK (lambda_local_var, iters) | |
BENCHMARK (fn_ptr_invoke_through_template, iters) | |
BENCHMARK (virtual_fn_invoke, iters) | |
BENCHMARK (fn_ptr_create_invoke, iters) | |
BENCHMARK (std_function_create_invoke, iters) | |
BENCHMARK (Function_create_invoke, iters) | |
BENCHMARK (mem_fn_create_invoke, iters) | |
BENCHMARK (std_bind_create_invoke, iters) | |
BENCHMARK (std_bind_direct_invoke, iters) | |
BENCHMARK (scope_guard_std_function, iters) | |
BENCHMARK (scope_guard_std_function_rvalue, iters) | |
BENCHMARK (scope_guard_Function_rvalue, iters) | |
BENCHMARK (scope_guard_fn_ptr, iters) | |
BENCHMARK (scope_guard_lambda_noop, iters) | |
BENCHMARK (scope_guard_lambda_function, iters) | |
BENCHMARK (scope_guard_lambda_local_var, iters) | |
BENCHMARK_DRAW_LINE () | |
BENCHMARK (throw_exception, iters) | |
BENCHMARK (catch_no_exception, iters) | |
BENCHMARK (return_exc_ptr, iters) | |
BENCHMARK (exc_ptr_param_return, iters) | |
BENCHMARK (exc_ptr_param_return_null, iters) | |
BENCHMARK (return_string, iters) | |
BENCHMARK (return_string_noexcept, iters) | |
BENCHMARK (return_code, iters) | |
BENCHMARK (return_code_noexcept, iters) | |
BENCHMARK (std_function_create_move_invoke, iters) | |
BENCHMARK (Function_create_move_invoke, iters) | |
BENCHMARK (std_function_create_move_invoke_small, iters) | |
BENCHMARK (Function_create_move_invoke_small, iters) | |
BENCHMARK (std_function_create_move_invoke_ref, iters) | |
BENCHMARK (Function_create_move_invoke_ref, iters) | |
BENCHMARK (function_ptr_move, iters) | |
BENCHMARK (std_function_move_small, iters) | |
BENCHMARK (Function_move_small, iters) | |
BENCHMARK (std_function_move_small_trivial, iters) | |
BENCHMARK (Function_move_small_trivial, iters) | |
BENCHMARK (std_function_move_large, iters) | |
BENCHMARK (Function_move_large, iters) | |
int | main (int argc, char **argv) |
BENCHMARK | ( | fn_invoke | , |
iters | |||
) |
BENCHMARK | ( | fn_ptr_invoke | , |
iters | |||
) |
Definition at line 39 of file main.cpp.
References BM_fn_ptr_invoke_impl(), and doNothing().
BENCHMARK | ( | std_function_invoke | , |
iters | |||
) |
Definition at line 44 of file main.cpp.
References BM_std_function_invoke_impl(), and doNothing().
BENCHMARK | ( | Function_invoke | , |
iters | |||
) |
Definition at line 49 of file main.cpp.
References BM_Function_invoke_impl(), and doNothing().
BENCHMARK | ( | mem_fn_invoke | , |
iters | |||
) |
Definition at line 54 of file main.cpp.
References BM_mem_fn_invoke_impl(), TestClass::doNothing(), and tc.
BENCHMARK | ( | fn_ptr_invoke_through_inline | , |
iters | |||
) |
Definition at line 60 of file main.cpp.
References BM_fn_ptr_invoke_inlined_impl(), and doNothing().
BENCHMARK | ( | lambda_invoke_fn | , |
iters | |||
) |
Definition at line 65 of file main.cpp.
References BM_invoke_fn_template_impl(), and doNothing().
BENCHMARK | ( | lambda_noop | , |
iters | |||
) |
Definition at line 70 of file main.cpp.
References BM_invoke_fn_template_impl().
BENCHMARK | ( | lambda_local_var | , |
iters | |||
) |
Definition at line 75 of file main.cpp.
References BM_invoke_fn_template_impl(), and uint32_t.
BENCHMARK | ( | fn_ptr_invoke_through_template | , |
iters | |||
) |
Definition at line 93 of file main.cpp.
References BM_invoke_fn_template_impl(), and doNothing().
BENCHMARK | ( | virtual_fn_invoke | , |
iters | |||
) |
Definition at line 98 of file main.cpp.
References BM_virtual_fn_invoke_impl().
BENCHMARK | ( | fn_ptr_create_invoke | , |
iters | |||
) |
BENCHMARK | ( | std_function_create_invoke | , |
iters | |||
) |
BENCHMARK | ( | Function_create_invoke | , |
iters | |||
) |
BENCHMARK | ( | mem_fn_create_invoke | , |
iters | |||
) |
Definition at line 129 of file main.cpp.
References TestClass::doNothing(), and tc.
BENCHMARK | ( | std_bind_create_invoke | , |
iters | |||
) |
Definition at line 139 of file main.cpp.
References folly::netops::bind(), TestClass::doNothing(), and tc.
BENCHMARK | ( | std_bind_direct_invoke | , |
iters | |||
) |
Definition at line 148 of file main.cpp.
References folly::netops::bind(), TestClass::doNothing(), and tc.
BENCHMARK | ( | scope_guard_std_function | , |
iters | |||
) |
Definition at line 157 of file main.cpp.
References doNothing(), g(), and folly::makeGuard().
BENCHMARK | ( | scope_guard_std_function_rvalue | , |
iters | |||
) |
Definition at line 167 of file main.cpp.
References doNothing(), g(), and folly::makeGuard().
BENCHMARK | ( | scope_guard_Function_rvalue | , |
iters | |||
) |
Definition at line 176 of file main.cpp.
References doNothing(), g(), and folly::makeGuard().
BENCHMARK | ( | scope_guard_fn_ptr | , |
iters | |||
) |
Definition at line 184 of file main.cpp.
References doNothing(), g(), and folly::makeGuard().
BENCHMARK | ( | scope_guard_lambda_noop | , |
iters | |||
) |
Definition at line 192 of file main.cpp.
References g(), and folly::makeGuard().
BENCHMARK | ( | scope_guard_lambda_function | , |
iters | |||
) |
Definition at line 200 of file main.cpp.
References doNothing(), g(), and folly::makeGuard().
BENCHMARK | ( | scope_guard_lambda_local_var | , |
iters | |||
) |
Definition at line 208 of file main.cpp.
References BENCHMARK_DRAW_LINE(), count, g(), folly::makeGuard(), and uint32_t.
BENCHMARK | ( | throw_exception | , |
iters | |||
) |
BENCHMARK | ( | catch_no_exception | , |
iters | |||
) |
BENCHMARK | ( | return_exc_ptr | , |
iters | |||
) |
BENCHMARK | ( | exc_ptr_param_return | , |
iters | |||
) |
Definition at line 255 of file main.cpp.
References exceptionPtrReturnParam().
BENCHMARK | ( | exc_ptr_param_return_null | , |
iters | |||
) |
Definition at line 262 of file main.cpp.
References exceptionPtrReturnParam().
BENCHMARK | ( | return_string | , |
iters | |||
) |
BENCHMARK | ( | return_string_noexcept | , |
iters | |||
) |
BENCHMARK | ( | return_code | , |
iters | |||
) |
BENCHMARK | ( | return_code_noexcept | , |
iters | |||
) |
Definition at line 286 of file main.cpp.
References BENCHMARK_DRAW_LINE(), and returnCodeNoExcept().
BENCHMARK | ( | std_function_create_move_invoke | , |
iters | |||
) |
Definition at line 294 of file main.cpp.
References a, f, i, folly::pushmi::invoke, and folly::gen::move.
BENCHMARK | ( | Function_create_move_invoke | , |
iters | |||
) |
Definition at line 302 of file main.cpp.
References a, f, i, folly::pushmi::invoke, and folly::gen::move.
BENCHMARK | ( | std_function_create_move_invoke_small | , |
iters | |||
) |
Definition at line 310 of file main.cpp.
References doNothing(), f, i, folly::pushmi::invoke, and folly::gen::move.
BENCHMARK | ( | Function_create_move_invoke_small | , |
iters | |||
) |
Definition at line 317 of file main.cpp.
References doNothing(), f, i, folly::pushmi::invoke, and folly::gen::move.
BENCHMARK | ( | std_function_create_move_invoke_ref | , |
iters | |||
) |
Definition at line 324 of file main.cpp.
References a, f, i, folly::pushmi::invoke, and folly::gen::move.
BENCHMARK | ( | Function_create_move_invoke_ref | , |
iters | |||
) |
Definition at line 332 of file main.cpp.
References a, BENCHMARK_DRAW_LINE(), f, i, folly::pushmi::invoke, and folly::gen::move.
BENCHMARK | ( | function_ptr_move | , |
iters | |||
) |
Definition at line 342 of file main.cpp.
References doNothing(), folly::doNotOptimizeAway(), f, i, and folly::gen::move.
BENCHMARK | ( | std_function_move_small | , |
iters | |||
) |
Definition at line 351 of file main.cpp.
References a, doNothing(), folly::doNotOptimizeAway(), f, i, and folly::gen::move.
BENCHMARK | ( | Function_move_small | , |
iters | |||
) |
Definition at line 361 of file main.cpp.
References a, doNothing(), folly::doNotOptimizeAway(), f, i, and folly::gen::move.
BENCHMARK | ( | std_function_move_small_trivial | , |
iters | |||
) |
Definition at line 371 of file main.cpp.
References doNothing(), folly::doNotOptimizeAway(), f, i, and folly::gen::move.
BENCHMARK | ( | Function_move_small_trivial | , |
iters | |||
) |
Definition at line 380 of file main.cpp.
References doNothing(), folly::doNotOptimizeAway(), f, i, and folly::gen::move.
BENCHMARK | ( | std_function_move_large | , |
iters | |||
) |
Definition at line 389 of file main.cpp.
References a, folly::doNotOptimizeAway(), f, i, and folly::gen::move.
BENCHMARK | ( | Function_move_large | , |
iters | |||
) |
Definition at line 399 of file main.cpp.
References a, folly::doNotOptimizeAway(), f, i, and folly::gen::move.
BENCHMARK_DRAW_LINE | ( | ) |
Referenced by BENCHMARK().
DECLARE_int32 | ( | bm_max_iters | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |