blob: 96b6d6b8401a46aa3f55770fbda6edcd106e8f7d [file] [log] [blame]
// node standalone version of the benchmark for local testing.
import { renderTest } from "./src/react-render-test.cjs";
console.log("Starting TypeScript in-memory compilation benchmark...");
const startTime = performance.now();
renderTest();
const endTime = performance.now();
const duration = (endTime - startTime) / 1000;
console.log(`TypeScript compilation finished.`);
console.log(`Compilation took ${duration.toFixed(2)} seconds.`);