{"id":42063,"library":"tank.bench-profile-compiler","title":"Tank.bench-profile-compiler","description":"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.","status":"active","version":"2.3.3","language":"javascript","source_language":"en","source_url":"https://github.com/mixbytes/tank.bench-profile-compiler","tags":["javascript"],"install":[{"cmd":"npm install tank.bench-profile-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add tank.bench-profile-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add tank.bench-profile-compiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"runtime dependency for compiled profiles","package":"tank.bench-common","optional":false}],"imports":[{"note":"ESM-only since v2. Use import syntax.","wrong":"const compiler = require('tank.bench-profile-compiler')","symbol":"default","correct":"import compiler from 'tank.bench-profile-compiler'"},{"note":"CommonJS require() fails with named export before v2. Use import.","wrong":"const { compile } = require('tank.bench-profile-compiler')","symbol":"compile","correct":"import { compile } from 'tank.bench-profile-compiler'"},{"note":"CLI command is 'bpc', not 'compile'.","wrong":"npc bpc <folder>","symbol":"compile (CLI)","correct":"npx bpc <folder>"}],"quickstart":{"code":"npx bpc ./profiles","lang":"typescript","description":"Compiles all profiles in the specified folder using the CLI tool."},"warnings":[{"fix":"Change require() to import statements.","message":"v2.0.0 switched from CommonJS to ESM module system. Import syntax changed.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use 'npx bpc --output ./profiles'.","message":"CLI argument order changed; old syntax 'bpc <folder>' is deprecated in favor of 'bpc --output <folder>'.","severity":"deprecated","affected_versions":">=1.5.0"},{"fix":"Ensure Tank.bench-common version matches compiler version.","message":"Compiled profiles are not backward compatible with Tank.bench-common <2.0.0.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'2.3.3':19 'bench':21 'blockchain':15,38 'cadenc':33 'common':28 'compil':4,5 'consum':25 'convert':20 'differenti':35 'document':34 'ecosystem':44 'format':24 'javascript':45 'mixbytes.tank':11 'need':31 'part':9 'perform':16,39 'profil':3,8,22,40 'profile-compil':2 'releas':29 'special':36 'stabl':17 'tank':43 'tank.bench':1,7,27 'test':14 'toolset':12 'version':18 'within':41","created_at":"2026-06-04T18:55:26.487348+00:00","updated_at":"2026-06-04T18:55:26.487348+00:00","problems":[{"fix":"Run 'npm install tank.bench-profile-compiler' in project directory or install globally.","cause":"Not installed globally or locally.","error":"Error: Cannot find module 'tank.bench-profile-compiler'"},{"fix":"Replace require() with import syntax.","cause":"Using CommonJS require() with ESM-only package.","error":"SyntaxError: Unexpected token 'export'"},{"fix":"Use 'import compiler from 'tank.bench-profile-compiler'' and then call compiler() properly.","cause":"Attempting to import default as a function incorrectly.","error":"TypeError: bpc is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/mixbytes/tank.bench-profile-compiler#readme","github":"https://github.com/mixbytes/tank.bench-profile-compiler","docs":null,"changelog":null,"pypi":null,"npm":"tank.bench-profile-compiler","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}