-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1259 from esiragusa/hotfix/test_demos
Fix demos/tests slowing CI builds
- Loading branch information
Showing
2 changed files
with
10 additions
and
18 deletions.
There are no files selected for viewing
22 changes: 7 additions & 15 deletions
22
demos/tutorial/sequences_in_depth/assignment_exact_generous_solution.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,26 @@ | ||
#include <iostream> | ||
#include <seqan/sequence.h> | ||
#include <seqan/stream.h> | ||
|
||
#include <time.h> | ||
|
||
using namespace seqan; | ||
|
||
int main() | ||
{ | ||
unsigned num = 1000000; | ||
time_t start; | ||
unsigned num = 100000; | ||
double start; | ||
|
||
String<Dna> str; | ||
clear(str); | ||
start = time(NULL); | ||
start = sysTime(); | ||
for (unsigned i = 0; i < num; ++i) | ||
{ | ||
|
||
appendValue(str, 'A', Exact()); | ||
} | ||
std::cout << "Strategy Exact() took: " << time(NULL) - start << " s\n\n"; | ||
std::cout << "Strategy Exact() took: " << sysTime() - start << " s\n\n"; | ||
|
||
clear(str); | ||
start = time(NULL); | ||
shrinkToFit(str); | ||
start = sysTime(); | ||
for (unsigned i = 0; i < num; ++i) | ||
{ | ||
|
||
appendValue(str, 'A', Generous()); | ||
} | ||
std::cout << "Strategy Generous() took: " << time(NULL) - start << " s\n\n"; | ||
std::cout << "Strategy Generous() took: " << sysTime() - start << " s\n\n"; | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters