
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@holoscript/benchmark
Advanced tools
Performance benchmarking suite for HoloScript parser, type checker, formatter, and LSP
Performance benchmarking suite for HoloScript parser, type checker, formatter, and LSP.
npm install @holoscript/benchmark
# All suites
npm run bench:all
# Individual suites
npm run bench:parser
npm run bench:compiler
npm run bench:typechecker
npm run bench:formatter
# CI mode (JSON output)
npm run bench:ci
Measures full and incremental parse performance across fixture sizes:
import { runParserBench } from '@holoscript/benchmark';
const bench = await runParserBench();
// Benchmarks: parse-small, parse-medium, parse-large
// Benchmarks: incremental-small-single-edit, incremental-medium-single-edit, incremental-large-single-edit
Measures compilation, incremental recompilation, trait diffing, and cache serialization:
import { runCompilerBench } from '@holoscript/benchmark';
const bench = await runCompilerBench();
// Benchmarks: compile-full-*, compile-incremental-*, diff-trait-config-*
// Benchmarks: recompilation-set-*, cache-serialize, cache-deserialize
Measures full-file and range formatting:
import { runFormatterBench } from '@holoscript/benchmark';
const bench = await runFormatterBench();
// Benchmarks: format-small, format-medium, format-large
// Benchmarks: format-range-small, format-range-medium
Measures type checking with and without trait validation:
import { runTypeCheckerBench } from '@holoscript/benchmark';
const bench = await runTypeCheckerBench();
// Benchmarks: typecheck-small, typecheck-medium, typecheck-with-trait-validation-small
Compare results against a baseline to catch performance regressions:
# Save baseline
npm run bench:ci > baseline.json
# Compare against baseline
npm run bench -- --compare=baseline.json
import { extractResults, detectRegressions } from '@holoscript/benchmark';
const current = extractResults(bench, 'parser');
const report = detectRegressions(current, baseline, 0.1); // 10% threshold
import { calculateMetrics, compareMetrics, formatMetrics } from '@holoscript/benchmark';
const metrics = calculateMetrics(task);
console.log(formatMetrics(metrics));
// "parse-small: 12,345 ops/sec (0.081ms/op)"
const regression = compareMetrics(baseline, current, 0.05);
if (regression.isRegression) {
console.warn(`${regression.metric} regressed by ${regression.percentChange}%`);
}
Test fixtures in fixtures/:
| File | Description |
|---|---|
small.hsplus | Small scene (1 template, 2 objects) |
medium.hsplus | Medium scene (2 templates, grid layout) |
large.hsplus | Large scene (multiple templates, complex traits) |
BenchmarkResult - Individual benchmark resultSuiteResults - Results for a suiteAllResults - Complete benchmark runBenchmarkMetrics - Calculated metrics (hz, period, samples, stdDev)PerformanceRegression - Regression analysis resultMIT
FAQs
Performance benchmarking suite for HoloScript parser, type checker, formatter, and LSP
The npm package @holoscript/benchmark receives a total of 8 weekly downloads. As such, @holoscript/benchmark popularity was classified as not popular.
We found that @holoscript/benchmark demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.