Skip to content

Commit

Permalink
remove bench
Browse files Browse the repository at this point in the history
  • Loading branch information
0xh3rman committed Jun 18, 2024
1 parent 85c3144 commit d541f36
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 190 deletions.
15 changes: 3 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ move-command-line-common = { path = "external-crates/move/crates/move-command-li
move-core-types = { path = "external-crates/move/crates/move-core-types" }
# move-disassembler = { path = "external-crates/move/crates/move-disassembler" }
move-ir-types = { path = "external-crates/move/crates/move-ir-types" }
move-vm-test-utils = { path = "external-crates/move/crates/move-vm-test-utils/", features = [
"tiered-gas",
] }
# move-vm-test-utils = { path = "external-crates/move/crates/move-vm-test-utils/", features = [
# "tiered-gas",
# ] }
move-vm-types = { path = "external-crates/move/crates/move-vm-types" }
move-vm-profiler = { path = "external-crates/move/crates/move-vm-profiler" }
num-traits = "0.2.18"
Expand Down Expand Up @@ -98,16 +98,7 @@ proptest-derive = "0.3.0"
serde_yaml = "0.8.26"
expect-test = "1.4.0"

[[bench]]
name = "accumulator_bench"
harness = false

[features]
default = []
test-utils = []
gas-profiler = [
"move-vm-profiler/gas-profiler",
"move-vm-types/gas-profiler",
"move-vm-test-utils/gas-profiler",
]
fuzzing = ["move-core-types/fuzzing"]
39 changes: 0 additions & 39 deletions benches/accumulator_bench.rs

This file was deleted.

13 changes: 0 additions & 13 deletions src/gas_model/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -910,16 +910,3 @@ pub fn initial_cost_schedule_v5() -> CostTable {
stack_height_tiers,
}
}

// Convert from our representation of gas costs to the type that the MoveVM expects for unit tests.
// We don't want our gas depending on the MoveVM test utils and we don't want to fix our
// representation to whatever is there, so instead we perform this translation from our gas units
// and cost schedule to the one expected by the Move unit tests.
pub fn initial_cost_schedule_for_unit_tests() -> move_vm_test_utils::gas_schedule::CostTable {
let table = initial_cost_schedule_v5();
move_vm_test_utils::gas_schedule::CostTable {
instruction_tiers: table.instruction_tiers.into_iter().collect(),
stack_height_tiers: table.stack_height_tiers.into_iter().collect(),
stack_size_tiers: table.stack_size_tiers.into_iter().collect(),
}
}
51 changes: 0 additions & 51 deletions tests/digests_tests.rs

This file was deleted.

40 changes: 0 additions & 40 deletions tests/serde_tests.rs

This file was deleted.

35 changes: 0 additions & 35 deletions tests/staged/exec_failure_status.yaml

This file was deleted.

0 comments on commit d541f36

Please sign in to comment.