https://github.com/chainbound/sniper-demo
https://github.com/chainbound/sniper-demo
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/chainbound/sniper-demo
- Owner: chainbound
- Created: 2023-02-17T08:11:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T08:12:00.000Z (over 3 years ago)
- Last Synced: 2025-01-24T06:29:47.075Z (over 1 year ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fiber vs. Bloxroute Benchmarks
This repo contains a Go program to help you benchmark and compare Fiber vs. Bloxroute transaction streams.
## Requirements
* Golang: https://go.dev/doc/install
## Usage
To run, copy `.env.example` to `.env` and fill in the necessary information.
Then run with
```
go run .
```
The program will run for `DURATION` time, after
which it will print out the results of the benchmarks.
Example output:
```
Running benchmark for 10m0s ...
Bloxroute endpoint: wss://uk.eth.blxrbdn.com/ws
Fiber endpoint: fiberapi.io:8080
========== STATS =============
Mean difference: 174.61ms
Median difference: 2.00ms
Max difference: 335986.00ms
Min difference: -3713.00ms
Stdev: 6159.43ms
========== RESULT =============
Fiber won 56.79% of the time
```
It will also write all the individual transactions to `benchmarks.csv`, along with the difference in ms.
Positive means Fiber was faster.