const isJetStreamDriver = true;
class TextDecoder {
decode(buffer) {
return String.fromCharCode.apply(null, new Uint8Array(buffer));
}
}
function unused_import() {
throw new Error('not supported, should be an unused import');
}
var atob = unused_import;
var btoa = unused_import;
var gc = unused_import;
class Benchmark {
wasmBinary;
wasmInstanceExports;
async init() {
this.wasmBinary = await JetStream.getBinary(JetStream.preload.wasmBinary);
}
async runIteration() {
if (!this.wasmInstanceExports) {
this.wasmInstanceExports = (await instantiateAsync(this.wasmBinary)).exports;
}
const internalIterations = 5;
this.wasmInstanceExports.runFixedCount(internalIterations);
}
}