mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
26 lines
517 B
JavaScript
26 lines
517 B
JavaScript
import { describe, bench } from 'vitest';
|
|
|
|
import { calculateSteps } from '../../core/index.mjs';
|
|
import { mini } from '../index.mjs';
|
|
|
|
describe('mini', () => {
|
|
calculateSteps(true);
|
|
bench(
|
|
'+tactus',
|
|
() => {
|
|
mini('a b c*3 [c d e, f g] <a b [c d?]>').fast(64).firstCycle();
|
|
},
|
|
{ time: 1000 },
|
|
);
|
|
|
|
calculateSteps(false);
|
|
bench(
|
|
'-tactus',
|
|
() => {
|
|
mini('a b c*3 [c d e, f g] <a b [c d?]>').fast(64).firstCycle();
|
|
},
|
|
{ time: 1000 },
|
|
);
|
|
calculateSteps(true);
|
|
});
|