Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Algorithms Library Toolkit Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Slávik
Algorithms Library Toolkit Core
Commits
70cbda0d
Commit
70cbda0d
authored
6 years ago
by
Jan Trávníček
Browse files
Options
Downloads
Patches
Plain Diff
improvements in atest
parent
962917d4
No related branches found
Tags
DP-travnja3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
atests2/src/atests.cpp
+8
-8
8 additions, 8 deletions
atests2/src/atests.cpp
with
8 additions
and
8 deletions
atests2/src/atests.cpp
+
8
−
8
View file @
70cbda0d
...
...
@@ -61,8 +61,8 @@
//#define SUBTREE_NAIVE
//#define NAIVE
//#define NONLINEAR_NAIVE
#define TREE_PATTERN_PDA
//
#define NONLINEAR_TREE_PATTERN_PDA
//
#define TREE_PATTERN_PDA
#define NONLINEAR_TREE_PATTERN_PDA
//#define TREE_PATTERN_MATCHING_PDA
//#define FULL_AND_LINEAR_POSITION_HEAP
//#define NONLINEAR_FULL_AND_LINEAR_POSITION_HEAP
...
...
@@ -374,19 +374,19 @@ auto preprocessSubject ( Subject subject ) {
}
template
<
class
Subject
>
void
testPreprocess
(
Subject
subject
)
{
void
testPreprocess
(
const
Subject
&
subject
)
{
measurements
::
start
(
"Setup"
,
measurements
::
Type
::
MAIN
);
measurements
::
start
(
"First"
,
measurements
::
Type
::
MAIN
);
auto
res
=
preprocessSubject
(
subject
);
preprocessSubject
(
subject
);
measurements
::
end
();
for
(
unsigned
i
=
0
;
i
<
REPEATS
-
1
;
++
i
)
{
measurements
::
start
(
"Other"
,
measurements
::
Type
::
MAIN
);
auto
tmp
=
preprocessSubject
(
subject
);
preprocessSubject
(
subject
);
measurements
::
end
();
}
...
...
@@ -585,13 +585,13 @@ int main(int argc, char** argv) {
// unsigned i = 0; {
for
(
unsigned
i
=
0
;
i
<
subjects
.
size
(
);
++
i
)
{
testPreprocess
(
subjects
[
i
]
);
auto
index
=
preprocessSubject
(
std
::
move
(
subjects
[
i
]
)
);
//
auto index = preprocessSubject ( std::move ( subjects [ i ] ) );
// unsigned j = 0; {
for
(
unsigned
j
=
0
;
j
<
matchers
.
size
(
);
++
j
)
{
/*
for
(
unsigned
j
=
0
;
j
<
matchers
.
size
(
);
++
j
)
{
ext
::
set
<
unsigned
>
results
=
match
(
index
,
matchers
[
j
]
);
std
::
clog
<<
"Subject "
<<
i
<<
", pattern "
<<
j
<<
" finished, results "
<<
results
<<
std
::
endl
;
}
}
*/
}
measurements
::
end
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment