Skip to content

Commit

Permalink
fix no benchmark not working for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
doehyunbaek committed Feb 11, 2024
1 parent 81127ef commit d1591a1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/run-tests.cts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ async function runOnlineTests(names: string[], options) {
'image-convolute', // asm2wasm - f64-to-int is too large
'lichess', // failing test
'livesplit', // uses simd, filter for now
'onnxjs', // failing test
'onnxjs', // // unknown func: failed to find name `$1000008`"
'hnset-bench', // no benchmark generated
'fractals' // no benchmark generated
]
names = names.filter((n) => !filter.includes(n))
let successfull = 0;
Expand Down Expand Up @@ -333,13 +335,13 @@ async function testWebPage(testPath: string, options): Promise<TestReport> {
await benchmark.save(benchmarkPath, options)
let m = p_roundTrip()
let roundTripTime = m.duration
if (options.jsBackend != true) {
return { testPath, roundTripTime, success: true }
}
let subBenchmarkNames = await getDirectoryNames(benchmarkPath)
if (subBenchmarkNames.length === 0) {
return { testPath, roundTripTime, success: false, reason: 'no benchmark was generated' }
}
if (options.jsBackend != true) {
return { testPath, roundTripTime, success: true }
}

let runtimes = benchmark.instrumentBinaries()
// await copyDir(benchmarkPath, testBenchmarkPath)
Expand Down

0 comments on commit d1591a1

Please sign in to comment.