File: benchmark1.txt

package info (click to toggle)
libmath-base-convert-perl 0.11-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 308 kB
  • sloc: perl: 870; makefile: 2
file content (192 lines) | stat: -rw-r--r-- 7,623 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192

  Benchmarks are FROM and TO decimal. The decimal test set is:

	1193046
	5124095576030430
	94522879700260683065598897150409950
	1743639370940744633935561489495120884528376069578043920


  t/benchmarkcnv.t
  make test BENCHMARK=1		FROM base to 'dec'
             Math::Base::Convert     using Math::BigInt
           method         function       function
         $bc->cnv(n)       cnv(n)        convert(n)
-------------------------------------------------------
100100011010001010110
   bin     0.782ms         1.341ms        32.041ms
10010001101000101011001111000100110101011110011011110
           1.333ms         1.887ms        78.000ms
100100011010001010110011110001001101010111100110111101111000000010010001101000101011001111000100110101011110011011110
           2.696ms         3.303ms       173.333ms
1001000110100010101100111100010011010101111001101111011110000000100100011010001010110011110001001101010111100110111101111111011011100101110101001100001110110010101000011001000010000
           4.438ms         4.992ms       270.000ms
-------------------------------------------------------
catagcaccct
   dna     0.824ms         1.562ms        21.189ms
catagcaccctcgtatctttggagcgt
           1.397ms         2.131ms        49.219ms
catagcaccctcgtatctttggagcgtggaaacatagcaccctcgtatctttggagcgt
           2.791ms         3.503ms       110.000ms
catagcaccctcgtatctttggagcgtggaaacatagcaccctcgtatctttggagcgtgggtgcgatgtttctacgctcccaagatacaa
           4.542ms         5.359ms       171.111ms
-------------------------------------------------------
4432126
   oct     0.828ms         1.649ms        17.005ms
221505317046536336
           1.406ms         2.225ms        40.385ms
443212636115274675700221505317046536336
           2.848ms         3.652ms        87.778ms
1106425474232571573600443212636115274675773345651416625031020
           4.735ms         5.552ms       138.182ms
-------------------------------------------------------
123456
   hex     0.794ms         1.929ms        16.020ms
123456789abcde
           1.333ms         2.441ms        36.364ms
123456789abcdef0123456789abcde
           2.671ms         3.787ms        79.000ms
123456789abcdef0123456789abcdefedcba9876543210
           4.405ms         5.552ms       123.200ms
-------------------------------------------------------
bencw
 bas32     0.846ms         1.341ms        15.000ms
erukz6jvpg1
           1.449ms         1.948ms        33.333ms
ci3fm1e3xtppaerukz6jvpg1
           2.930ms         3.420ms        72.791ms
bencwpcnlzxxqci3fm1e3xtpp4xf3tb2fimqq
           4.945ms         5.448ms       114.815ms
-------------------------------------------------------
50mG
   b62     0.894ms         1.827ms        14.395ms
nt2zIAA8u
           1.608ms         2.528ms        31.584ms
8jNYV0IWlg3SwHNKpVtY
           3.418ms         4.367ms        70.000ms
2WQLMo2pQMbq1zeL2FCZdyOFilbPFZK
           5.699ms         6.653ms       110.000ms
-------------------------------------------------------
4ZHM
   b64     0.934ms         1.923ms        14.484ms
ID5PuchpU
           1.544ms         2.528ms        31.782ms
4ZHMU9gytl0ID5PuchpU
           2.999ms         4.066ms        69.773ms
18qLdYQlDxm4ZHMU9gytlxSkfXsL38G
           5.000ms         6.004ms       110.000ms
-------------------------------------------------------
;$u
bas128     0.968ms         1.782ms        13.403ms
9DA#)%^w
           1.562ms         2.403ms        30.792ms
IQL_9:<z*9DA#)%^w
           3.130ms         3.990ms        66.522ms
aqhUJh!|xIQL_9:<z~&k}7o`yG
           5.031ms         5.878ms       105.000ms
-------------------------------------------------------
Iq=
bas256     0.916ms         2.009ms        13.319ms
Iq=?^`|
           1.460ms         2.589ms        30.000ms
Iq=?^`|}Iq=?^`|
           2.839ms         3.953ms        65.106ms
Iq=?^`|}Iq=?^`|:{_@>~oG
           4.600ms         5.735ms       101.290ms


  t/benchmarkcnv.t
  make test BENCHMARK=1		from 'dec' TO base
             Math::Base::Convert     using Math::BigInt
           method         function       function
         $bc->cnv(n)       cnv(n)        convert(n)
-------------------------------------------------------
100100011010001010110
   bin     0.465ms         1.078ms        35.682ms
10010001101000101011001111000100110101011110011011110
           1.085ms         1.705ms        89.429ms
100100011010001010110011110001001101010111100110111101111000000010010001101000101011001111000100110101011110011011110
           1.970ms         2.602ms       199.375ms
1001000110100010101100111100010011010101111001101111011110000000100100011010001010110011110001001101010111100110111101111111011011100101110101001100001110110010101000011001000010000
           3.068ms         3.698ms       318.000ms
ok 149
-------------------------------------------------------
catagcaccct
   dna     0.558ms         1.190ms        22.606ms
catagcaccctcgtatctttggagcgt
           1.239ms         1.869ms        54.407ms
catagcaccctcgtatctttggagcgtggaaacatagcaccctcgtatctttggagcgt
           2.223ms         2.848ms       118.077ms
catagcaccctcgtatctttggagcgtggaaacatagcaccctcgtatctttggagcgtgggtgcgatgtttctacgctcccaagatacaa
           3.402ms         4.040ms       184.706ms
ok 150
-------------------------------------------------------
4432126
   oct     0.528ms         1.157ms        17.112ms
221505317046536336
           1.202ms         1.833ms        41.600ms
443212636115274675700221505317046536336
           2.116ms         2.756ms        90.882ms
1106425474232571573600443212636115274675773345651416625031020
           3.312ms         3.917ms       142.857ms
ok 151
-------------------------------------------------------
123456
   hex     0.455ms         1.071ms        15.911ms
123456789abcde
           1.081ms         1.702ms        36.477ms
123456789abcdef0123456789abcde
           1.964ms         2.573ms        78.250ms
123456789abcdef0123456789abcdefedcba9876543210
           3.049ms         3.652ms       121.600ms
ok 152
-------------------------------------------------------
bencw
 bas32     0.550ms         1.593ms        14.630ms
erukz6jvpg1
           1.202ms         2.237ms        32.188ms
ci3fm1e3xtppaerukz6jvpg1
           2.130ms         3.140ms        70.227ms
bencwpcnlzxxqci3fm1e3xtpp4xf3tb2fimqq
           3.283ms         4.272ms       108.621ms
ok 153
-------------------------------------------------------
50mG
   b62     0.529ms         1.143ms        13.277ms
nt2zIAA8u
           1.433ms         2.051ms        29.907ms
8jNYV0IWlg3SwHNKpVtY
           3.068ms         3.698ms        65.000ms
2WQLMo2pQMbq1zeL2FCZdyOFilbPFZK
           5.129ms         5.753ms       100.645ms
ok 154
-------------------------------------------------------
4ZHM
   b64     0.531ms         1.157ms        13.235ms
ID5PuchpU
           1.209ms         1.838ms        29.537ms
4ZHMU9gytl0ID5PuchpU
           2.143ms         2.765ms        64.286ms
18qLdYQlDxm4ZHMU9gytlxSkfXsL38G
           3.262ms         3.886ms       100.000ms
ok 155
-------------------------------------------------------
;$u
bas128     0.484ms         1.111ms        11.894ms
9DA#)%^w
           1.202ms         3.242ms        28.288ms
IQL_9:<z*9DA#)%^w
           2.130ms         4.130ms        60.000ms
aqhUJh!|xIQL_9:<z~&k}7o`yG
           3.252ms         5.241ms        92.647ms
ok 156
-------------------------------------------------------
Iq=
bas256     0.492ms         1.097ms        11.894ms
Iq=?^`|
           1.190ms         4.658ms        26.864ms
Iq=?^`|}Iq=?^`|
           2.085ms         5.569ms        57.736ms
Iq=?^`|}Iq=?^`|:{_@>~oG
           3.222ms         6.604ms        88.571ms
ok 157