Skip to content

Commit 8376c53

Browse files
committed
chore: make bench run native crypto by default
1 parent ba7fea7 commit 8376c53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/benchmarks/bench.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const ERROR = 0;
1515

1616
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
1717

18-
const { CRYPT_SHARED_LIB_PATH: cryptSharedLibPath = '', BENCH_WITH_NATIVE_CRYPTO = '' } =
18+
const { CRYPT_SHARED_LIB_PATH: cryptSharedLibPath = '', BENCH_WITHOUT_NATIVE_CRYPTO = '' } =
1919
process.env;
2020

2121
const warmupSecs = 2;
@@ -122,7 +122,7 @@ function main() {
122122
);
123123

124124
const mongoCryptOptions = { kmsProviders: BSON.serialize(kmsProviders) };
125-
if (!BENCH_WITH_NATIVE_CRYPTO) mongoCryptOptions.cryptoCallbacks = cryptoCallbacks;
125+
if (BENCH_WITHOUT_NATIVE_CRYPTO) mongoCryptOptions.cryptoCallbacks = cryptoCallbacks;
126126
if (cryptSharedLibPath) mongoCryptOptions.cryptSharedLibPath = cryptSharedLibPath;
127127

128128
const mongoCrypt = new MongoCrypt(mongoCryptOptions);

0 commit comments

Comments
 (0)