Number class shows degradation in math operations performance. #4368
Labels
Perf Test Desired (Optional)
RippleX Perf Team should look at this PR. The PR will not necessarily wait for testing to finish
Request for Comments
Issue Description
Number class shows degradation in math operations performance as compared to similar operations
implemented in STAmount.
Steps to Reproduce
Here is a simple unit test, which demonstrates the issue:
Expected Result
Math operations using Number and STAmount function should produce similar results.
Actual Result
The issue manifested itself in the payment engine updated for AMM. Swap in formula used
to figure out initial AMM offer size resulted in the throughput degradation.
Environment
The benchmark test ran on 11 "Ubuntu 20.04.4 LTS" servers (five validators, four clients, two signing) in AWS.
The unit test ran on OSX Ventura.
AMM PR was used to build rippled: #4294
The text was updated successfully, but these errors were encountered: