def detect!(time = 2, warmup = 1)
      ::Benchmark.ips do |x|
        x.config(time: time, warmup: warmup)
        TEST_STRINGS_FLAT.each do |scheme, string|
          x.report("Detect #{scheme}") do
            Sanscript::Detect.detect_scheme(string)
          end
        end
        x.compare!
      end
      true
    end
def detect!(time = 2, warmup = 1)
      ::Benchmark.ips do |x|
        x.config(time: time, warmup: warmup)
        TEST_STRINGS_FLAT.each do |scheme, string|
          x.report("Detect #{scheme}") do
            Sanscript::Detect.detect_scheme(string)
          end
        end
        x.compare!
      end
      true
    end
Runs benchmark-ips test on detection methods.