Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bench/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,8 @@ export async function testRunner(options: TestRunnerOptions) {
);
}

const duration = Date.now() - startTime;
// Use the original cached duration, not the time to retrieve from cache
const duration = testRun.reuseFrom.duration || 0;
const reused = testRun.reuseFrom;
const text = reused.text;
const correct = isCorrect({
Expand Down Expand Up @@ -912,7 +913,8 @@ export async function testRunner(options: TestRunnerOptions) {
);
}

const duration = Date.now() - startTime;
// Use the original cached duration, not the time to retrieve from cache
const duration = r.duration || 0;
const text = r.text;
const correct = isCorrect({
answers: testRun.answers,
Expand Down