mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 14:26:58 -04:00
e47d67a9da
* tactus-oriented benchmarks * add benchmarks for individual example tunes
26 lines
521 B
JavaScript
26 lines
521 B
JavaScript
import { describe, bench } from 'vitest';
|
|
|
|
import { calculateTactus } from '../../core/index.mjs';
|
|
import { mini } from '../index.mjs';
|
|
|
|
describe('mini', () => {
|
|
calculateTactus(true);
|
|
bench(
|
|
'+tactus',
|
|
() => {
|
|
mini('a b c*3 [c d e, f g] <a b [c d?]>').fast(64).firstCycle();
|
|
},
|
|
{ time: 1000 },
|
|
);
|
|
|
|
calculateTactus(false);
|
|
bench(
|
|
'-tactus',
|
|
() => {
|
|
mini('a b c*3 [c d e, f g] <a b [c d?]>').fast(64).firstCycle();
|
|
},
|
|
{ time: 1000 },
|
|
);
|
|
calculateTactus(true);
|
|
});
|