-
Notifications
You must be signed in to change notification settings - Fork 84
Description
I know it was because of a fix for a side channel attack or something like that and that that's something important but the difference is kinda big ...
below isn't a proper benchmark, but just to compare a simple test that does some signing and verifying.
is there anything we can do to optimize this?
or is the only way for that to move away from a pure PHP implementation?
1.0 branch
$ phpunit tests/SignVerifyMessageTest.php
Time: 5.76 seconds, Memory: 4.25Mb
$ hhvmunit tests/SignVerifyMessageTest.php
Time: 4.72 seconds, Memory 7.50Mb
master
$ phpunit tests/SignVerifyMessageTest.php
Time: 30.29 seconds, Memory: 4.25Mb
$ hhvmunit tests/SignVerifyMessageTest.php
Time: 15.61 seconds, Memory 7.59Mb
PS. hhvm different on 1.0 branch is relatively small because it has more bootstrap time than PHP