News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Benchmark for DWORD to ASCII algorithms

Started by hutch--, June 04, 2012, 01:34:27 AM

Previous topic - Next topic

hutch--

The attached file has a benchmark to test a collection of conversion algorithms. The result for the test is written to BMLOG.TXT.

These are the results on my dev Core2 quad.


Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz
Results 8 pass average
timing Ray original utoa 234 ms
timing Paul Dixon utoa_ex 78 ms
timing brethren utoa2 172 ms
timing Lingo utoa_ex 78 ms
timing msvc ustr$ 391 ms
timing Ray modified utoa3 234 ms

dedndave

prescott w/htt
Intel(R) Pentium(R) 4 CPU 3.00GHz
Results 8 pass average
timing Ray original utoa   468 ms
timing Paul Dixon utoa_ex  175 ms
timing brethren utoa2      343 ms
timing Lingo utoa_ex       173 ms
timing msvc ustr$         1707 ms
timing Ray modified utoa3  466 ms

jj2007

rsrc.rc, line 21 might require a tiny change:

chokes on some puters: #include "H:/masm32/INCLUDE/resource.h"
heals the problem: #include "/masm32/INCLUDE/resource.h"

hutch--


RuiLoureiro

Intel(R) Pentium(R) 4 CPU 3.00GHz
Results 8 pass average
timing Ray original utoa      533 ms
timing Paul Dixon utoa_ex  197 ms
timing brethren utoa2       390 ms
timing Lingo utoa_ex         189 ms
timing msvc ustr$             1896 ms
timing Ray modified utoa3  517 ms

dedndave

which ever algo you choose, 4294967296 possible values isn't too many to do a complete functional test
(i.e., verify correct output strings for 4294967296 cases)   :biggrin:

sometimes the fastest algo is fast because it isn't doing what it's supposed to - lol

hutch--

Everybody has a theory,the algo do as the algos do. From memory I tested all of them over the DWORD range and all are correct.

Obivan

Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
Results 8 pass average
timing Ray original utoa 199 ms
timing Paul Dixon utoa_ex 68 ms
timing brethren utoa2 146 ms
timing Lingo utoa_ex 66 ms
timing msvc ustr$ 423 ms
timing Ray modified utoa3 185 ms

jcfuller


AMD Athlon(tm) II X2 250 Processor
Results 8 pass average
timing Ray original utoa 341 ms
timing Paul Dixon utoa_ex 136 ms
timing brethren utoa2 206 ms
timing Lingo utoa_ex 140 ms
timing msvc ustr$ 781 ms
timing Ray modified utoa3 343 ms

FORTRANS

Hi,

   P-III with Windows 2000.  P-MMX with Windows 98.

Regards,

Steve N,



Results 8 pass average
timing Ray original utoa 1526 ms
timing Paul Dixon utoa_ex 687 ms
timing brethren utoa2 1037 ms
timing Lingo utoa_ex 604 ms
timing msvc ustr$ 4462 ms
timing Ray modified utoa3 1387 ms


Results 8 pass average
timing Ray original utoa 13400 ms
timing Paul Dixon utoa_ex 7847 ms
timing brethren utoa2 9074 ms
timing Lingo utoa_ex 8019 ms
timing msvc ustr$ 41197 ms
timing Ray modified utoa3 13788 ms

Ghandi

Hi,

Running Windows 7 x64:

Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
Results 8 pass average
timing Ray original utoa 193 ms
timing Paul Dixon utoa_ex 78 ms
timing brethren utoa2 142 ms
timing Lingo utoa_ex 78 ms
timing msvc ustr$ 392 ms
timing Ray modified utoa3 175 ms

HR,
Ghandi

hutch--


Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz
Results 8 pass average
timing Ray original utoa 265 ms
timing Paul Dixon utoa_ex 78 ms
timing brethren utoa2 171 ms
timing Lingo utoa_ex 62 ms
timing msvc ustr$ 436 ms
timing Ray modified utoa3 234 ms

Greenhorn

AMD FX(tm)-8150 Eight-Core Processor
Results 8 pass average
timing Ray original utoa 290 ms
timing Paul Dixon utoa_ex 81 ms
timing brethren utoa2 171 ms
timing Lingo utoa_ex 78 ms
timing msvc ustr$ 508 ms
timing Ray modified utoa3 255 ms


Regards
Greenhorn
Kole Feut un Nordenwind gift en krusen Büdel un en lütten Pint.

KeepingRealBusy

Here is my laptop.

Intel(R) Pentium(R) 4 CPU 3.20GHz
Results 8 pass average
timing Ray original utoa 1090 ms
timing Paul Dixon utoa_ex 312 ms
timing brethren utoa2 595 ms
timing Lingo utoa_ex 353 ms
timing msvc ustr$ 1456 ms
timing Ray modified utoa3 732 ms

Dave.

KeepingRealBusy

Here is my desktop.

AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Results 8 pass average
timing Ray original utoa 587 ms
timing Paul Dixon utoa_ex 146 ms
timing brethren utoa2 355 ms
timing Lingo utoa_ex 178 ms
timing msvc ustr$ 1728 ms
timing Ray modified utoa3 617 ms

Dave.