summaryrefslogtreecommitdiffhomepage
path: root/test/profile.rb
diff options
context:
space:
mode:
authorochko <[email protected]>2012-04-04 00:34:24 +0900
committerochko <[email protected]>2012-04-04 00:34:24 +0900
commit78e2f076f0b0a1bbe651a3ce53075ae2cf778284 (patch)
tree9ae5cd60bdfbce0e494987d4b4c8ebc731fde7fe /test/profile.rb
parent9950bced40b5b9593212a6b5e3718665c82a5898 (diff)
downloadcaxlsx-78e2f076f0b0a1bbe651a3ce53075ae2cf778284.tar.gz
caxlsx-78e2f076f0b0a1bbe651a3ce53075ae2cf778284.zip
shared string should be faster than non-shared string serialization
Diffstat (limited to 'test/profile.rb')
-rw-r--r--test/profile.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/profile.rb b/test/profile.rb
index 97d2e2bc..fa81577b 100644
--- a/test/profile.rb
+++ b/test/profile.rb
@@ -15,11 +15,12 @@ require 'perftools'
row = []
input = (32..126).to_a.pack('U*').chars.to_a
20.times { row << input.shuffle.join}
-times = 1000
+times = 3000
PerfTools::CpuProfiler.start("/tmp/axlsx_noautowidth") do
p = Axlsx::Package.new
p.use_autowidth = false
+ p.use_shared_strings = true
wb = p.workbook
#A Simple Workbook