Skip to content

Commit

Permalink
Merge pull request #1259 from esiragusa/hotfix/test_demos
Browse files Browse the repository at this point in the history
Fix demos/tests slowing CI builds
  • Loading branch information
esiragusa committed Oct 27, 2015
2 parents f2a4e21 + 910e6c5 commit 8ccdb21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
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;
}
6 changes: 3 additions & 3 deletions tests/parallel/test_parallel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ SEQAN_BEGIN_TESTSUITE(test_parallel) {
SEQAN_CALL_TEST(test_parallel_queue_spmc_fixedsize);
SEQAN_CALL_TEST(test_parallel_queue_spmc_dynamicsize);
SEQAN_CALL_TEST(test_parallel_queue_mpsc_fixedsize);
SEQAN_CALL_TEST(test_parallel_queue_mpsc_dynamicsize);
SEQAN_CALL_TEST(test_parallel_queue_mpmc_fixedsize);
SEQAN_CALL_TEST(test_parallel_queue_mpmc_dynamicsize);
// SEQAN_CALL_TEST(test_parallel_queue_mpsc_dynamicsize);
// SEQAN_CALL_TEST(test_parallel_queue_mpmc_fixedsize);
// SEQAN_CALL_TEST(test_parallel_queue_mpmc_dynamicsize);
}
#endif
}
Expand Down

0 comments on commit 8ccdb21

Please sign in to comment.