codex
Loading...
Searching...
No Matches
bench.hpp
Go to the documentation of this file.
1#ifndef CODEX_POPCOUNT_BENCH_H
2#define CODEX_POPCOUNT_BENCH_H
3
4#include <cstdint>
5#include <vector>
6
7#include <QTest>
8
9class PopcountBench : public QObject {
10 Q_OBJECT
11 static constexpr std::size_t N = 1 << 20;
12 std::vector<std::uint32_t> v = {};
13 std::vector<std::uint8_t> expected = {};
14private slots:
16 void bench_data();
17 void bench();
18};
19
20#endif
Definition bench.hpp:9
std::vector< std::uint8_t > expected
Definition bench.hpp:13
void bench_data()
void initTestCase()
std::vector< std::uint32_t > v
Definition bench.hpp:12
Definition main.cpp:7