Wallet Onboard user performance brake down.
Function | Refatored KMS | Old KMS |
---|---|---|
createAuthzKeyStore | 67ms | 68ms |
createAuthzKey | 5ms | 3.02s |
createOpKeyStore | 50ms | 87ms |
createOpKeys | 175ms | 3.11s |
onboardUser Total | 485ms | 6.46s |
Besides KMS refactoring improved performance a lot, we have room for further optimization. Analyzing the difference betting execution time of CreateKey operation with and without EDV storage, we came to the conclusion that reading from EDV storage adds considerable performance penalty to KMS operations. We expected that adding caching layer atop EDV storage will improve the performance of CreateKey at least by 50%. This in turn will reduce onboard user execution time from ~480ms to ~400ms
Function | Without EDV | With EDV |
---|---|---|
CreateKey | 3ms | 60-80ms |