From 78e2f076f0b0a1bbe651a3ce53075ae2cf778284 Mon Sep 17 00:00:00 2001 From: ochko Date: Wed, 4 Apr 2012 00:34:24 +0900 Subject: shared string should be faster than non-shared string serialization --- test/profile.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/profile.rb') 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 -- cgit v1.2.3