SAP-BTP-Spielwiese/app1/node_modules/scmp/benchmark/benchmark.js
Markus Rettig 775ac7b58c completed step 3 from the tutorial
you must login with an BTP account in order to see the app
2024-02-08 16:13:36 +01:00

15 lines
326 B
JavaScript

var scmp = require('../');
suite('scmp', function() {
var HASH1 = 'e727d1464ae12436e899a726da5b2f11d8381b26';
var HASH2 = 'f727d1464ae12436e899a726da5b2f11d8381b26';
bench('short-circuit compares', function() {
HASH1 === HASH2;
});
bench('scmp compares', function() {
scmp(HASH1, HASH2);
});
});