Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- const impl = require('../danb/addon');
- const common = require('./benchmarker');
- const bench = common.createBenchmark(main, {
- s: ['Beunos YLDias 19'],
- iterations: (new Array(5)).fill(1000000),
- });
- function main({ s, iterations, rounds }) {
- bench.start();
- for (let i = 0; i < iterations; i++) {
- impl.rot13(s+i)
- }
- bench.end(iterations);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement