• Stars
    star
    200
  • Rank 195,325 (Top 4 %)
  • Language
    Solidity
  • License
    GNU General Publi...
  • Created about 2 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🚀🪑 evm-bench is a suite of Ethereum Virtual Machine stress tests and benchmarks.

evm-bench

Rust

evm-bench is a suite of Ethereum Virtual Machine (EVM) stress tests and benchmarks.

evm-bench makes it easy to compare EVM performance in a scalable, standardized, and portable way.

evmone revm pyrevm geth py-evm.pypy py-evm.cpython ethereumjs
sum 66ms 84.8ms 194ms 235ms 7.201s 19.0886s 146.3218s
relative 1.000x 1.285x 2.939x 3.561x 109.106x 289.221x 2216.997x
erc20.approval-transfer 7ms 9.6ms 16.2ms 17ms 425.2ms 1.13s 2.0006s
erc20.mint 5ms 6.4ms 14.8ms 17.2ms 334ms 1.1554s 3.1352s
erc20.transfer 8.6ms 11.6ms 22.8ms 24.6ms 449.2ms 1.6172s 3.6564s
snailtracer 43ms 53ms 128ms 163ms 5.664s 13.675s 135.059s
ten-thousand-hashes 2.4ms 4.2ms 12.2ms 13.2ms 328.6ms 1.511s 2.4706s

To reproduce these results, check out usage with the evm-bench suite below.

Technical Overview

In evm-bench there are benchmarks and runners:

  • Benchmarks are expensive Solidity contracts paired with configuration.
  • Runners are consistent platforms for deploying and calling arbitrary smart contracts.

The evm-bench framework can run any benchmark on any runner. The links above dive deeper into how to build new benchmarks or runners.

Usage

With the evm-bench suite

Simply cloning this repository and running RUST_LOG=info cargo run --release -- will do the trick. You may need to install some dependencies for the benchmark build process and the runner execution.

With another suite

evm-bench is meant to be used with the pre-developed suite of benchmarks and runners in this repository. However, it should work as an independent framework elsewhere.

See the CLI arguments for evm-bench to figure out how to set it up! Alternatively just reach out to me or post an issue.

Development

Do it. Reach out to me if you wanna lend a hand but don't know where to start!

More Repositories

1

ziyadedher

🔥🧠 Exclusive behind-the-scenes for ziyadedher.com!
TypeScript
7
star
2

genetic-level-solver

Genetic algorithm that learns how to play through a level.
Python
4
star
3

webdev-template

🌍🚀 Ziyad's WebDev template for hypermodern web development (TypeScript + Next.js + TailwindCSS)
TypeScript
4
star
4

optimism-subgraphs

🔴🕸️ The Graph Subgraphs for Optimism
TypeScript
2
star
5

small-python-projects

Collection of small learning projects written in Python.
1
star
6

kappa-gone

Twitch spam remover or compressor for a less chat-intrusive viewing experience while staying in the loop.
Python
1
star
7

604DAO

TypeScript
1
star
8

game-of-life

John Conway's Game of Life, built in fully object oriented C++.
C++
1
star
9

rpi-display-projects

A series of small RPi projects that utilize a connected display.
Python
1
star
10

nshoot

Simple shooter built with machine learning capabilities.
Python
1
star
11

birdynet

Flappy Bird implementation in Python with hooks for machine learning possibilities.
Python
1
star
12

lights-n-signs

Training framework for the lights and signs detection sub-team of aUToronto.
Python
1
star
13

uniphy

Universal physics, made with great intentions but horrible executions.
Python
1
star
14

decuen-old

Deep Q-Learning library built in modern Python for learning, ease-of-use, modularity, and extensibility.
Python
1
star
15

dental-clutter

🦷📦 DentalClutter is an efficient, secure, and space-saving management solution for dental records and models.
TypeScript
1
star
16

dao-interface

TypeScript
1
star
17

pique

Pique is a high-level Raspberry Pi interface in Python for easy robotics prototyping and experimentation.
Python
1
star
18

decuen

WIP: Decuen (dee-kew-en) is a reinforcement learning framework built in modern Python for experimentation, ease-of-use, modularity, and extensibility.
Python
1
star