Skip to content

latest version of phpecc made the performance HORIBLE #66

@rubensayshi

Description

@rubensayshi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions