Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement