test/benchmark.rb in axlsx-1.3.4 vs test/benchmark.rb in axlsx-1.3.5
- old
+ new
@@ -2,9 +2,10 @@
# -*- coding: utf-8 -*-
$:.unshift "#{File.dirname(__FILE__)}/../lib"
require 'axlsx'
require 'csv'
require 'benchmark'
+Axlsx::trust_input = true
row = []
input = (32..126).to_a.pack('U*').chars.to_a
20.times { row << input.shuffle.join}
times = 3000
Benchmark.bmbm(30) do |x|