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
8ba94b4c
Commit
8ba94b4c
authored
Jun 02, 2016
by
Ismael
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed global string to const char *
parent
1a633969
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
complexity_test.cc
test/complexity_test.cc
+12
-12
No files found.
test/complexity_test.cc
View file @
8ba94b4c
...
@@ -157,10 +157,10 @@ BENCHMARK(BM_Complexity_O1) -> Range(1, 1<<18) -> Complexity(benchmark::o1);
...
@@ -157,10 +157,10 @@ BENCHMARK(BM_Complexity_O1) -> Range(1, 1<<18) -> Complexity(benchmark::o1);
BENCHMARK
(
BM_Complexity_O1
)
->
Range
(
1
,
1
<<
18
)
->
Complexity
([](
int
){
return
1.0
;
});
BENCHMARK
(
BM_Complexity_O1
)
->
Range
(
1
,
1
<<
18
)
->
Complexity
([](
int
){
return
1.0
;
});
BENCHMARK
(
BM_Complexity_O1
)
->
Range
(
1
,
1
<<
18
)
->
Complexity
();
BENCHMARK
(
BM_Complexity_O1
)
->
Range
(
1
,
1
<<
18
)
->
Complexity
();
std
::
string
big_o_1_test_name
=
"BM_Complexity_O1_BigO"
;
const
char
*
big_o_1_test_name
=
"BM_Complexity_O1_BigO"
;
std
::
string
rms_o_1_test_name
=
"BM_Complexity_O1_RMS"
;
const
char
*
rms_o_1_test_name
=
"BM_Complexity_O1_RMS"
;
std
::
string
enum_auto_big_o_1
=
"
\\
([0-9]+
\\
)"
;
const
char
*
enum_auto_big_o_1
=
"
\\
([0-9]+
\\
)"
;
std
::
string
lambda_big_o_1
=
"f
\\
(N
\\
)"
;
const
char
*
lambda_big_o_1
=
"f
\\
(N
\\
)"
;
// Add enum tests
// Add enum tests
ADD_COMPLEXITY_CASES
(
&
ConsoleOutputTests
,
&
JSONOutputTests
,
&
CSVOutputTests
,
ADD_COMPLEXITY_CASES
(
&
ConsoleOutputTests
,
&
JSONOutputTests
,
&
CSVOutputTests
,
...
@@ -195,10 +195,10 @@ BENCHMARK(BM_Complexity_O_N) -> RangeMultiplier(2) -> Range(1<<10, 1<<16) -> Com
...
@@ -195,10 +195,10 @@ BENCHMARK(BM_Complexity_O_N) -> RangeMultiplier(2) -> Range(1<<10, 1<<16) -> Com
BENCHMARK
(
BM_Complexity_O_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
([](
int
n
)
->
double
{
return
n
;
});
BENCHMARK
(
BM_Complexity_O_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
([](
int
n
)
->
double
{
return
n
;
});
BENCHMARK
(
BM_Complexity_O_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
();
BENCHMARK
(
BM_Complexity_O_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
();
std
::
string
big_o_n_test_name
=
"BM_Complexity_O_N_BigO"
;
const
char
*
big_o_n_test_name
=
"BM_Complexity_O_N_BigO"
;
std
::
string
rms_o_n_test_name
=
"BM_Complexity_O_N_RMS"
;
const
char
*
rms_o_n_test_name
=
"BM_Complexity_O_N_RMS"
;
std
::
string
enum_auto_big_o_n
=
"N"
;
const
char
*
enum_auto_big_o_n
=
"N"
;
std
::
string
lambda_big_o_n
=
"f
\\
(N
\\
)"
;
const
char
*
lambda_big_o_n
=
"f
\\
(N
\\
)"
;
// Add enum tests
// Add enum tests
ADD_COMPLEXITY_CASES
(
&
ConsoleOutputTests
,
&
JSONOutputTests
,
&
CSVOutputTests
,
ADD_COMPLEXITY_CASES
(
&
ConsoleOutputTests
,
&
JSONOutputTests
,
&
CSVOutputTests
,
...
@@ -223,10 +223,10 @@ BENCHMARK(BM_Complexity_O_N_log_N) -> RangeMultiplier(2) -> Range(1<<10, 1<<16)
...
@@ -223,10 +223,10 @@ BENCHMARK(BM_Complexity_O_N_log_N) -> RangeMultiplier(2) -> Range(1<<10, 1<<16)
BENCHMARK
(
BM_Complexity_O_N_log_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
([](
int
n
)
{
return
n
*
log2
(
n
);
});
BENCHMARK
(
BM_Complexity_O_N_log_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
([](
int
n
)
{
return
n
*
log2
(
n
);
});
BENCHMARK
(
BM_Complexity_O_N_log_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
();
BENCHMARK
(
BM_Complexity_O_N_log_N
)
->
RangeMultiplier
(
2
)
->
Range
(
1
<<
10
,
1
<<
16
)
->
Complexity
();
std
::
string
big_o_n_lg_n_test_name
=
"BM_Complexity_O_N_log_N_BigO"
;
const
char
*
big_o_n_lg_n_test_name
=
"BM_Complexity_O_N_log_N_BigO"
;
std
::
string
rms_o_n_lg_n_test_name
=
"BM_Complexity_O_N_log_N_RMS"
;
const
char
*
rms_o_n_lg_n_test_name
=
"BM_Complexity_O_N_log_N_RMS"
;
std
::
string
enum_auto_big_o_n_lg_n
=
"NlgN"
;
const
char
*
enum_auto_big_o_n_lg_n
=
"NlgN"
;
std
::
string
lambda_big_o_n_lg_n
=
"f
\\
(N
\\
)"
;
const
char
*
lambda_big_o_n_lg_n
=
"f
\\
(N
\\
)"
;
// Add enum tests
// Add enum tests
ADD_COMPLEXITY_CASES
(
&
ConsoleOutputTests
,
&
JSONOutputTests
,
&
CSVOutputTests
,
ADD_COMPLEXITY_CASES
(
&
ConsoleOutputTests
,
&
JSONOutputTests
,
&
CSVOutputTests
,
...
...
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