|
|
|
|
|
|
|
|
|
|
|
#include <algorithm> |
|
#include <cfloat> |
|
#include <cmath> |
|
#include <functional> |
|
#include <memory> |
|
#include <numeric> |
|
#include <random> |
|
#include <vector> |
|
|
|
#include <cpuinfo.h> |
|
#include <pthreadpool.h> |
|
|
|
#include <benchmark/benchmark.h> |
|
|
|
#include "bench/utils.h" |
|
#include <xnnpack/aligned-allocator.h> |
|
#include <xnnpack/common.h> |
|
#include <xnnpack/math.h> |
|
#include <xnnpack/math-stubs.h> |
|
|
|
|
|
constexpr uint32_t kNumSubnormalValues = 8388608; |
|
|
|
struct ComputeErrorContext { |
|
const float* input; |
|
const float* output; |
|
float* error; |
|
uint32_t num_flush_to_zero_values; |
|
}; |
|
|
|
static void ComputeError( |
|
struct ComputeErrorContext* context, |
|
size_t start, |
|
size_t range) |
|
{ |
|
const float* input = context->input; |
|
const float* output = context->output; |
|
float* error = context->error; |
|
for (size_t i = start; i < start + range; i++) { |
|
float input_val = input[i]; |
|
float output_val = output[i]; |
|
#if XNN_ARCH_ARM || XNN_ARCH_ARM64 || XNN_ARCH_X86 || XNN_ARCH_X86_64 |
|
const uint32_t num_flush_to_zero_values = context->num_flush_to_zero_values; |
|
const uint32_t abs_input_val = float_as_uint32(input_val) & UINT32_C(0x7FFFFFFF); |
|
if (abs_input_val < std::min<uint32_t>(num_flush_to_zero_values, kNumSubnormalValues)) { |
|
|
|
input_val = std::copysign(0.0f, input_val); |
|
} else if (abs_input_val < num_flush_to_zero_values) { |
|
|
|
|
|
if (std::abs(output_val) == 0.0f) { |
|
output_val = input_val; |
|
} |
|
} |
|
#endif |
|
|
|
const double output_ref = std::tanh(double(input_val)); |
|
const double abs_error = std::abs(output_ref - double(output_val)); |
|
const float output_abs = std::abs(output_ref); |
|
const float output_ulp = uint32_as_float(float_as_uint32(output_abs) + 1) - output_abs; |
|
error[i] = float(abs_error / output_ulp); |
|
} |
|
} |
|
|
|
static void TanhError( |
|
benchmark::State& state, |
|
xnn_f32_unary_math_fn tanh, |
|
uint32_t num_flush_to_zero_values, |
|
benchmark::utils::IsaCheckFunction isa_check = nullptr) |
|
{ |
|
if (!cpuinfo_initialize()) { |
|
state.SkipWithError("failed cpuinfo init"); |
|
return; |
|
} |
|
if (isa_check != nullptr && !isa_check(state)) { |
|
return; |
|
} |
|
|
|
|
|
const uint32_t min_input = 0xC1102CB3; |
|
|
|
const uint32_t max_input = 0x41102CB3; |
|
|
|
|
|
const size_t block_size = 1048576; |
|
|
|
const size_t tile_size = 1024; |
|
|
|
uint32_t num_threads = cpuinfo_get_processors_count(); |
|
#if XNN_ARCH_ARM || XNN_ARCH_ARM64 |
|
|
|
if (cpuinfo_get_clusters_count() > 1) { |
|
num_threads -= cpuinfo_get_cluster(cpuinfo_get_clusters_count() - 1)->core_count; |
|
} |
|
#endif |
|
|
|
std::unique_ptr<pthreadpool, decltype(&pthreadpool_destroy)> threadpool( |
|
pthreadpool_create(num_threads), pthreadpool_destroy); |
|
|
|
std::vector<float, AlignedAllocator<float, 64>> x(block_size); |
|
std::vector<float, AlignedAllocator<float, 64>> y(block_size); |
|
std::vector<float> ulp_error(block_size); |
|
float max_ulp_error = 0.0f; |
|
|
|
ComputeErrorContext context; |
|
context.input = x.data(); |
|
context.output = y.data(); |
|
context.error = ulp_error.data(); |
|
context.num_flush_to_zero_values = num_flush_to_zero_values; |
|
for (auto _ : state) { |
|
for (uint32_t n = min_input; int32_t(n) < 0; n -= block_size) { |
|
for (uint32_t i = 0; i < block_size; i++) { |
|
x[i] = uint32_as_float(std::max<uint32_t>(n - i, UINT32_C(0x80000000))); |
|
} |
|
std::fill(y.begin(), y.end(), std::nanf("")); |
|
|
|
pthreadpool_parallelize_1d_tile_1d( |
|
nullptr, |
|
[&](size_t offset, size_t size) { |
|
tanh(size * sizeof(float), x.data() + offset, y.data() + offset); |
|
}, |
|
block_size, tile_size, PTHREADPOOL_FLAG_DISABLE_DENORMALS); |
|
|
|
pthreadpool_parallelize_1d_tile_1d( |
|
threadpool.get(), |
|
reinterpret_cast<pthreadpool_task_1d_tile_1d_t>(ComputeError), |
|
static_cast<void*>(&context), |
|
block_size, tile_size, 0); |
|
|
|
max_ulp_error = std::accumulate(ulp_error.cbegin(), ulp_error.cend(), max_ulp_error, |
|
static_cast<const float& (*)(const float&, const float&)>(std::max<float>)); |
|
} |
|
for (uint32_t n = 0; n < max_input; n += block_size) { |
|
for (uint32_t i = 0; i < block_size; i++) { |
|
x[i] = uint32_as_float(std::min<uint32_t>(n + i, max_input)); |
|
} |
|
std::fill(y.begin(), y.end(), std::nanf("")); |
|
|
|
pthreadpool_parallelize_1d_tile_1d( |
|
nullptr, |
|
[&](size_t offset, size_t size) { |
|
tanh(size * sizeof(float), x.data() + offset, y.data() + offset); |
|
}, |
|
block_size, tile_size, PTHREADPOOL_FLAG_DISABLE_DENORMALS); |
|
|
|
pthreadpool_parallelize_1d_tile_1d( |
|
threadpool.get(), |
|
reinterpret_cast<pthreadpool_task_1d_tile_1d_t>(ComputeError), |
|
static_cast<void*>(&context), |
|
block_size, tile_size, 0); |
|
|
|
max_ulp_error = std::accumulate(ulp_error.cbegin(), ulp_error.cend(), max_ulp_error, |
|
static_cast<const float& (*)(const float&, const float&)>(std::max<float>)); |
|
} |
|
} |
|
|
|
state.counters["ULPERROR"] = benchmark::Counter(max_ulp_error); |
|
} |
|
|
|
#if XNN_ARCH_ARM64 |
|
BENCHMARK_CAPTURE(TanhError, aarch64_neonfma_expm1minus_rr1_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__aarch64_neonfma_expm1minus_rr1_lut8_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, aarch64_neonfma_expm1minus_rr1_p6h5ts_div, |
|
xnn_math_f32_tanh__aarch64_neonfma_expm1minus_rr1_p6h5ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
#endif |
|
|
|
#if XNN_ARCH_ARM || XNN_ARCH_ARM64 |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_lut8_p4h2ts_nr1recps1fma, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_lut8_p4h2ts_nr1recps1fma, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_lut8_p4h2ts_nr2fma, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_lut8_p4h2ts_nr2fma, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_lut8_p4h2ts_nr2recps, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_lut8_p4h2ts_nr2recps, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_lut8_p4h3ps_nr1recps1fma, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_lut8_p4h3ps_nr1recps1fma, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_lut8_p4h3ps_nr1recps1fmaadj, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_lut8_p4h3ps_nr1recps1fmaadj, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_lut8_p4h3ps_nr2fma, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_lut8_p4h3ps_nr2fma, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_lut8_p4h3ps_nr2fmaadj, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_lut8_p4h3ps_nr2fmaadj, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_lut8_p4h3ps_nr2recps, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_lut8_p4h3ps_nr2recps, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_lut8_p4h3ps_nr2recpsadj, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_lut8_p4h3ps_nr2recpsadj, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_p6h5ts_nr1recps1fma, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_p6h5ts_nr1recps1fma, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_p6h5ts_nr1recps1fmaadj, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_p6h5ts_nr1recps1fmaadj, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_p6h5ts_nr2fma, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_p6h5ts_nr2fma, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_p6h5ts_nr2fmaadj, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_p6h5ts_nr2fmaadj, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_p6h5ts_nr2recps, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_p6h5ts_nr2recps, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neonfma_expm1minus_rr1_p6h5ts_nr2recpsadj, |
|
xnn_math_f32_tanh__neonfma_expm1minus_rr1_p6h5ts_nr2recpsadj, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEONFMA) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
|
|
BENCHMARK_CAPTURE(TanhError, neon_expm1minus_rr2_lut8_p4h2ts_nr2recps, |
|
xnn_math_f32_tanh__neon_expm1minus_rr2_lut8_p4h2ts_nr2recps, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEON) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neon_expm1minus_rr2_lut8_p4h3ps_nr2recps, |
|
xnn_math_f32_tanh__neon_expm1minus_rr2_lut8_p4h3ps_nr2recps, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEON) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, neon_expm1minus_rr1_p6h5ts_nr2recps, |
|
xnn_math_f32_tanh__neon_expm1minus_rr1_p6h5ts_nr2recps, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckNEON) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
#endif |
|
|
|
#if XNN_ARCH_X86 || XNN_ARCH_X86_64 |
|
BENCHMARK_CAPTURE(TanhError, avx512skx_expm1minus_rr1_lut4_p4h3ts_perm_div, |
|
xnn_math_f32_tanh__avx512skx_expm1minus_rr1_lut4_p4h3ts_perm_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX512SKX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx512skx_expm1minus_rr1_lut4_p4h3ts_perm_nr1adj, |
|
xnn_math_f32_tanh__avx512skx_expm1minus_rr1_lut4_p4h3ts_perm_nr1adj, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX512SKX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx512skx_expm1minus_rr1_lut8_p4h3ps_perm_div, |
|
xnn_math_f32_tanh__avx512skx_expm1minus_rr1_lut8_p4h3ps_perm_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX512SKX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx512skx_expm1minus_rr1_lut8_p4h3ps_perm_nr1, |
|
xnn_math_f32_tanh__avx512skx_expm1minus_rr1_lut8_p4h3ps_perm_nr1, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX512SKX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx512skx_expm1minus_rr1_lut8_p4h3ps_perm_nr1adj, |
|
xnn_math_f32_tanh__avx512skx_expm1minus_rr1_lut8_p4h3ps_perm_nr1adj, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX512SKX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx512skx_expm1minus_rr1_lut8_p4h3ps_gather_div, |
|
xnn_math_f32_tanh__avx512skx_expm1minus_rr1_lut8_p4h3ps_gather_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX512SKX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx512skx_expm1minus_rr1_lut8_p4h3ps_gather_nr1, |
|
xnn_math_f32_tanh__avx512skx_expm1minus_rr1_lut8_p4h3ps_gather_nr1, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX512SKX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx512skx_expm1minus_rr1_lut8_p4h3ps_gather_nr1adj, |
|
xnn_math_f32_tanh__avx512skx_expm1minus_rr1_lut8_p4h3ps_gather_nr1adj, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX512SKX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx512skx_expm1minus_rr1_p6h5ts_div, |
|
xnn_math_f32_tanh__avx512skx_expm1minus_rr1_p6h5ts_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX512SKX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx512skx_expm1minus_rr1_p6h5ts_nr1, |
|
xnn_math_f32_tanh__avx512skx_expm1minus_rr1_p6h5ts_nr1, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX512SKX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx512skx_expm1minus_rr1_p6h5ts_nr1adj, |
|
xnn_math_f32_tanh__avx512skx_expm1minus_rr1_p6h5ts_nr1adj, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX512SKX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
|
|
BENCHMARK_CAPTURE(TanhError, avx2_expm1minus_rr1_lut4_p4h3ts_perm_div, |
|
xnn_math_f32_tanh__avx2_expm1minus_rr1_lut4_p4h3ts_perm_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX2) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx2_expm1minus_rr1_lut4_p4h3ts_perm_nr1adj, |
|
xnn_math_f32_tanh__avx2_expm1minus_rr1_lut4_p4h3ts_perm_nr1adj, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckAVX2) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx2_expm1minus_rr1_lut8_p4h3ps_perm_div, |
|
xnn_math_f32_tanh__avx2_expm1minus_rr1_lut8_p4h3ps_perm_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX2) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx2_expm1minus_rr1_lut8_p4h3ps_perm_nr1, |
|
xnn_math_f32_tanh__avx2_expm1minus_rr1_lut8_p4h3ps_perm_nr1, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckAVX2) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx2_expm1minus_rr1_lut8_p4h3ps_perm_nr1adj, |
|
xnn_math_f32_tanh__avx2_expm1minus_rr1_lut8_p4h3ps_perm_nr1adj, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckAVX2) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx2_expm1minus_rr1_lut8_p4h3ps_gather_div, |
|
xnn_math_f32_tanh__avx2_expm1minus_rr1_lut8_p4h3ps_gather_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX2) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx2_expm1minus_rr1_lut8_p4h3ps_gather_nr1, |
|
xnn_math_f32_tanh__avx2_expm1minus_rr1_lut8_p4h3ps_gather_nr1, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckAVX2) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx2_expm1minus_rr1_lut8_p4h3ps_gather_nr1adj, |
|
xnn_math_f32_tanh__avx2_expm1minus_rr1_lut8_p4h3ps_gather_nr1adj, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckAVX2) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx2_expm1minus_rr1_p6h5ts_div, |
|
xnn_math_f32_tanh__avx2_expm1minus_rr1_p6h5ts_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX2) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx2_expm1minus_rr1_p6h5ts_nr1, |
|
xnn_math_f32_tanh__avx2_expm1minus_rr1_p6h5ts_nr1, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckAVX2) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx2_expm1minus_rr1_p6h5ts_nr1adj, |
|
xnn_math_f32_tanh__avx2_expm1minus_rr1_p6h5ts_nr1adj, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckAVX2) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
|
|
BENCHMARK_CAPTURE(TanhError, fma3_expm1minus_rr1_lut4_p4h3ts_perm_div, |
|
xnn_math_f32_tanh__fma3_expm1minus_rr1_lut4_p4h3ts_perm_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckFMA3) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma3_expm1minus_rr1_lut4_p4h3ts_perm_nr1adj, |
|
xnn_math_f32_tanh__fma3_expm1minus_rr1_lut4_p4h3ts_perm_nr1adj, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckFMA3) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma3_expm1minus_rr1_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__fma3_expm1minus_rr1_lut8_p4h3ps_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckFMA3) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma3_expm1minus_rr1_lut8_p4h3ps_nr1, |
|
xnn_math_f32_tanh__fma3_expm1minus_rr1_lut8_p4h3ps_nr1, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckFMA3) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma3_expm1minus_rr1_lut8_p4h3ps_nr1adj, |
|
xnn_math_f32_tanh__fma3_expm1minus_rr1_lut8_p4h3ps_nr1adj, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckFMA3) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma3_expm1minus_rr1_p6h5ts_div, |
|
xnn_math_f32_tanh__fma3_expm1minus_rr1_p6h5ts_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckFMA3) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma3_expm1minus_rr1_p6h5ts_nr1, |
|
xnn_math_f32_tanh__fma3_expm1minus_rr1_p6h5ts_nr1, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckFMA3) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma3_expm1minus_rr1_p6h5ts_nr1adj, |
|
xnn_math_f32_tanh__fma3_expm1minus_rr1_p6h5ts_nr1adj, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckFMA3) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
|
|
BENCHMARK_CAPTURE(TanhError, avx_expm1minus_rr1_lut4_p4h2ts_perm_div, |
|
xnn_math_f32_tanh__avx_expm1minus_rr1_lut4_p4h2ts_perm_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx_expm1minus_rr2_lut8_p4h2ts_nr1, |
|
xnn_math_f32_tanh__avx_expm1minus_rr2_lut8_p4h2ts_nr1, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx_expm1minus_rr2_lut8_p4h2ts_nr2, |
|
xnn_math_f32_tanh__avx_expm1minus_rr2_lut8_p4h2ts_nr2, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx_expm1minus_rr1_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__avx_expm1minus_rr1_lut8_p4h3ps_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx_expm1minus_rr2_lut8_p4h3ps_nr1, |
|
xnn_math_f32_tanh__avx_expm1minus_rr2_lut8_p4h3ps_nr1, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx_expm1minus_rr2_lut8_p4h3ps_nr2, |
|
xnn_math_f32_tanh__avx_expm1minus_rr2_lut8_p4h3ps_nr2, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx_expm1minus_rr2_lut8_p4h3ts_nr1, |
|
xnn_math_f32_tanh__avx_expm1minus_rr2_lut8_p4h3ts_nr1, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx_expm1minus_rr2_lut8_p4h3ts_nr2, |
|
xnn_math_f32_tanh__avx_expm1minus_rr2_lut8_p4h3ts_nr2, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx_expm1minus_rr1_p6h5ts_div, |
|
xnn_math_f32_tanh__avx_expm1minus_rr1_p6h5ts_div, |
|
kNumSubnormalValues, |
|
benchmark::utils::CheckAVX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx_expm1minus_rr1_p6h5ts_nr1, |
|
xnn_math_f32_tanh__avx_expm1minus_rr1_p6h5ts_nr1, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckAVX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, avx_expm1minus_rr1_p6h5ts_nr2, |
|
xnn_math_f32_tanh__avx_expm1minus_rr1_p6h5ts_nr2, |
|
kNumSubnormalValues + 1, |
|
benchmark::utils::CheckAVX) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
|
|
BENCHMARK_CAPTURE(TanhError, sse2_expm1minus_rr2_lut8_p4h2ts_nr1, |
|
xnn_math_f32_tanh__sse2_expm1minus_rr2_lut8_p4h2ts_nr1, |
|
kNumSubnormalValues + 1) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, sse2_expm1minus_rr2_lut8_p4h2ts_nr2, |
|
xnn_math_f32_tanh__sse2_expm1minus_rr2_lut8_p4h2ts_nr2, |
|
kNumSubnormalValues + 1) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, sse2_expm1minus_rr1_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__sse2_expm1minus_rr1_lut8_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, sse2_expm1minus_rr2_lut8_p4h3ps_nr1, |
|
xnn_math_f32_tanh__sse2_expm1minus_rr2_lut8_p4h3ps_nr1, |
|
kNumSubnormalValues + 1) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, sse2_expm1minus_rr2_lut8_p4h3ps_nr2, |
|
xnn_math_f32_tanh__sse2_expm1minus_rr2_lut8_p4h3ps_nr2, |
|
kNumSubnormalValues + 1) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, sse2_expm1minus_rr2_lut8_p4h3ts_nr1, |
|
xnn_math_f32_tanh__sse2_expm1minus_rr2_lut8_p4h3ts_nr1, |
|
kNumSubnormalValues + 1) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, sse2_expm1minus_rr2_lut8_p4h3ts_nr2, |
|
xnn_math_f32_tanh__sse2_expm1minus_rr2_lut8_p4h3ts_nr2, |
|
kNumSubnormalValues + 1) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
|
|
BENCHMARK_CAPTURE(TanhError, sse2_expm1minus_rr1_p6h5ts_div, |
|
xnn_math_f32_tanh__sse2_expm1minus_rr1_p6h5ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, sse2_expm1minus_rr1_p6h5ts_nr1, |
|
xnn_math_f32_tanh__sse2_expm1minus_rr1_p6h5ts_nr1, |
|
kNumSubnormalValues + 1) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, sse2_expm1minus_rr1_p6h5ts_nr2, |
|
xnn_math_f32_tanh__sse2_expm1minus_rr1_p6h5ts_nr2, |
|
kNumSubnormalValues + 1) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
#endif |
|
|
|
#if XNN_ARCH_WASMSIMD || XNN_ARCH_WASMRELAXEDSIMD |
|
BENCHMARK_CAPTURE(TanhError, wasmsimd_expm1minus_rr1_lut8_p4h3ps_div_abs_min, |
|
xnn_math_f32_tanh__wasmsimd_expm1minus_rr1_lut8_p4h3ps_div_abs_min, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, wasmsimd_expm1minus_rr1_lut8_p4h3ps_div_abs_pmin, |
|
xnn_math_f32_tanh__wasmsimd_expm1minus_rr1_lut8_p4h3ps_div_abs_pmin, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, wasmsimd_expm1minus_rr1_lut8_p4h3ps_div_nabs_max, |
|
xnn_math_f32_tanh__wasmsimd_expm1minus_rr1_lut8_p4h3ps_div_nabs_max, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, wasmsimd_expm1minus_rr1_lut8_p4h3ps_div_nabs_pmax, |
|
xnn_math_f32_tanh__wasmsimd_expm1minus_rr1_lut8_p4h3ps_div_nabs_pmax, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
|
|
BENCHMARK_CAPTURE(TanhError, wasmsimd_expm1minus_rr1_p6h5ts_div_abs_min, |
|
xnn_math_f32_tanh__wasmsimd_expm1minus_rr1_p6h5ts_div_abs_min, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, wasmsimd_expm1minus_rr1_p6h5ts_div_abs_pmin, |
|
xnn_math_f32_tanh__wasmsimd_expm1minus_rr1_p6h5ts_div_abs_pmin, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, wasmsimd_expm1minus_rr1_p6h5ts_div_nabs_max, |
|
xnn_math_f32_tanh__wasmsimd_expm1minus_rr1_p6h5ts_div_nabs_max, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, wasmsimd_expm1minus_rr1_p6h5ts_div_nabs_pmax, |
|
xnn_math_f32_tanh__wasmsimd_expm1minus_rr1_p6h5ts_div_nabs_pmax, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
#endif |
|
|
|
#if XNN_ARCH_WASM || XNN_ARCH_WASMSIMD || XNN_ARCH_WASMRELAXEDSIMD |
|
BENCHMARK_CAPTURE(TanhError, wasm_expm1minus_rr1_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut8_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, wasm_expm1minus_rr1_p6h5ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_p6h5ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
#endif |
|
|
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut4_p4h2ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut4_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut4_p4h2ts_rcp, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut4_p4h2ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut4_p4h2ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut4_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut4_p4h3ps_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut4_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut4_p4h3ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut4_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut4_p4h3ps_rcp, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut4_p4h3ps_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut4_p4h3ts_rcp, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut4_p4h3ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut4_p4h3ps_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut4_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut4_p4h3ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut4_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut8_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut8_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut8_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut8_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut8_p4h2ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut8_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut8_p4h2ts_rcp, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut8_p4h2ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut8_p4h2ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut8_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut8_p4h2ts_rcp, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut8_p4h2ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut8_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut8_p4h3ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut8_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut8_p4h3ps_rcp, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut8_p4h3ps_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut8_p4h3ts_rcp, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut8_p4h3ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut8_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut8_p4h3ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut8_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut16_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut16_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut16_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut16_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut16_p4h2ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut16_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut16_p4h2ts_rcp, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut16_p4h2ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut16_p4h2ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut16_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut16_p4h3ps_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut16_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut16_p4h3ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut16_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut16_p4h3ps_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut16_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut16_p4h3ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut16_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut32_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut32_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut32_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut32_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_lut64_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_lut64_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_lut64_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_lut64_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_p6h4ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_p6h4ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_p6h4ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_p6h4ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_p6h5ps_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_p6h5ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_p6h5ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_p6h5ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_p6h5ps_rcp, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_p6h5ps_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr1_p6h5ts_rcp, |
|
xnn_math_f32_tanh__fma_expm1minus_rr1_p6h5ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_p6h5ps_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_p6h5ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1minus_rr2_p6h5ts_div, |
|
xnn_math_f32_tanh__fma_expm1minus_rr2_p6h5ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut4_p4h2ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut4_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut4_p4h2ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut4_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut4_p4h3ps_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut4_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut4_p4h3ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut4_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut4_p4h3ps_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut4_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut4_p4h3ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut4_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut8_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut8_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut8_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut8_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut8_p4h2ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut8_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut8_p4h2ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut8_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut8_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut8_p4h3ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut8_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut8_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut8_p4h3ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut8_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut16_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut16_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut16_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut16_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut16_p4h2ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut16_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut16_p4h2ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut16_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut16_p4h3ps_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut16_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut16_p4h3ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut16_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut16_p4h3ps_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut16_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut16_p4h3ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut16_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut32_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut32_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut32_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut32_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_lut64_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_lut64_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_lut64_p3h1ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_lut64_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_p6h4ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_p6h4ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_p6h4ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_p6h4ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_p6h5ps_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_p6h5ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr1_p6h5ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr1_p6h5ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_p6h5ps_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_p6h5ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, fma_expm1plus_rr2_p6h5ts_div, |
|
xnn_math_f32_tanh__fma_expm1plus_rr2_p6h5ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
|
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut4_p4h2ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut4_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut4_p4h2ts_rcp, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut4_p4h2ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut4_p4h2ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut4_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut4_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut4_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut4_p4h3ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut4_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut4_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut4_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut4_p4h3ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut4_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut8_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut8_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut8_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut8_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut8_p4h2ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut8_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut8_p4h2ts_rcp, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut8_p4h2ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut8_p4h2ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut8_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut8_p4h2ts_rcp, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut8_p4h2ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut8_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut8_p4h3ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut8_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut8_p4h3ps_rcp, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut8_p4h3ps_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut8_p4h3ts_rcp, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut8_p4h3ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut8_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut8_p4h3ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut8_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut8_p4h3ps_rcp, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut8_p4h3ps_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut8_p4h3ts_rcp, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut8_p4h3ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut16_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut16_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut16_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut16_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut16_p4h2ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut16_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut16_p4h2ts_rcp, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut16_p4h2ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut16_p4h2ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut16_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut16_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut16_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut16_p4h3ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut16_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut16_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut16_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut16_p4h3ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut16_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut32_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut32_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut32_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut32_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_lut64_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_lut64_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_lut64_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_lut64_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_p6h4ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_p6h4ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_p6h4ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_p6h4ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_p6h5ps_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_p6h5ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_p6h5ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_p6h5ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_p6h5ps_rcp, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_p6h5ps_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr1_p6h5ts_rcp, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr1_p6h5ts_rcp, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_p6h5ps_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_p6h5ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1minus_rr2_p6h5ts_div, |
|
xnn_math_f32_tanh__scalar_expm1minus_rr2_p6h5ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut4_p4h2ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut4_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut4_p4h2ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut4_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut4_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut4_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut4_p4h3ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut4_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut4_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut4_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut4_p4h3ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut4_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut8_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut8_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut8_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut8_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut8_p4h2ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut8_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut8_p4h2ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut8_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut8_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut8_p4h3ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut8_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut8_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut8_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut8_p4h3ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut8_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut16_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut16_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut16_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut16_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut16_p4h2ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut16_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut16_p4h2ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut16_p4h2ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut16_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut16_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut16_p4h3ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut16_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut16_p4h3ps_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut16_p4h3ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut16_p4h3ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut16_p4h3ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut32_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut32_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut32_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut32_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_lut64_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_lut64_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_lut64_p3h1ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_lut64_p3h1ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_p6h4ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_p6h4ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_p6h4ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_p6h4ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_p6h5ps_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_p6h5ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr1_p6h5ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr1_p6h5ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_p6h5ps_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_p6h5ps_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
BENCHMARK_CAPTURE(TanhError, scalar_expm1plus_rr2_p6h5ts_div, |
|
xnn_math_f32_tanh__scalar_expm1plus_rr2_p6h5ts_div, |
|
kNumSubnormalValues) |
|
->Unit(benchmark::kMillisecond) |
|
->Iterations(1); |
|
|
|
#ifndef XNNPACK_BENCHMARK_NO_MAIN |
|
BENCHMARK_MAIN(); |
|
#endif |
|
|