Skip to content

Commit

Permalink
make native scrypt testing optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Prithpal-Sooriya committed Oct 2, 2024
1 parent 2b91ea1 commit e2b965c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ const mockData = {
* @param nativeScript - native scrypt
*/
export async function runEncryptionPerfTestWithoutCache(
nativeScript: NativeScrypt,
nativeScript?: NativeScrypt,
) {
const password = 'test-password';
const plaintext = JSON.stringify(mockData);

// const testCases = [1, 10, 100, 1000];
const testCases = [1, 10];
const testCases = [1, 10, 100, 1000];
// const testCases = [1, 10];

for (const count of testCases) {
clearCache();
Expand All @@ -298,13 +298,13 @@ export async function runEncryptionPerfTestWithoutCache(
* @param nativeScript - native scrypt
*/
export async function runEncryptionPerfTestWithCache(
nativeScript: NativeScrypt,
nativeScript?: NativeScrypt,
) {
const password = 'test-password';
const plaintext = JSON.stringify(mockData);

// const testCases = [1, 10, 100, 1000];
const testCases = [1, 10];
const testCases = [1, 10, 100, 1000];
// const testCases = [1, 10];

// Something to populate cache
await encryption.encryptString(plaintext, password);
Expand Down

0 comments on commit e2b965c

Please sign in to comment.