summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-01-10 18:27:27 +0900
committerRandy Morgan <[email protected]>2013-01-10 18:27:27 +0900
commit58e8dd8a2b1a4a85ac77bf680914daf16eb695f1 (patch)
tree980bf825b4b5c5fb55ef55b1b7f0ea2eb9b13533 /test
parentf7eeb07abfa1c58552847b2b38787f44cd3e2d24 (diff)
downloadcaxlsx-58e8dd8a2b1a4a85ac77bf680914daf16eb695f1.tar.gz
caxlsx-58e8dd8a2b1a4a85ac77bf680914daf16eb695f1.zip
reduced processing of 3000 rows from 3+ seconds to just under 2
Diffstat (limited to 'test')
-rw-r--r--test/benchmark.rb1
-rw-r--r--test/profile.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/benchmark.rb b/test/benchmark.rb
index 33bf7d2c..2ef82eaf 100644
--- a/test/benchmark.rb
+++ b/test/benchmark.rb
@@ -4,6 +4,7 @@ $:.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}
diff --git a/test/profile.rb b/test/profile.rb
index 0190dc16..8e4218fd 100644
--- a/test/profile.rb
+++ b/test/profile.rb
@@ -8,6 +8,7 @@
$:.unshift "#{File.dirname(__FILE__)}/../lib"
require 'axlsx'
require 'perftools'
+Axlsx.trust_input = true
row = []
# Taking worst case scenario of all string data
input = (32..126).to_a.pack('U*').chars.to_a