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
7a74b748
Commit
7a74b748
authored
Apr 21, 2017
by
Dmitry Trifonov
Committed by
Eric
Apr 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for android NDK r10e (#375)
parent
09b93ccc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
complexity.cc
src/complexity.cc
+2
-2
complexity_test.cc
test/complexity_test.cc
+1
-1
No files found.
src/complexity.cc
View file @
7a74b748
...
...
@@ -35,9 +35,9 @@ BigOFunc* FittingCurve(BigO complexity) {
case
oNCubed
:
return
[](
int
n
)
->
double
{
return
std
::
pow
(
n
,
3
);
};
case
oLogN
:
return
[](
int
n
)
{
return
std
::
log2
(
n
);
};
return
[](
int
n
)
{
return
log2
(
n
);
};
case
oNLogN
:
return
[](
int
n
)
{
return
n
*
std
::
log2
(
n
);
};
return
[](
int
n
)
{
return
n
*
log2
(
n
);
};
case
o1
:
default
:
return
[](
int
)
{
return
1.0
;
};
...
...
test/complexity_test.cc
View file @
7a74b748
...
...
@@ -141,7 +141,7 @@ BENCHMARK(BM_Complexity_O_N_log_N)
BENCHMARK
(
BM_Complexity_O_N_log_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
([](
int
n
)
{
return
n
*
std
::
log2
(
n
);
});
->
Complexity
([](
int
n
)
{
return
n
*
log2
(
n
);
});
BENCHMARK
(
BM_Complexity_O_N_log_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
...
...
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