blob: 6fb1fda9c942e6e522fdc449334a99bc9237dede (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include "f.h"
#include <library/cpp/testing/benchmark/bench.h>
#define DEFINE_BENCHMARK(N) \
Y_CPU_BENCHMARK(Yvector_##N, iface) { \
CreateYvector(N, iface.Iterations()); \
} \
Y_CPU_BENCHMARK(Carray_##N, iface) { \
CreateCarray(N, iface.Iterations()); \
}
DEFINE_BENCHMARK(1)
DEFINE_BENCHMARK(2)
DEFINE_BENCHMARK(8)
DEFINE_BENCHMARK(10)
DEFINE_BENCHMARK(16)
DEFINE_BENCHMARK(20)
DEFINE_BENCHMARK(1000)
DEFINE_BENCHMARK(1024)
DEFINE_BENCHMARK(8192)
DEFINE_BENCHMARK(10000)
DEFINE_BENCHMARK(65536)
DEFINE_BENCHMARK(100000)
DEFINE_BENCHMARK(4194304)
DEFINE_BENCHMARK(1000000)
DEFINE_BENCHMARK(33554432)
DEFINE_BENCHMARK(10000000)
DEFINE_BENCHMARK(268435456)
DEFINE_BENCHMARK(100000000)
|