New weights using i7 machine (#5848)

* i7 weights

* fix full block test

* fix merge

* fix priority
This commit is contained in:
Shawn Tabrizi
2020-05-01 14:14:43 +02:00
committed by GitHub
parent 5b4497efcd
commit b913dfebb7
7 changed files with 61 additions and 43 deletions
+8 -5
View File
@@ -339,7 +339,7 @@ fn full_native_block_import_works() {
phase: Phase::ApplyExtrinsic(0),
// timestamp set call with weight 9_000_000 + 2 read + 1 write
event: Event::frame_system(frame_system::RawEvent::ExtrinsicSuccess(
DispatchInfo { weight: 9_000_000 + 2 * 60_000_000 + 1 * 200_000_000, class: DispatchClass::Mandatory, ..Default::default() }
DispatchInfo { weight: 9_000_000 + 2 * 25_000_000 + 1 * 100_000_000, class: DispatchClass::Mandatory, ..Default::default() }
)),
topics: vec![],
},
@@ -359,8 +359,9 @@ fn full_native_block_import_works() {
},
EventRecord {
phase: Phase::ApplyExtrinsic(1),
// Balance Transfer 80_000_000 + 1 Read + 1 Write
event: Event::frame_system(frame_system::RawEvent::ExtrinsicSuccess(
DispatchInfo { weight: 460_000_000, ..Default::default() }
DispatchInfo { weight: 80_000_000 + 25_000_000 + 100_000_000, ..Default::default() }
)),
topics: vec![],
},
@@ -393,7 +394,7 @@ fn full_native_block_import_works() {
phase: Phase::ApplyExtrinsic(0),
// timestamp set call with weight 9_000_000 + 2 read + 1 write
event: Event::frame_system(frame_system::RawEvent::ExtrinsicSuccess(
DispatchInfo { weight: 9_000_000 + 2 * 60_000_000 + 1 * 200_000_000, class: DispatchClass::Mandatory, ..Default::default() }
DispatchInfo { weight: 9_000_000 + 2 * 25_000_000 + 1 * 100_000_000, class: DispatchClass::Mandatory, ..Default::default() }
)),
topics: vec![],
},
@@ -415,8 +416,9 @@ fn full_native_block_import_works() {
},
EventRecord {
phase: Phase::ApplyExtrinsic(1),
// Balance Transfer 80_000_000 + 1 Read + 1 Write
event: Event::frame_system(frame_system::RawEvent::ExtrinsicSuccess(
DispatchInfo { weight: 460_000_000, ..Default::default() }
DispatchInfo { weight: 80_000_000 + 25_000_000 + 100_000_000, ..Default::default() }
)),
topics: vec![],
},
@@ -438,8 +440,9 @@ fn full_native_block_import_works() {
},
EventRecord {
phase: Phase::ApplyExtrinsic(2),
// Balance Transfer 80_000_000 + 1 Read + 1 Write
event: Event::frame_system(frame_system::RawEvent::ExtrinsicSuccess(
DispatchInfo { weight: 460_000_000, ..Default::default() }
DispatchInfo { weight: 80_000_000 + 25_000_000 + 100_000_000, ..Default::default() }
)),
topics: vec![],
},
@@ -230,7 +230,7 @@ fn submitted_transaction_should_be_valid() {
let res = Executive::validate_transaction(source, extrinsic);
assert_eq!(res.unwrap(), ValidTransaction {
priority: 1_411_390_000_000,
priority: 1_410_625_000_000,
requires: vec![],
provides: vec![(address, 0).encode()],
longevity: 128,