Download for MacApple silicon, macOS 14+
Skill

ns-benchmark-run

@nodesource Updated 2026-09-16

Benchmarks one Node.js function and reports throughput/statistics. Use when the user asks to benchmark or time a single function, measure ops/sec, compare input sizes, or answer "how fast is this code?" Use ns-validate-optimization instead when original and optimized versions need an A/B proof.

Install

With your agent

Install OMGSkills skill "nodesource/nsolid-skills-plugin:skills/ns-benchmark-run" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/nodesource/nsolid-skills-plugin /tmp/nsolid-skills-plugin && ln -s /tmp/nsolid-skills-plugin/skills/ns-benchmark-run ~/.claude/skills/ns-benchmark-run

From README

Acquire the Function Code and Project Context This skill is triggered from a code-lens interaction inside the user's workspace, so the codebase is always available. Read the file the user points to and extract the target function. Inspect the surrounding module and search the workspace for: real invocation sites unit/integration tests that exercise the function fixtures, mocks, or helper builders used by those tests Treat the codebase evidence as the primary source of truth for argument shape. Prefer arguments derived from real over generic placeholder values. If you cannot find tests or call sites, say that clearly and derive the narrowest defensible benchmark inputs from the code itself. Build functionData Every benchmark call requires a functionData object.