Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
621 B
Text
22 lines
621 B
Text
const { hash: hashWasm } = require('./dist/node');
|
|
const { hash: hashNative } = require('./dist/node-native');
|
|
const { createHash } = require('crypto');
|
|
|
|
[
|
|
{ size: '64B', data: Buffer.alloc(64) },
|
|
{ size: '64KB', data: Buffer.alloc(1024 * 64) },
|
|
{ size: '6MB', data: Buffer.alloc(1024 * 1024 * 6) },
|
|
].forEach(({ size, data }) =>
|
|
suite(size, () => {
|
|
['md5', 'sha1', 'sha256'].forEach(alg =>
|
|
bench(alg, () =>
|
|
createHash(alg)
|
|
.update(data)
|
|
.digest(),
|
|
),
|
|
);
|
|
|
|
bench('blake3 wasm', () => hashWasm(data));
|
|
bench('blake3 native', () => hashNative(data));
|
|
}),
|
|
);
|