Skip to content

FRAIN-chain/alpha-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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  │
└─────────┴───────┴───────┴─────────┴─────────────┴────────┘

About

Solidity Implementation of alpha functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published