Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@dxos/benchmark-suite
Advanced tools
Suite to benchmark things.
$ npm install @dxos/benchmark-suite
import { Suite } from '@wirelineio/benchmark-suite';
const suite = new Suite();
// prepare your tests
suite.beforeAll(() => {
// Set an optional context data that will be shared across each benchmark test
suite.setContext({
list: [...Array(10000).keys()]
});
});
suite.test('forEach', () => {
const { list } = suite.context;
list.forEach(() => {});
});
suite.test('for-of', () => {
const { list } = suite.context;
for (const i of list) {}
});
const results = await suite.run();
suite.print(results);
Prints:
# forEach
ok ~294 μs (0 s + 293701 ns)
# for-of
ok ~498 μs (0 s + 498171 ns)
wins: forEach
ok ~2.45 ms (0 s + 2449887 ns)
PRs accepted.
GPL-3.0 © dxos
FAQs
Benchmark suite.
The npm package @dxos/benchmark-suite receives a total of 1 weekly downloads. As such, @dxos/benchmark-suite popularity was classified as not popular.
We found that @dxos/benchmark-suite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.