Skip to content

Commit

Permalink
remove benchmark test
Browse files Browse the repository at this point in the history
  • Loading branch information
blahah committed Feb 7, 2015
1 parent 70a73b4 commit e66e1f4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/test_contig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,6 @@ class TestContig < Test::Unit::TestCase
assert_equal 1, contig.dibase_composition[:gn]
end

should "benchmark composition" do
seq = "GCCGTGAGCTTCTTGATCGAGTTCTTCTCCCGCTTCGCGAACGCCTTGGACTCCTNGCACGGG"
seq << "GTCAGCCCCGCGATGTCGGCGGCCGCGGGCGGGGGG"
seq = seq * 100000
seq = Bio::FastaFormat.new ">test\n"+seq
contig = Transrate::Contig.new seq
ruby_time = 11 # time taken with the ruby version
c_time = Benchmark.realtime do |x|
contig.dibase_composition
end
assert c_time*100 < ruby_time, "c faster than ruby"
end

should "know how many of each two-base pair it contains" do
assert_equal 3, @contig.dibase_composition[:cg], "cg count"
assert_equal 3, @contig.dibase_composition[:at], "at count"
Expand Down

0 comments on commit e66e1f4

Please sign in to comment.