codex
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
x
y
z
Functions
a
b
c
d
e
f
g
i
l
m
o
p
r
s
t
w
x
z
Variables
_
a
b
c
f
g
l
m
n
r
s
t
v
y
Typedefs
Enumerations
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
h
i
j
m
n
o
p
r
s
t
u
v
Typedefs
Enumerations
Enumerator
b
c
e
k
m
n
p
q
r
s
w
Macros
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
v
w
x
y
z
▼
codex
►
Algorithms
arithmetic_folding
►
base64
bit_pattern
c_wrapper
event_dispatcher
►
lambda
packet_reader
►
reflection
time
►
Algorithms
arithmetic_folding
►
base64
bit_pattern
c_wrapper
►
cpp
event_dispatcher
►
lambda
packet_reader
codex
►
reflection
time
►
Namespaces
►
Concepts
►
Classes
▼
Files
▼
File List
►
algo
►
arithmetic_folding
►
base64
►
bench
►
bit_pattern
▼
bsearch
►
bench.cpp
►
bench.hpp
►
bsearch.hpp
►
test.cpp
►
test.hpp
►
c_wrapper
►
event_dispatcher
►
lambda
►
list
►
packet_reader
►
popcount
►
reflection
►
sort
►
test
►
tex
►
time
►
timer
►
tmp
►
yaml
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Concepts
Loading...
Searching...
No Matches
bench.hpp
Go to the documentation of this file.
1
#ifndef CODEX_BSEARCH_BENCH_H
2
#define CODEX_BSEARCH_BENCH_H
3
4
#include <bitset>
5
#include <vector>
6
7
#include <QTest>
8
9
class
BSearchBench
:
public
QObject {
10
Q_OBJECT
11
static
constexpr
std::size_t
N
= 1 << 20;
12
std::vector<int>
v
= {};
13
std::bitset<N * 8>
expected
= {};
14
private
slots:
15
void
initTestCase
();
16
void
bench_data
();
17
void
bench
();
18
};
9
class
BSearchBench
:
public
QObject {
…
};
19
20
#endif
BSearchBench
Definition
bench.hpp:9
BSearchBench::initTestCase
void initTestCase()
Definition
bench.cpp:20
BSearchBench::bench
void bench()
Definition
bench.cpp:43
BSearchBench::expected
std::bitset< N *8 > expected
Definition
bench.hpp:13
BSearchBench::bench_data
void bench_data()
Definition
bench.cpp:33
BSearchBench::v
std::vector< int > v
Definition
bench.hpp:12
N
Definition
main.cpp:7
bsearch
bench.hpp
Generated by
1.11.0