Sha256: d54cfc117569f8f9dec017dc9fab77e3375b5b9fc8b927d1bc105d9bff45d309
Contents?: true
Size: 302 Bytes
Versions: 30
Compression:
Stored size: 302 Bytes
Contents
# encoding: utf-8 require "benchmark" $LOAD_PATH.unshift "lib" require "ffi-icu" require "rchardet" TESTS = 1000 Benchmark.bmbm do |results| results.report("rchardet:") { TESTS.times { CharDet.detect("æåø") } } results.report("ffi-icu:") { TESTS.times { ICU::CharDet.detect("æåø") } } end
Version data entries
30 entries across 30 versions & 1 rubygems