Make legacy the default
This commit is contained in:
parent
17af92b2df
commit
4a7344595d
5 changed files with 926 additions and 912 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { describe, bench } from 'vitest';
|
||||
|
||||
import { calculateSteps, rand, useOldRandom } from '../index.mjs';
|
||||
import { calculateSteps, rand, useRNG } from '../index.mjs';
|
||||
|
||||
const testingResolution = 128;
|
||||
|
||||
|
|
@ -11,13 +11,13 @@ describe('old random', () => {
|
|||
bench(
|
||||
'+tactus',
|
||||
() => {
|
||||
useOldRandom();
|
||||
useRNG('legacy');
|
||||
_generateRandomPattern();
|
||||
},
|
||||
{
|
||||
time: 1000,
|
||||
teardown() {
|
||||
useOldRandom(false);
|
||||
useRNG('legacy');
|
||||
},
|
||||
},
|
||||
);
|
||||
|
|
@ -26,13 +26,13 @@ describe('old random', () => {
|
|||
bench(
|
||||
'-tactus',
|
||||
() => {
|
||||
useOldRandom();
|
||||
useRNG('precise');
|
||||
_generateRandomPattern();
|
||||
},
|
||||
{
|
||||
time: 1000,
|
||||
teardown() {
|
||||
useOldRandom(false);
|
||||
useRNG('legacy');
|
||||
},
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue