Skip to content

Conversation

mohanson
Copy link
Collaborator

This PR removes the benchmark for secp256k1;

But I keep the secp256k1 binary because some testcases already depend on it.

@mohanson mohanson requested a review from xxuejie May 30, 2025 01:00
let isa = ISA_IMC;
let version = VERSION1;
let buffer = fs::read("benches/data/secp256k1_bench").unwrap().into();
let buffer = fs::read("tests/programs/secp256k1").unwrap().into();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just thinking: do we still need secp256k1 as a test here? I do recall test suite already contains secp256k1 test, can we simply remove it in this repo for simplicity?

We could probably draw a line: in this repo, we only do small, instruction level testing. And we leave it to the test suite repo for more, contract level testing.

Any thoughts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree.

Currently, all the test programs are hand-written except for the secp256k1 test; we can clearly know which instruction the test program is testing.

This makes the secp256k1 test look strange here.

Copy link
Collaborator

@xxuejie xxuejie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change here reminds me of one separate thing: might be worthwhile to run programs in test suite using suspend / resume mode.

@mohanson
Copy link
Collaborator Author

The change here reminds me of one separate thing: might be worthwhile to run programs in test suite using suspend / resume mode.

Yes, I will add that.

@mohanson mohanson merged commit 976d1f1 into nervosnetwork:develop May 30, 2025
17 checks passed
@mohanson mohanson deleted the clean_bench branch May 30, 2025 02:06
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.

3 participants