
Product
Introducing Socket Scanning for VS Code Marketplace Extensions
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@memofs/benchmark-kit
Advanced tools
@memofs/benchmark-kitBenchmark kit, workloads, and runners for MemoFS.
Benchmark kit, workloads, and runners for MemoFS. A standardized framework for measuring the performance of embedders, rerankers, memory stores, and recall stores across different providers and adapters. Suites are plain objects, the runner executes them, statistics and threshold evaluation are named functions, and reporters are pure serialization functions.
npm install @memofs/benchmark-kit
Requires Node.js >= 22.
import {
createBenchmarkSuite,
BenchmarkRunner,
jsonBenchmarkReport,
evaluateBenchmarkThresholds,
} from "@memofs/benchmark-kit";
import { createEmbedderWorkloads } from "@memofs/benchmark-kit/workloads";
import { createOpenAIEmbedder } from "@memofs/adapter-openai";
const openai = createOpenAIEmbedder({
apiKey: process.env.OPENAI_API_KEY!,
model: "text-embedding-3-large",
});
const suite = createBenchmarkSuite({
name: "embedder-smoke",
cases: [
createEmbedderWorkloads({
name: "openai-text-embedding-3-large",
embedder: openai,
texts: ["memoize a function", "what is a transformer"],
iterations: 10,
warmupIterations: 2,
}),
],
});
const runner = new BenchmarkRunner();
const result = await runner.runSuite(suite);
console.log(jsonBenchmarkReport(result));
const verdict = evaluateBenchmarkThresholds(result, { maxMeanMs: 50, maxP95Ms: 80 });
if (!verdict.ok) {
for (const f of verdict.failures) {
console.error(`${f.caseName}: ${f.metric} expected ${f.expected}, got ${f.actual}`);
}
}
| Subpath | Contents |
|---|---|
@memofs/benchmark-kit | createBenchmarkSuite, BenchmarkRunner, jsonBenchmarkReport, markdownBenchmarkReport, evaluateBenchmarkThresholds, mean, percentile, summarizeIterations, SeededRandom, error types |
@memofs/benchmark-kit/workloads | createEmbedderWorkloads, createRerankWorkloads, createRecallWorkloads, createMemoryStoreWorkloads, defineWorkload, and the per-operation createXxxBenchmarkCase factories |
@memofs/benchmark-kit/fakes | Re-exports the fakes from @memofs/testing/fakes for use inside benchmark setup |
For the full API surface, a comparison of suites vs. runners, and a guide to writing custom workloads, please refer to the Full Documentation.
See our central Contributing Guide and development scripts for details on formatting, linting, and testing within the monorepo.
MIT
FAQs
Reusable benchmark workloads, runners, and reporters for MemoFS.
The npm package @memofs/benchmark-kit receives a total of 11 weekly downloads. As such, @memofs/benchmark-kit popularity was classified as not popular.
We found that @memofs/benchmark-kit 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.

Product
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Research
/Security News
Socket uncovered two malicious VS Code themes in a GlassWorm-linked cluster with thousands of installs across VS Code Marketplace and Open VSX.

Security News
/Company News
Capital One is partnering with Socket to proactively secure its open source supply chain.