SHARE
TWEET

Untitled

a guest Oct 20th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict';
  2.  
  3. const impl = require('../danb/addon');
  4. const common = require('./benchmarker');
  5.  
  6. const bench = common.createBenchmark(main, {
  7.   s: ['Beunos YLDias 19'],
  8.   iterations: (new Array(5)).fill(1000000),
  9. });
  10.  
  11. function main({ s, iterations, rounds }) {
  12.   bench.start();
  13.   for (let i = 0; i < iterations; i++) {
  14.     impl.rot13(s+i)
  15.   }
  16.   bench.end(iterations);
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top