benchmark icon indicating copy to clipboard operation
benchmark copied to clipboard

How to post my issue to https://groups.google.com/d/forum/benchmark-discuss

Open chengm349 opened this issue 8 months ago • 6 comments

I joined the group but I can't post my question there. Please guide.

I have a class MyClass and I want to measure its ctor performance like this:

static void BM_decimal_ctor_dbl(benchmark::State& state) { for (auto _ : state) { const MyClass d{123.67}; benchmark::DoNotOptimize(d); } }

2024-06-07T13:50:06+08:00 Running ./AS7_DEC/decimalBM Run on (12 X 2194.84 MHz CPU s) CPU Caches: L1 Data 48 KiB (x12) L1 Instruction 32 KiB (x12) L2 Unified 1280 KiB (x12) L3 Unified 49152 KiB (x2) Load Average: 0.10, 0.17, 0.18

Benchmark Time CPU Iterations

BM_decimal_ctor_dbl 0.364 ns 0.364 ns 1937088812

I doubted my class performance too good. Is my benchmark code correct?

chengm349 avatar Jun 07 '24 06:06 chengm349