roo 1.9.7 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/test/benchmark1.rb DELETED
@@ -1,43 +0,0 @@
1
- require 'rubygems'
2
- require 'roo'
3
- require 'benchmark'
4
-
5
- def process_all_cells(oo)
6
- oo.default_sheet = oo.sheets.first
7
- #oo.first_row.upto(oo.last_row) do |row|
8
- # oo.first_column.upto(oo.last_column) do |col|
9
- # result = oo.cell(row,col)
10
- # end
11
- #end
12
- ret = []
13
- oo.first_row.upto(oo.last_row) do |row|
14
- ret << oo.row(row)
15
- end
16
- end
17
- # 3735 Zeilen jeweils
18
- def openoffice
19
- oo = Openoffice.new('Bibelbund.ods')
20
- process_all_cells(oo)
21
- end
22
- def excel
23
- oo = Excel.new('Bibelbund.xls')
24
- process_all_cells(oo)
25
- end
26
- def excelx
27
- oo = Excelx.new('Bibelbund.xlsx')
28
- process_all_cells(oo)
29
- end
30
-
31
- n = 1
32
- Benchmark.bmbm(10) do |x|
33
- x.report('openoffice:') { n.times do
34
- openoffice
35
- end }
36
- x.report('excel:') { n.times do
37
- excel
38
- end }
39
- x.report('excelx:') { n.times do
40
- excelx
41
- end }
42
- end
43
-
data/tmp.xls DELETED
Binary file