Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark bonding curve functionality #190

Closed
2 tasks
ethanfrey opened this issue Dec 17, 2020 · 2 comments
Closed
2 tasks

Benchmark bonding curve functionality #190

ethanfrey opened this issue Dec 17, 2020 · 2 comments
Labels
bonding curve Work on bonding curve contracts

Comments

@ethanfrey
Copy link
Member

Follow up from #185

Let's get some idea how fast these algorithms are to see if we need to optimize the implementations. Or if they are good enough.

  • Benchmark the various Curve implementations (native rust) ns/run
  • Test with gas meter the buy/burn with various Curve implementations (at least a fast and two slow variants from the benchmark). See if wasm gas usage is proportional to the benchmark times.
@ethanfrey ethanfrey added the bonding curve Work on bonding curve contracts label Dec 17, 2020
@ethanfrey
Copy link
Member Author

Setting up benchmarking infrastructure in general. Both timing (as native rust) as well as gas cost (as wasm in cosmwasm-vm) would be interesting. Not sure if native rust benchmarking is really useful, as the wasm gas costs are what matter and are deterministic (only need to run once, no average).

@maurolacy just want to ping this for a tooling task that may be a useful way to learn the stack

@ethanfrey
Copy link
Member Author

Interesting idea, but I think no one is using cw20-bonding anyway, certainly not me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bonding curve Work on bonding curve contracts
Projects
None yet
Development

No branches or pull requests

1 participant