Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Use headers on weight templates #12546

Merged
merged 1 commit into from
Oct 21, 2022
Merged
Show file tree
Hide file tree
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
18 changes: 1 addition & 17 deletions .maintain/frame-weight-template.hbs
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
// This file is part of Substrate.

// Copyright (C) 2022 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

{{header}}
//! Autogenerated weights for {{pallet}}
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}}
Expand Down
2 changes: 2 additions & 0 deletions scripts/run_all_benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ for PALLET in "${PALLETS[@]}"; do
--wasm-execution=compiled \
--heap-pages=4096 \
--output="$WEIGHT_FILE" \
--header="./HEADER-APACHE2" \
--template=./.maintain/frame-weight-template.hbs 2>&1
)
if [ $? -ne 0 ]; then
Expand All @@ -137,6 +138,7 @@ OUTPUT=$(
--execution=wasm \
--wasm-execution=compiled \
--weight-path="./frame/support/src/weights/" \
--header="./HEADER-APACHE2" \
--warmup=10 \
--repeat=100 2>&1
)
Expand Down