aboutsummaryrefslogtreecommitdiff
path: root/bench/snippets/sha512.js
blob: ac162dc248a7720808e55464283c9ba445da4402 (plain) (blame)
1
2
3
4
5
6
7
8
import { bench, run } from "./runner.mjs";
import { SHA512 } from "bun";

bench('SHA512.hash("hello world")', () => {
  SHA512.hash("hello world");
});

await run();