Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
ffadb65d
Commit
ffadb65d
authored
Aug 21, 2019
by
Sayan Bhattacharjee
Committed by
Dominic Hamon
Aug 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation of basic use of DenseRange. (#855)
Documentation of basic use of `DenseRange` was added to README.md.
parent
3523f11d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
AUTHORS
AUTHORS
+1
-0
CONTRIBUTORS
CONTRIBUTORS
+1
-0
README.md
README.md
+16
-0
No files found.
AUTHORS
View file @
ffadb65d
...
@@ -44,6 +44,7 @@ Ori Livneh <ori.livneh@gmail.com>
...
@@ -44,6 +44,7 @@ Ori Livneh <ori.livneh@gmail.com>
Paul Redmond <paul.redmond@gmail.com>
Paul Redmond <paul.redmond@gmail.com>
Radoslav Yovchev <radoslav.tm@gmail.com>
Radoslav Yovchev <radoslav.tm@gmail.com>
Roman Lebedev <lebedev.ri@gmail.com>
Roman Lebedev <lebedev.ri@gmail.com>
Sayan Bhattacharjee <aero.sayan@gmail.com>
Shuo Chen <chenshuo@chenshuo.com>
Shuo Chen <chenshuo@chenshuo.com>
Steinar H. Gunderson <sgunderson@bigfoot.com>
Steinar H. Gunderson <sgunderson@bigfoot.com>
Stripe, Inc.
Stripe, Inc.
...
...
CONTRIBUTORS
View file @
ffadb65d
...
@@ -65,6 +65,7 @@ Raul Marin <rmrodriguez@cartodb.com>
...
@@ -65,6 +65,7 @@ Raul Marin <rmrodriguez@cartodb.com>
Ray Glover <ray.glover@uk.ibm.com>
Ray Glover <ray.glover@uk.ibm.com>
Robert Guo <robert.guo@mongodb.com>
Robert Guo <robert.guo@mongodb.com>
Roman Lebedev <lebedev.ri@gmail.com>
Roman Lebedev <lebedev.ri@gmail.com>
Sayan Bhattacharjee <aero.sayan@gmail.com>
Shuo Chen <chenshuo@chenshuo.com>
Shuo Chen <chenshuo@chenshuo.com>
Tobias Ulvgård <tobias.ulvgard@dirac.se>
Tobias Ulvgård <tobias.ulvgard@dirac.se>
Tom Madams <tom.ej.madams@gmail.com> <tmadams@google.com>
Tom Madams <tom.ej.madams@gmail.com> <tmadams@google.com>
...
...
README.md
View file @
ffadb65d
...
@@ -422,6 +422,22 @@ BENCHMARK(BM_memcpy)->RangeMultiplier(2)->Range(8, 8<<10);
...
@@ -422,6 +422,22 @@ BENCHMARK(BM_memcpy)->RangeMultiplier(2)->Range(8, 8<<10);
```
```
Now arguments generated are
[
8, 16, 32, 64, 128, 256, 512, 1024, 2k, 4k, 8k
]
.
Now arguments generated are
[
8, 16, 32, 64, 128, 256, 512, 1024, 2k, 4k, 8k
]
.
The preceding code shows a method of defining a sparse range. The following
example shows a method of defining a dense range. It is then used to benchmark
the performance of
`std::vector`
initialization for uniformly increasing sizes.
```
c++
static
void
BM_DenseRange
(
benchmark
::
State
&
state
)
{
for
(
auto
_
:
state
)
{
std
::
vector
<
int
>
v
(
state
.
range
(
0
),
state
.
range
(
0
));
benchmark
::
DoNotOptimize
(
v
.
data
());
benchmark
::
ClobberMemory
();
}
}
BENCHMARK
(
BM_DenseRange
)
->
DenseRange
(
0
,
1024
,
128
);
```
Now arguments generated are
[
0, 128, 256, 384, 512, 640, 768, 896, 1024
]
.
You might have a benchmark that depends on two or more inputs. For example, the
You might have a benchmark that depends on two or more inputs. For example, the
following code defines a family of benchmarks for measuring the speed of set
following code defines a family of benchmarks for measuring the speed of set
insertion.
insertion.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment