Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Use production instead of release #79

Merged
merged 1 commit into from
Jan 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 22 additions & 20 deletions bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,36 +52,38 @@ function BenchContext(app, config) {

//::node::import::native::sr25519::transfer_keep_alive::paritydb::small

const cargoRun = "cargo run --quiet --profile=production ";

var BenchConfigs = {
import: {
title: "Import Benchmark (random transfers)",
benchCommand:
"cargo run --quiet --release -p node-bench --quiet -- node::import::native::sr25519::transfer_keep_alive::rocksdb::medium --json",
cargoRun + "-p node-bench --quiet -- node::import::native::sr25519::transfer_keep_alive::rocksdb::medium --json",
},
"import/small": {
title: "Import Benchmark (Small block (10tx) with random transfers)",
benchCommand:
"cargo run --quiet --release -p node-bench --quiet -- node::import::native::sr25519::transfer_keep_alive::rocksdb::small --json",
cargoRun + "-p node-bench --quiet -- node::import::native::sr25519::transfer_keep_alive::rocksdb::small --json",
},
"import/large": {
title: "Import Benchmark (Large block (500tx) with random transfers)",
benchCommand:
"cargo run --quiet --release -p node-bench --quiet -- node::import::native::sr25519::transfer_keep_alive::rocksdb::large --json",
cargoRun + "-p node-bench --quiet -- node::import::native::sr25519::transfer_keep_alive::rocksdb::large --json",
},
"import/full-wasm": {
title: "Import Benchmark (Full block with wasm, for weights validation)",
benchCommand:
"cargo run --quiet --release -p node-bench --quiet -- node::import::wasm::sr25519::transfer_keep_alive::rocksdb::full --json",
cargoRun + "-p node-bench --quiet -- node::import::wasm::sr25519::transfer_keep_alive::rocksdb::full --json",
},
"import/wasm": {
title: "Import Benchmark via wasm (random transfers)",
benchCommand:
"cargo run --quiet --release -p node-bench --quiet -- node::import::wasm::sr25519::transfer_keep_alive::rocksdb::medium --json",
cargoRun + "-p node-bench --quiet -- node::import::wasm::sr25519::transfer_keep_alive::rocksdb::medium --json",
},
ed25519: {
title: "Import Benchmark (random transfers, ed25519 signed)",
benchCommand:
"cargo run --quiet --release -p node-bench --quiet -- node::import::native::ed25519::transfer_keep_alive::rocksdb::medium --json",
cargoRun + "-p node-bench --quiet -- node::import::native::ed25519::transfer_keep_alive::rocksdb::medium --json",
},
}

Expand Down Expand Up @@ -176,7 +178,7 @@ var SubstrateRuntimeBenchmarkConfigs = {
pallet: {
title: "Runtime Pallet",
benchCommand: [
"cargo run --quiet --release",
cargoRun,
"--features=runtime-benchmarks",
"--manifest-path=bin/node/cli/Cargo.toml",
"--",
Expand All @@ -196,7 +198,7 @@ var SubstrateRuntimeBenchmarkConfigs = {
substrate: {
title: "Runtime Substrate Pallet",
benchCommand: [
"cargo run --quiet --release",
cargoRun,
"--features=runtime-benchmarks",
"--manifest-path=bin/node/cli/Cargo.toml",
"--",
Expand All @@ -216,15 +218,15 @@ var SubstrateRuntimeBenchmarkConfigs = {
custom: {
title: "Runtime Custom",
benchCommand:
"cargo run --quiet --release --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark",
cargoRun + "--features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark",
},
}

var PolkadotRuntimeBenchmarkConfigs = {
pallet: {
title: "Runtime Pallet",
benchCommand: [
"cargo run --quiet --release",
cargoRun,
"--features=runtime-benchmarks",
"--",
"benchmark",
Expand All @@ -243,7 +245,7 @@ var PolkadotRuntimeBenchmarkConfigs = {
polkadot: {
title: "Runtime Polkadot Pallet",
benchCommand: [
"cargo run --quiet --release",
cargoRun,
"--features=runtime-benchmarks",
"--",
"benchmark",
Expand All @@ -262,7 +264,7 @@ var PolkadotRuntimeBenchmarkConfigs = {
kusama: {
title: "Runtime Kusama Pallet",
benchCommand: [
"cargo run --quiet --release",
cargoRun,
"--features=runtime-benchmarks",
"--",
"benchmark",
Expand All @@ -281,7 +283,7 @@ var PolkadotRuntimeBenchmarkConfigs = {
westend: {
title: "Runtime Westend Pallet",
benchCommand: [
"cargo run --quiet --release",
cargoRun,
"--features=runtime-benchmarks",
"--",
"benchmark",
Expand All @@ -300,7 +302,7 @@ var PolkadotRuntimeBenchmarkConfigs = {
rococo: {
title: "Runtime Rococo Pallet",
benchCommand: [
"cargo run --quiet --release",
cargoRun,
"--features=runtime-benchmarks",
"--",
"benchmark",
Expand All @@ -319,15 +321,15 @@ var PolkadotRuntimeBenchmarkConfigs = {
custom: {
title: "Runtime Custom",
benchCommand:
"cargo run --quiet --release --features runtime-benchmarks -- benchmark",
cargoRun + "--features runtime-benchmarks -- benchmark",
},
}

var PolkadotXcmBenchmarkConfigs = {
pallet: {
title: "XCM",
benchCommand: [
"cargo run --quiet --release",
cargoRun,
"--features=runtime-benchmarks",
"--",
"benchmark",
Expand All @@ -346,7 +348,7 @@ var PolkadotXcmBenchmarkConfigs = {
polkadot: {
title: "Polkadot XCM",
benchCommand: [
"cargo run --quiet --release",
cargoRun,
"--features=runtime-benchmarks",
"--",
"benchmark",
Expand All @@ -366,7 +368,7 @@ var PolkadotXcmBenchmarkConfigs = {
kusama: {
title: "Kusama XCM",
benchCommand: [
"cargo run --quiet --release",
cargoRun,
"--features=runtime-benchmarks",
"--",
"benchmark",
Expand All @@ -386,7 +388,7 @@ var PolkadotXcmBenchmarkConfigs = {
westend: {
title: "Westend XCM",
benchCommand: [
"cargo run --quiet --release",
cargoRun,
"--features=runtime-benchmarks",
"--",
"benchmark",
Expand All @@ -406,7 +408,7 @@ var PolkadotXcmBenchmarkConfigs = {
custom: {
title: "XCM Custom",
benchCommand:
"cargo run --quiet --release --features runtime-benchmarks -- benchmark",
cargoRun + "--features runtime-benchmarks -- benchmark",
},
}

Expand Down