Skip to content

Commit d7a4211

Browse files
committed
add sqlite3 WasmBenchmark and fix printing (if verbose)
1 parent 662e4e0 commit d7a4211

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

JetStreamDriver.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,8 +1117,8 @@ class WasmBenchmark extends Benchmark {
11171117
let Module = {
11181118
preRun: [],
11191119
postRun: [],
1120-
print: function() { },
1121-
printErr: function() { },
1120+
print: globalObject.print,
1121+
printErr: globalObject.print,
11221122
setStatus: function(text) {
11231123
},
11241124
totalDependencies: 0,
@@ -1822,6 +1822,19 @@ const testPlans = [
18221822
benchmarkClass: WasmBenchmark,
18231823
testGroup: WasmGroup
18241824
},
1825+
{
1826+
name: "sqlite3-wasm",
1827+
files: [
1828+
"./sqlite3/polyfills.js",
1829+
"./sqlite3/build/jswasm/speedtest1.js",
1830+
"./sqlite3/runner.js",
1831+
],
1832+
preload: {
1833+
wasmBinary: "./sqlite3/build/jswasm/speedtest1.wasm"
1834+
},
1835+
benchmarkClass: WasmBenchmark,
1836+
testGroup: WasmGroup
1837+
},
18251838
{
18261839
name: "tfjs-wasm",
18271840
files: [

0 commit comments

Comments
 (0)