Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 2.46 KB

File metadata and controls

40 lines (32 loc) · 2.46 KB

Gas Test on \alpha Functions

$ npx hardhat test --network hardhat

or

$ npx hardhat test test/constant.test.js --network hardhat
$ npx hardhat test test/poly.test.js --network hardhat
$ npx hardhat test test/hinge.test.js --network hardhat

Result

  Constant ‒ getMedian Gas Benchmark
┌─────────┬───────┬───────┬─────────┬─────────────┬────────┐
│ (index) │  min  │  max  │ average │   stdDev    │ median │
├─────────┼───────┼───────┼─────────┼─────────────┼────────┤
│    0    │ 26365 │ 54736 │  53190  │ '5306.7383' │ 54736  │
└─────────┴───────┴───────┴─────────┴─────────────┴────────┘

  Poly — getMedianPoly Gas & Correctness Tests
┌─────────┬───────┬───────┬─────────┬─────────────┬────────┐
│ (index) │  min  │  max  │ average │   stdDev    │ median │
├─────────┼───────┼───────┼─────────┼─────────────┼────────┤
│    0    │ 36654 │ 65025 │  63479  │ '5306.7383' │ 65025  │
└─────────┴───────┴───────┴─────────┴─────────────┴────────┘

  Hinge — getMedianHinge Gas & Correctness Tests
┌─────────┬───────┬───────┬─────────┬─────────────┬────────┐
│ (index) │  min  │  max  │ average │   stdDev    │ median │
├─────────┼───────┼───────┼─────────┼─────────────┼────────┤
│    0    │ 27527 │ 55898 │  54352  │ '5306.7383' │ 55898  │
└─────────┴───────┴───────┴─────────┴─────────────┴────────┘