Skip to content

Commit fc4bff6

Browse files
committed
Fix review feedback: soften benchmark claim, fix table header, subshell cd
- Replace "across the board" with "on the majority of operations" since alloy wins 5/24 - Add "Winner" column header to the benchmark table - Wrap alloy bench cd in subshell so compare.sh runs from correct directory
1 parent 00d568c commit fc4bff6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A complete Ethereum client library written in pure Zig -- ABI encoding, RLP seri
1010

1111
## Why eth.zig?
1212

13-
**Faster than Rust** -- eth.zig [beats alloy.rs](bench/RESULTS.md) (Rust's leading Ethereum library, backed by Paradigm) on **18 out of 24 benchmarks**. ABI encoding, hashing, hex operations, address parsing, transaction serialization -- eth.zig is faster across the board.
13+
**Faster than Rust** -- eth.zig [beats alloy.rs](bench/RESULTS.md) (Rust's leading Ethereum library, backed by Paradigm) on **18 out of 24 benchmarks**. ABI encoding, hashing, hex operations, address parsing, transaction serialization -- eth.zig is faster on the majority of operations.
1414

1515
**Zero dependencies** -- Built entirely on Zig's standard library. No C bindings, no vendored C code, no system libraries.
1616

@@ -22,8 +22,8 @@ A complete Ethereum client library written in pure Zig -- ABI encoding, RLP seri
2222

2323
eth.zig wins **18/24 benchmarks** against [alloy.rs](https://alloy.rs). Measured on Apple Silicon, `ReleaseFast` (Zig) vs `--release` (Rust).
2424

25-
| Operation | eth.zig | alloy.rs | |
26-
|-----------|---------|----------|-|
25+
| Operation | eth.zig | alloy.rs | Winner |
26+
|-----------|---------|----------|--------|
2727
| Keccak-256 (32B) | 263 ns | 337 ns | **zig 1.28x** |
2828
| Keccak-256 (4KB) | 7,828 ns | 9,229 ns | **zig 1.18x** |
2929
| ABI encode (static) | 69 ns | 97 ns | **zig 1.41x** |
@@ -254,9 +254,9 @@ zig build integration-test # Integration tests (requires Anvil)
254254
## Benchmarks
255255

256256
```bash
257-
zig build bench # Run eth.zig benchmarks
258-
cd bench/alloy-bench && cargo bench --bench eth_comparison # Run alloy.rs benchmarks
259-
bash bench/compare.sh # Side-by-side comparison
257+
zig build bench # Run eth.zig benchmarks
258+
(cd bench/alloy-bench && cargo bench --bench eth_comparison) # Run alloy.rs benchmarks
259+
bash bench/compare.sh # Side-by-side comparison
260260
```
261261

262262
## Contributing

0 commit comments

Comments
 (0)