Rijndael Speed Update
After digging deep into optimizing the Rijndael implementation, I succeeded in equaling the speed of .NET in some configurations and running a close 2nd in the others.
The original test configuration was using a 3meg file and the ECB cipher mode, which is basically a raw encryption on the individual blocks. Original scores were .NET @ 147ms and VBCorLib @ 302ms. After the massive optimizations, I brought VBCorLib to 172ms. That is a tremendous increase in performance.
I further tried an optimized 256bit block size version. The results were .NET @ 183ms and VBCorLib @ 183ms. A dead heat. Even using the heaviest cipher mode of CFB, VBCorLib is only 50ms behind on a 3meg file at 435ms to 385ms for .NET.
So with enough tweaking, I got more than what I was originally asking for. VB6 seems to still have some kick left.
-Kelly
The original test configuration was using a 3meg file and the ECB cipher mode, which is basically a raw encryption on the individual blocks. Original scores were .NET @ 147ms and VBCorLib @ 302ms. After the massive optimizations, I brought VBCorLib to 172ms. That is a tremendous increase in performance.
I further tried an optimized 256bit block size version. The results were .NET @ 183ms and VBCorLib @ 183ms. A dead heat. Even using the heaviest cipher mode of CFB, VBCorLib is only 50ms behind on a 3meg file at 435ms to 385ms for .NET.
So with enough tweaking, I got more than what I was originally asking for. VB6 seems to still have some kick left.
-Kelly

1 Comments:
Congrats, Kelly!
> VB6 seems to still have some kick left.
Well, this depends on who's kicking it :).
Thanks for the updates
Alex
By
Anonymous, at 8/16/2006 3:44 PM
Post a Comment
<< Home