benchmark: update iterations in benchmark/crypto/aes-gcm-throughput.js#50929
benchmark: update iterations in benchmark/crypto/aes-gcm-throughput.js#50929nodejs-github-bot merged 1 commit intonodejs:mainfrom
Conversation
|
I don't think that worth changing from |
Hi Vinicius, The rational of this change is not to trigger JIT, but make the crypto code dominate the execution phase instead of fwrite. When the iteration was 500, most execution time was occupied by fwrite. When iterations was increased to 2500, most execution time would be occupied by crypto. To make the scoring reasonable, we need to increase the iterations. After some experiments I found 2500 is a proper value to avoid long execution time. I attached the perf log of 500 and 2500 and please see if the change made sense. Thanks! |
H4ad
left a comment
There was a problem hiding this comment.
In this case, make sense, thanks for the PR.
|
Landed in 29af78e |
Refs: #50571
Below is score improvement from 500 to 2500, measured on Cascake server.
Improvement can be a bit more if changing to 5000 but the running time will be notable longer than appropriate duration.
To make it clear, I will submit more PRs one by one to address each case in crypto, and tracked by 50571 issue.