jevstrudel.git / packages / mini / bench / mini.bench.mjs
1import { describe, bench } from 'vitest';
2
3import { calculateSteps } from '../../core/index.mjs';
4import { mini } from '../index.mjs';
5
6describe('mini', () => {
7  calculateSteps(true);
8  bench(
9    '+tactus',
10    () => {
11      mini('a b c*3 [c d e, f g] <a b [c d?]>').fast(64).firstCycle();
12    },
13    { time: 1000 },
14  );
15
16  calculateSteps(false);
17  bench(
18    '-tactus',
19    () => {
20      mini('a b c*3 [c d e, f g] <a b [c d?]>').fast(64).firstCycle();
21    },
22    { time: 1000 },
23  );
24  calculateSteps(true);
25});