Registry / devops / tank.bench-profile-compiler

tank.bench-profile-compiler

JSON →
library2.3.3jsnpmunverified

Compiler for Tank.bench-profiles, part of MixBytes.Tank toolset for testing blockchain performance. Stable version 2.3.3. Converts bench profiles into formats consumable by Tank.bench-common. Released as needed; no cadence documented. Differentiator: specialized for blockchain performance profiles within the Tank ecosystem.

npm install tank.bench-profile-compiler
INSTALL
IMPORT
SIG · TANK.BENCH-PROFILE
T
tank.bench-profile-compiler
devopsjavascriptv2.3.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
✓ import compiler from 'tank.bench-profile-compiler'
✗ const compiler = require('tank.bench-profile-compiler')
ESM-only since v2. Use import syntax.
compile
✓ import { compile } from 'tank.bench-profile-compiler'
✗ const { compile } = require('tank.bench-profile-compiler')
CommonJS require() fails with named export before v2. Use import.
compile (CLI)
✓ npx bpc <folder>
✗ npc bpc <folder>
CLI command is 'bpc', not 'compile'.

Compiles all profiles in the specified folder using the CLI tool.

npx bpc ./profiles
Debug
Known issues
breakingv2.0.0 switched from CommonJS to ESM module system. Import syntax changed.
fix
Change require() to import statements.
affects: >=2.0.0
deprecatedCLI argument order changed; old syntax 'bpc <folder>' is deprecated in favor of 'bpc --output <folder>'.
fix
Use 'npx bpc --output ./profiles'.
affects: >=1.5.0
gotchaCompiled profiles are not backward compatible with Tank.bench-common <2.0.0.
fix
Ensure Tank.bench-common version matches compiler version.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'tank.bench-profile-compiler'
Not installed globally or locally.
fix
Run 'npm install tank.bench-profile-compiler' in project directory or install globally.
SyntaxError: Unexpected token 'export'
Using CommonJS require() with ESM-only package.
fix
Replace require() with import syntax.
TypeError: bpc is not a function
Attempting to import default as a function incorrectly.
fix
Use 'import compiler from 'tank.bench-profile-compiler'' and then call compiler() properly.
Upgrade
Version history
2.3.3latest on npm
Audit
Dependencies
tank.bench-commonrequiredruntime dependency for compiled profiles
Agent activity
25 hits · last 30 days
node
24
Resources
tank.bench-profile-compiler — npm install tank.bench-profile-compiler · libregistry