Skip to content

MobulaFi/crypto-apis-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto APIs Benchmarking Tool 🚀

This tool is designed to benchmark and test the performance of various popular cryptocurrency APIs: CoinMarketCap, CoinGecko, CoincAp, CoinLayer, Moralis, Mobula. It includes stress tests, caching behavior tests, and overall performance benchmarking.

Goals 🎯

  • Assess the performance of different cryptocurrency APIs.
  • Compare response times, caching mechanisms, and data accuracy.
  • Provide insights for users to select the most efficient API for their needs.

APIs Compared 🌐

  • CoinMarketCap
  • CoinGecko
  • CoinCap
  • Mobula
  • Moralis

Commands 💻

Stress Test

  • Command: yarn dev stress-test

  • Description: Executes a stress test on the selected cryptocurrency APIs.

  • Expected Output: A detailed report showing total requests, successful responses, failed responses, and average response time.

    Stress Test Output

Caching Test

  • Command: yarn dev caching-test

  • Description: Tests the caching behavior of the APIs over a short period. Depending on your needs, an uncached solution will provide real-time data with a marginally longer response time.

  • Expected Output: A sequence of data points showing time and Bitcoin/Ethereum price.

    Caching Test Output

Benchmark

  • Command: yarn dev

  • Description: Runs a benchmark test for performance metrics of various APIs.

  • Expected Output: Summary report detailing response time, Bitcoin price, assets, and blockchains covered.

    Benchmark Test Output

Common Errors and Troubleshooting 🛠️

  • Error 429 (Rate Limit Exceeded): Occurs when request limits are surpassed. Retry after a suitable interval.
  • API Key Issues: Check the validity and configuration of API keys. (API keys are included)

Getting Started 🌟

  1. Clone the repository from GitHub.
  2. Install dependencies using yarn install.
  3. Run the desired test command.

Created by Mobula Labs. For more information or additional API comparisons, contact us at contact@mobulalabs.org.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published