Sha256: ec0e82436f9d5c875b2681665fe84c34419c6ae74a26ef74525f4f3d5348a299

Contents?: true

Size: 374 Bytes

Versions: 4

Compression:

Stored size: 374 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
      MathToItex(big_file).convert { |equation| Mathematical.new.render(equation) }
    end

    assert_operator speed, :<=, 5
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mathematical-1.3.0 test/mathematical/performance_test.rb
mathematical-1.2.2 test/mathematical/performance_test.rb
mathematical-1.2.1 test/mathematical/performance_test.rb
mathematical-1.2.0 test/mathematical/performance_test.rb