Adjust internal character maps to operate on Uint8Array (#1685)

* Adjust internal character maps to operate on Uint8Array

* Use Uint8Array

* Actual perf testing

* Rename perf exports

* Expose specs in own tsconfig (circular)
This commit is contained in:
Jaco
2023-01-26 10:05:15 +02:00
committed by GitHub
parent 45e2a560a9
commit f2afcfc1a7
53 changed files with 112 additions and 63 deletions
@@ -3,7 +3,7 @@
import { waitReady } from '@polkadot/wasm-crypto';
import { performanceWasm } from '../test/performance';
import { perfWasm } from '../test';
import { DEFAULT_PARAMS } from './defaults';
import { scryptEncode } from '.';
@@ -30,7 +30,7 @@ describe('scryptEncode', (): void => {
});
});
performanceWasm('scryptEncode', 4, (input, onlyJs) =>
perfWasm('scryptEncode', 4, (input, onlyJs) =>
scryptEncode(input, input, undefined, onlyJs)
);
});