Skip to content

Consider batching more than just IPA in ChonkBatchVerifier #1651

Open

Description

@ledwards2225

The IPA MSM represents the dominant cost of Chonk verification (90% assuming single threaded) so is the only thing "batched" in the ChonkBatchVerifier at the time of writing. However, if batching gains traction it could become worth it to batch the pairings as well. AFAICT impact is low but also wouldn't be hard so TBD.

Alternatively (or in addition) we could simply multithread the non-IPA portions (i.e. one verification per thread)

Activity

  1. ledwards2225 commented on Mar 4, 2026

    @ledwards2225
    Author

    E.g. here are some relevant benchmarks after the initial implementation. Note for 8 proofs the non-IPA and IPA are portions are roughly equally expensive:

    All benchmarks run single-threaded

    Full Chonk Verification

    N proofs Individual Batch Speedup
    1 182 ms 182 ms 1.0x
    2 364 ms 207 ms 1.8x
    4 730 ms 257 ms 2.8x
    8 1483 ms 354 ms 4.2x

    IPA Verification Only (size 2^15)

    N proofs Individual Batch Speedup
    1 160 ms 161 ms 1.0x
    2 322 ms 167 ms 1.9x
    4 640 ms 175 ms 3.7x
    8 1315 ms 191 ms 6.9x

    Cost Breakdown (single proof, single-threaded)

    Component Time % of total
    IPA MSM ~160 ms 88%
    Non-IPA (ECCVM, Translator, MegaZK, Merge, pairing) ~22 ms 12%
    Total 182 ms 100%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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