benchmarking-pallets

Benchmark pallets and precompiles to generate weight functions for Moonbeam runtimes.

2|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/manuelmauro/moonbeam-skills --skill benchmarking-pallets
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: benchmarking-pallets
Source: https://github.com/manuelmauro/moonbeam-skills/tree/main/skills/benchmarking-pallets
Command: npx skills add https://github.com/manuelmauro/moonbeam-skills --skill benchmarking-pallets

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Benchmarks are essential to determine realistic weights for pallets and precompiles, ensuring correct block weights and accurate fee calculations.

Core Features & Use Cases

  • Pallet benchmarking to generate weight data for runtime integration
  • Precompile benchmarking to model external call costs
  • Guidance for integrating generated weights into the runtime and audits

Quick Start

Run the included benchmarking workflow to generate and update weight files for your pallets.

Frequently Asked Questions about benchmarking-pallets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I benchmark pallets to generate accurate weights for a Substrate runtime?

Benchmark pallets using frame-benchmarking to execute runtime extrinsics and measure computational costs. This generates a weights file containing accurate weight functions for runtime integration and fee calculations.

Why do I need to benchmark precompiles when updating my runtime weights?

Benchmarking precompiles models external call costs to ensure correct block weights and accurate fee calculations. This validates weight accuracy across Moonbeam runtimes when adding new extrinsics or updating weight logic.

What is the best way to integrate generated weights into a runtime after benchmarking?

After benchmarking pallets, integrate the generated weights file into your runtime by following specific guidance for runtime integration. This ensures accurate block weights and fee calculations are applied correctly.

Do I need frame-benchmarking to generate weight functions for Moonbeam pallets?

Yes, frame-benchmarking is required to benchmark pallets and precompiles for Moonbeam's runtime. A proper benchmark setup is necessary to produce a generated weights file and validate weight accuracy.

Can I use pallet benchmarking to validate weight accuracy for existing extrinsics?

Pallet benchmarking validates weight accuracy across Moonbeam runtimes by measuring execution costs of existing extrinsics. This ensures correct block weights and accurate fee calculations for runtime updates.

What limitations exist when benchmarking precompiles to model external call costs?

Benchmarking precompiles requires a proper benchmark setup to accurately model external call costs. Without correct frame-benchmarking configuration, generated weights may not reflect realistic computational costs for fee calculations.