Commit c2828254 authored by Armin Sobhani's avatar Armin Sobhani
Browse files

benchmark commit 2

parent 6b64da40
......@@ -132,8 +132,6 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(read_multi_fasta, T, seq_types)
// in >> std::skipws;
auto start = std::chrono::high_resolution_clock::now();
std::list<T> reads
{
std::istream_iterator<T>(in)
......@@ -170,9 +168,11 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(read_multi_fasta, T, seq_types)
// for (auto read : reads | boost)
// std::cout << read.name() << '\n' << read.data() << std::endl;
auto start = std::chrono::high_resolution_clock::now();
std::list<T> rc_reads;
for (auto read : reads)
{
T dst_read;
T rc_read;
//std::cout << read.name() << '\n'
// << read.data()
// << std::endl;
......@@ -182,9 +182,11 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(read_multi_fasta, T, seq_types)
| boost::adaptors::replaced('C', 'G')
// | boost::adaptors::replaced('G', 'C')
| boost::adaptors::reversed
, std::back_inserter(dst_read));
, std::back_inserter(rc_read));
//, std::ostream_iterator<char>(std::cout) );
//std::cout << std::endl;
rc_reads.push_back(std::move(rc_read));
// rc_reads.push_back(rc_read);
}
auto d = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::high_resolution_clock::now() - start);
std::cout << "Elapsed time: " << d.count() << " ms" << std::endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment