Skip to content

Commit

Permalink
refactor: adapt test_ssz_withdrawals_program_run_report
Browse files Browse the repository at this point in the history
We use a different set of precompiles and different compilation options
  • Loading branch information
huitseeker committed Jun 16, 2024
1 parent 431761d commit a787e2f
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions core/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1187,46 +1187,46 @@ pub mod tests {
use super::SyscallCode::*;
super::ExecutionReport {
instruction_counts: [
(LB, 10723),
(DIVU, 6),
(LW, 237094),
(JALR, 38749),
(XOR, 242242),
(BEQ, 26917),
(AND, 151701),
(SB, 58448),
(MUL, 4036),
(SLTU, 16766),
(ADD, 583439),
(JAL, 5372),
(LBU, 57950),
(SRL, 293010),
(SW, 312781),
(ECALL, 2264),
(BLTU, 43457),
(BGEU, 5917),
(BLT, 1141),
(SUB, 12382),
(BGE, 237),
(BEQ, 19867),
(JAL, 3921),
(SRL, 288860),
(MULHU, 1152),
(BNE, 51442),
(AUIPC, 19488),
(OR, 301944),
(SLL, 278698),
(SUB, 10433),
(SB, 55807),
(LB, 10995),
(SLL, 257511),
(JALR, 19801),
(BGEU, 4487),
(ECALL, 2264),
(DIVU, 5),
(XOR, 241804),
(BGE, 393),
(SW, 239570),
(AND, 142566),
(LW, 146149),
(BNE, 42547),
(SLTU, 13270),
(BLT, 917),
(LBU, 32925),
(ADD, 511695),
(OR, 283019),
(AUIPC, 9933),
(MUL, 3735),
(BLTU, 39475),
]
.into(),
syscall_counts: [
(COMMIT_DEFERRED_PROOFS, 8),
(SHA_EXTEND, 1091),
(COMMIT, 8),
(WRITE, 65),
(SHA_COMPRESS, 1091),
(WRITE, 65),
(HALT, 1),
(COMMIT, 8),
(SHA_EXTEND, 1091),
]
.into(),
}
});
assert_eq!(runtime.report.total_instruction_count(), 2757356);
assert_eq!(runtime.report.total_instruction_count(), 2383101);
}

#[test]
Expand Down

0 comments on commit a787e2f

Please sign in to comment.