Sha256: 70ee9d8f0e4d915f1529cbaac5114599b12246640b07103ce0d2e222aea4d41b

Contents?: true

Size: 365 Bytes

Versions: 20

Compression:

Stored size: 365 Bytes

Contents

require 'test_helper'
require 'benchmark'

class Mathematical::BasicTest < MiniTest::Test
  def test_it_handles_big_files
    big_file = File.read('test/mathematical/fixtures/performance/big_file.text')
    speed = Benchmark.realtime do
      assert_silent do
        Mathematical.new.filter(big_file)
      end
    end

    assert_operator speed, :<=, 5
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mathematical-1.6.14 test/mathematical/performance_test.rb
mathematical-1.6.13 test/mathematical/performance_test.rb
mathematical-1.6.12 test/mathematical/performance_test.rb
mathematical-1.6.11 test/mathematical/performance_test.rb
mathematical-1.6.10 test/mathematical/performance_test.rb
mathematical-1.6.9 test/mathematical/performance_test.rb
mathematical-1.6.8 test/mathematical/performance_test.rb
mathematical-1.6.7 test/mathematical/performance_test.rb
mathematical-1.6.6 test/mathematical/performance_test.rb
mathematical-1.6.5 test/mathematical/performance_test.rb
mathematical-1.6.4 test/mathematical/performance_test.rb
mathematical-1.6.3 test/mathematical/performance_test.rb
mathematical-1.6.2 test/mathematical/performance_test.rb
mathematical-1.6.1 test/mathematical/performance_test.rb
mathematical-1.6.0 test/mathematical/performance_test.rb
mathematical-1.5.12 test/mathematical/performance_test.rb
mathematical-1.5.0 test/mathematical/performance_test.rb
mathematical-1.4.2 test/mathematical/performance_test.rb
mathematical-1.4.1 test/mathematical/performance_test.rb
mathematical-1.4.0 test/mathematical/performance_test.rb