New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bench-node

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bench-node - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

t.js

2

examples/html/node.js

@@ -16,3 +16,3 @@ const { Suite, htmlReport } = require('../../lib');

})
.add('multiple replaces', function () {
.add('Multiple replaces', function () {
const subject = '123123123123123123123123123123123123123123123123'

@@ -19,0 +19,0 @@ const r = subject.replace(/1/g, 'a').replace(/2/g, 'b').replace(/3/g, 'c')

@@ -19,3 +19,3 @@ const fs = require('node:fs');

let position = 20;
const colors = ['green', 'blue', 'cyan', 'pink', 'grey', 'purple', 'red']
const colors = ['blue', 'orange', 'yellow', 'purple', 'black', 'grey', 'red', 'green', 'pink', 'cyan'];
for (const d of durations) {

@@ -22,0 +22,0 @@ css += `

{
"name": "bench-node",
"version": "0.4.0",
"version": "0.4.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -77,3 +77,3 @@ const { describe, it, before } = require('node:test');

})
.add('multiple replaces', function () {
.add('Multiple replaces', function () {
const subject = '123123123123123123123123123123123123123123123123'

@@ -101,2 +101,7 @@ const r = subject.replace(/1/g, 'a').replace(/2/g, 'b').replace(/3/g, 'c')

it('htmlContent bench suite should be used as class name', () => {
assert.ok(htmlContent.includes('circle-Multiple-replaces'));
assert.ok(htmlContent.includes('circle-single-with-matcher'));
});
it('htmlContent should not contain replace tags {{}}', () => {

@@ -103,0 +108,0 @@ assert.ok(htmlContent.includes('{{') === false);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc