Skip to content

Slow comitment to polynomial with blst_from_scratch #202

@nazar-pc

Description

@nazar-pc

I have migrated code from using https://github.com/dusk-network/plonk to blst_from_scratch and noticed improved performance except for committing to polynomial.

Before:

create-polynomial       time:   [78.910 µs 80.642 µs 82.387 µs]
commit                  time:   [375.98 µs 382.69 µs 389.47 µs]
prove                   time:   [406.50 µs 412.22 µs 417.96 µs]
verify                  time:   [2.6014 ms 2.7458 ms 2.8826 ms]

After:

create-polynomial       time:   [1.7445 µs 1.7448 µs 1.7451 µs]
commit                  time:   [779.59 µs 779.96 µs 780.34 µs]
prove                   time:   [386.50 µs 387.20 µs 387.99 µs]
verify                  time:   [1.7031 ms 1.7032 ms 1.7034 ms]

It is ~2x slower with blst_from_scratch, though I am not yet sure where slowness comes from.

I'm committing to polynomial with 8 coefficients, while FsKZGSettings was initialized with scale of 10.

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