motoko-benchmarks-generation
Motoko Benchmarks with bench‑helper
What This Is
bench-helper is a tiny Motoko library that standardizes how to write benchmarks.
You describe a benchmark using a small schema (name, rows, cols), provide a run(row, col)
function, and return a versioned bench record. Each file under bench/*.bench.mo defines one
benchmark module. A runner can then discover and execute all benches consistently.
Prerequisites
mops.toml (add dependencies and toolchain)
If you already have a mops.toml, just add bench-helper under [dev-dependencies].
If your project still uses mo:base instead of mo:core, you can keep it — benches themselves can be written with
mo:base without affecting your runtime canisters.
Directory & File Conventions
More from research-ag/motoko-skills
motoko-core-code-improvements
Optional, modular cleanups and style improvements to apply on new mo:core projects (or after mo:core migration). Covers import ordering, unused import cleanup, and single‑expression return removal, with detection checks and automation recipes.
33motoko-general-style-guidelines
Load when working with contents in *.mo files
32motoko-performance-optimizations
General performance optimization techniques for Motoko. Reducing allocations, efficient Text building, fixed-width arithmetic, block processing, async patterns, and more. Load when you need to improve hot paths or reduce overhead without changing behavior.
31motoko-dot-notation-migration
Use new dot-notation syntax in projects with mo:core dependency
31motoko-base-to-core-migration
Complete, AI-ready playbook to migrate Motoko projects from mo:base to mo:core — phases, renames, data structure changes, agent strategy, verification scripts, upgrade tests, and production rollout.
27motoko-compiler-warnings-fixes
Guidelines for fixing Motoko compiler warnings (moc). Use when asked to fix, suppress, or clean up Motoko compiler warnings from `dfx build --check`.
23