o1js
Version:
TypeScript framework for zk-SNARKs and zkApps
12 lines (8 loc) • 320 B
text/typescript
let start = performance.now();
let { initializeBindings } = await import('o1js');
let time = performance.now() - start;
console.log(`import o1js: ${time.toFixed(0)}ms`);
start = performance.now();
await initializeBindings();
time = performance.now() - start;
console.log(`initialize bindings: ${time.toFixed(0)}ms`);