import { test } from '../lore-program.js';

test();

import { test } from '../lore-program.js';

function toMus(before, after) {
  return Math.round((after - before) * 1000);
}

const before = performance.now();
test();
const after = performance.now();
console.log('Running test took ~' + toMus(before, after) + 'µs.');

Add standard timing for test runs.
Add standard timing for test runs.

I'm trying not to optimize every single Lore program I write, but I like
to at least have some overview of the general speed of different
programs.
