-
Notifications
You must be signed in to change notification settings - Fork 10
Description
FF1 Should be lightening fast,
However when benchmarking, I was seeing this when speed testing (note timing was restricted to the most intensive step: let cb = ff.encrypt(&[], &binarified_input); )
40 Characters: 7.4697ms
200 Characters: 59.0451ms
1000 Characters: 623.9559ms
5000 Characters: 7.009278s
As the size of input becomes larger, the amount of time it takes to encrypt starts to rapidly increase. It seems inordinately slow for the relatively small sizes in play. I would expect some > 1 second encryption times in the megabyte size of strings, but not with just a few thousand characters.
Am I missing something on the nature of the FF1 algorithm? Is there a way I can turbo charge this?
I tried to use instead but that failed with an assert_eq! error, so I'm not sure if that has been fully implemented.
Thanks!