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
e246699f
Commit
e246699f
authored
May 25, 2016
by
Ismael
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added auto as default value for complexity
parent
84bc4d70
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
benchmark_api.h
include/benchmark/benchmark_api.h
+1
-1
complexity_test.cc
test/complexity_test.cc
+1
-1
No files found.
include/benchmark/benchmark_api.h
View file @
e246699f
...
@@ -501,7 +501,7 @@ public:
...
@@ -501,7 +501,7 @@ public:
// Set the asymptotic computational complexity for the benchmark. If called
// Set the asymptotic computational complexity for the benchmark. If called
// the asymptotic computational complexity will be shown on the output.
// the asymptotic computational complexity will be shown on the output.
Benchmark
*
Complexity
(
BigO
complexity
);
Benchmark
*
Complexity
(
BigO
complexity
=
benchmark
::
oAuto
);
// Support for running multiple copies of the same benchmark concurrently
// Support for running multiple copies of the same benchmark concurrently
// in multiple threads. This may be useful when measuring the scaling
// in multiple threads. This may be useful when measuring the scaling
...
...
test/complexity_test.cc
View file @
e246699f
...
@@ -40,7 +40,7 @@ static void BM_Complexity_O_N(benchmark::State& state) {
...
@@ -40,7 +40,7 @@ static void BM_Complexity_O_N(benchmark::State& state) {
state
.
SetComplexityN
(
state
.
range_x
());
state
.
SetComplexityN
(
state
.
range_x
());
}
}
BENCHMARK
(
BM_Complexity_O_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
(
benchmark
::
oN
);
BENCHMARK
(
BM_Complexity_O_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
(
benchmark
::
oN
);
BENCHMARK
(
BM_Complexity_O_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
(
benchmark
::
oAuto
);
BENCHMARK
(
BM_Complexity_O_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
();
static
void
BM_Complexity_O_N_Squared
(
benchmark
::
State
&
state
)
{
static
void
BM_Complexity_O_N_Squared
(
benchmark
::
State
&
state
)
{
std
::
string
s1
(
state
.
range_x
(),
'-'
);
std
::
string
s1
(
state
.
range_x
(),
'-'
);
...
...
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