Speed differences found in digital credential formats
Three formats show different performance levels when issuing, presenting, and verifying data.
Three Verifiable Credential formats were compared for signing and verification performance. These formats are SD-JWT VC, W3C VCDM, and mdoc.
The comparison used the scope of issue, present with selective disclosure, and verify. Node.js, Go, and Python implementations ran in four environments.
One environment was a cloud VM. The test used across five runs.
For an end-to-end exchange disclosing 5 of 20 attributes, mdoc on Node.js in the cloud VM took 0.265 ms. SD-JWT VC took 0.298 ms. W3C VCDM took 0.534 ms.
The formats span a factor of five in speed. W3C VCDM takes 1.73--2.04x mdoc and 1.57--1.79x SD-JWT VC.
The difference between mdoc and SD-JWT VC is not robust. Totals differ by 12%, 28%, 19%, and 10% across the four environments.
Key facts
- W3C VCDM takes 1.73--2.04x the time of mdoc.
- Canonicalization costs 31--49x a simple credential with production education schemas.
- The mdoc and SD-JWT VC difference is not robust.