const main = async () => { const { xxx } = await import("../gen/rust_wasm"); const arr = new Array(1000).fill(0); console.time("xxx"); arr.forEach(() => { console.log(JSON.parse(xxx("foo"))); }); console.timeEnd("xxx"); }; main(); const TextEncoder = typeof self === 'object' && self.TextEncoder ? self.TextEncoder : require('util').TextEncoder; let cachedEncoder = new TextEncoder('utf-8'); let cach