Skip to content

Commit 5922fcf

Browse files
committed
fix(cost-models): use Nop*o pattern for overhead calculation in JS
Match R's models.R which uses Opaque (Nop*o) benchmarks for overhead calculation. The JS visualization was incorrectly using Nop*b pattern.
1 parent baf0499 commit 5922fcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/cost-models/shared/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ function filterByFunction(parsedData, functionName) {
5252
function calculateOverhead(parsedData) {
5353
const overheadMap = {};
5454

55-
// Match Nop functions: Nop1b, Nop2b, Nop3b, etc.
56-
const nopPattern = /^Nop(\d+)b$/;
55+
// Match Nop functions: Nop1o, Nop2o, Nop3o, etc. (Opaque args, matching R's models.R)
56+
const nopPattern = /^Nop(\d+)o$/;
5757

5858
for (const row of parsedData) {
5959
const match = row.function.match(nopPattern);

0 commit comments

Comments
 (0)