[AccessD] Array faster in DLL?

Gustav Brock Gustav at cactus.dk
Wed Nov 9 06:58:12 CST 2005


Hi all

Just noticed that FreeBASIC has a command line option for processor type.
Set to 686 it adds 10% speed for this test compared to the default setting of 486:

  ArrayTimeDLL: 2.0 seconds (FreeBASIC dll measured with 10^7 loops)

Still C++ dll is at least 10 times faster ...

/gustav

>>> Gustav at cactus.dk 01-11-2005 11:19 >>>
To summarize, this means that the result table for 10^6 loops now is (with converted time for PowerBasic from Stuart):

  ArrayTimeLocal: 34 seconds
  ArrayTimeDLL: 3.4 seconds (PowerBasic dll measured with 10^7 loops)
  ArrayTimeDLL: 2.2 seconds (FreeBASIC dll measured with 10^7 loops)
  IArrayTimeLocal_ArrayTimeLocal: 0.2 seconds (measured with 10^8 loops)

Or to express it as speed improvement compared to VBA:

  VBA: 1:1
  PowerBasic dll: 10:1
  FreeBASIC dll: 15.5:1
  C++ dll: 170:1

and compared to the FreeBASIC dll:

  C++ dll: 11:1





More information about the AccessD mailing list