Skip to content

feat: naive state transition#17

Merged
wemeetagain merged 264 commits intomainfrom
te/naive_state_transition
Oct 6, 2025
Merged

feat: naive state transition#17
wemeetagain merged 264 commits intomainfrom
te/naive_state_transition

Conversation

@twoeths
Copy link
Copy Markdown
Collaborator

@twoeths twoeths commented Jun 20, 2025

Motivation

  • run state transition with regular/non-TreeView BeaconState
  • consume ssz-z
  • consume blst-z

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 26, 2025

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 122b97a Previous: null Ratio
JS - unshuffleList - 16384 indices 949.03 us/op
Zig - unshuffleList - 16384 indices 599.64 us/op
JS - unshuffleList - 250000 indices 13.783 ms/op
Zig - unshuffleList - 250000 indices 9.0497 ms/op
JS - unshuffleList - 1000000 indices 53.963 ms/op
Zig - unshuffleList - 1000000 indices 35.917 ms/op
JS - computeSyncCommitteeIndices - 16384 indices 364.89 ms/op
Zig - computeSyncCommitteeIndices - 16384 indices 4.0120 ms/op
JS - computeSyncCommitteeIndices - 250000 indices 343.47 ms/op
Zig - computeSyncCommitteeIndices - 250000 indices 16.886 ms/op
JS - computeSyncCommitteeIndices - 1000000 indices 357.66 ms/op
Zig - computeSyncCommitteeIndices - 1000000 indices 30.945 ms/op
get values - 1000 313.00 ns/op
get values - naive - 1000 547.00 ns/op
set values - 1000 327.00 ns/op
set values - naive - 1000 608.00 ns/op
get values - 1000000 881.00 ns/op
get values - naive - 1000000 1.5430 us/op
set values - 1000000 856.00 ns/op
set values - naive - 1000000 2.1830 us/op

by benchmarkbot/action

@spiral-ladder spiral-ladder force-pushed the te/naive_state_transition branch from 8147c49 to 0d7fd47 Compare September 18, 2025 10:05
Comment thread src/params/preset.zig Outdated
Comment thread src/constants/root.zig
Comment thread src/params/root.zig Outdated
Comment thread src/state_transition/root_c_abi.zig
Comment thread zbuild.zon Outdated
Comment thread .github/workflows/CI.yml Outdated
Comment thread .github/workflows/CI.yml Outdated
Comment thread build.zig.zon Outdated
Comment thread src/config/beacon_config.zig
Comment thread src/lib_state_transition_utils.zig
twoeths and others added 4 commits October 2, 2025 14:14
* feat: merge main

* fix: use @TagName() in ForkSeq

* fix: remove ForkSeq.isXXX()

* fix: handle integer underflow of epoch - 1

* fix: verify signature in isValidIndexedAttestation()

* fix: handle addPubkey() where index=len

* fix: use @TagName() in Preset

* feat: make constants module

* fix: move ForkSeq from params to config

* fix: move preset from consensus_types to params

* fix: params should not import consensus_types

* fix: rename params to preset

* fix: CI steps

* fix: unify blst dependencies

* feat: precompute all domains

* fix: remove unnecessary CI trigger

---------

Co-authored-by: Tuyen Nguyen <twoeths@users.noreply.github.com>
@twoeths twoeths marked this pull request as ready for review October 2, 2025 08:10
Comment thread build.zig
@wemeetagain wemeetagain merged commit 97ba329 into main Oct 6, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants