uawdijnntqw1x1x1
IP : 216.73.216.110
Hostname : 6.87.74.97.host.secureserver.net
Kernel : Linux 6.87.74.97.host.secureserver.net 4.18.0-553.83.1.el8_10.x86_64 #1 SMP Mon Nov 10 04:22:44 EST 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
emeraadmin
/
.spamassassin
/
..
/
public_html
/
PSCU
/
..
/
node_modules
/
..
/
4d695
/
benchmark.tar
/
/
benchmark.js000064400000001415151677361600007051 0ustar00'use strict' const Benchmark = require('benchmark') const scmp = require('../') // `safe-buffer` in case `Buffer.from` in newer versions of node aren't available const Buffer = require('safe-buffer').Buffer const HASH1 = Buffer.from('e727d1464ae12436e899a726da5b2f11d8381b26', 'hex') const HASH2 = Buffer.from('f727d1464ae12436e899a726da5b2f11d8381b26', 'hex') const suite = new Benchmark.Suite() suite.add('short-circuit compares', function () { // eslint-disable-next-line no-unused-expressions HASH1 === HASH2 }) .add('scmp compares', function () { scmp(HASH1, HASH2) }) .on('cycle', function (event) { console.log(String(event.target)) }) .on('complete', function () { console.log('Fastest is ' + this.filter('fastest').map('name')) }) .run() crypto-check.js000064400000001701151677361600007510 0ustar00'use strict' const crypto = require('crypto') const Benchmark = require('benchmark') const scmpCompare = require('../lib/scmpCompare') const compareFn = crypto.timingSafeEqual || scmpCompare // `safe-buffer` in case `Buffer.from` in newer versions of node aren't available const Buffer = require('safe-buffer').Buffer const HASH1 = Buffer.from('e727d1464ae12436e899a726da5b2f11d8381b26', 'hex') const HASH2 = Buffer.from('f727d1464ae12436e899a726da5b2f11d8381b26', 'hex') const suite = new Benchmark.Suite() suite.add('crypto check each fn call', function () { if (crypto.timingSafeEqual) { return crypto.timingSafeEqual(HASH1, HASH2) } return scmpCompare(HASH1, HASH2) }) .add('crypto check once', function () { return compareFn(HASH1, HASH2) }) .on('cycle', function (event) { console.log(String(event.target)) }) .on('complete', function () { console.log('Fastest is ' + this.filter('fastest').map('name')) }) .run()
/home/emeraadmin/.spamassassin/../public_html/PSCU/../node_modules/../4d695/benchmark.tar