Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@feltmaps/benchmarking
Advanced tools
This package allows to benchmark javascript code on the browser.
Runs Benchmark
implementations and measures the time it takes to execute a single run. If that run takes less than 5ms (which is the minimum resolution of performance.now()
, see Performance.now() on MDN), we keep incrementing the number of iterations iterationsPerSample per run until it takes more than 5ms. Once that happens, we capture 210 samples via running iterationsPerSample iterations per sample
export default class FilterCreate extends Benchmark {
bench() {
findPrimes(1000);
}
}
const suite = new BenchmarkingSuite();
suite.register("Filter", "version 1", new FilterCreate());
Adding multiple benchmarks with the same name but different version will compare them in the results website
suite.register("Filter", "version 1", new FilterCreate());
suite.register("Filter", "version 2", new FilterCreate2());
suite.run();
See index.html and benchmarks.ts for website and js code examples
Results show a statistics table, a plot with various statistics (quartiles, median, mean, trimmed mean) and a regression plot.
The correlation in the table should be almost 1, if it's less than 0.99 a ⚠️ sign is shown. If correlation is less than 0.9 a ☠ sign is shown because results are not valid.
Based on Maplibre's benchmarking tool
FAQs
A benchmarking tool for JS code
The npm package @feltmaps/benchmarking receives a total of 0 weekly downloads. As such, @feltmaps/benchmarking popularity was classified as not popular.
We found that @feltmaps/benchmarking demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.