Skip to content

Commit 4c15670

Browse files
authored
Merge pull request #2120 from rwblair/master
bump schema package version
2 parents 690a34a + 22b9dd3 commit 4c15670

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

bids-validator/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"imports": {
3030
"@ajv": "npm:ajv@8.16.0",
31-
"@bids/schema": "jsr:@bids/schema@0.11.2-dev.2+7f1f6737",
31+
"@bids/schema": "jsr:@bids/schema@0.11.2",
3232
"@cliffy/command": "jsr:@cliffy/command@1.0.0-rc.5",
3333
"@cliffy/table": "jsr:@cliffy/table@1.0.0-rc.5",
3434
"@hed/validator": "npm:hed-validator@3.15.4",

bids-validator/src/schema/entities.test.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,3 @@ Deno.test('test readEntities', async (t) => {
7070
})
7171
})
7272
})
73-
74-
Deno.test('test readEntities performance', (t) => {
75-
const generateStart = performance.now()
76-
const testFilenames = []
77-
for (let n = 0; n < 200000; n++) {
78-
testFilenames.push(generateBIDSFilename(Math.floor(Math.random() * 4)))
79-
}
80-
const generateEnd = performance.now()
81-
const normalizePerf = generateEnd - generateStart
82-
83-
const start = performance.now()
84-
for (const each of testFilenames) {
85-
readEntities(each)
86-
}
87-
const end = performance.now()
88-
const readEntitiesTime = end - start
89-
90-
const perfRatio = readEntitiesTime / normalizePerf + Number.EPSILON
91-
const message = `readEntities() runtime ratio: ${perfRatio.toFixed(2)}`
92-
console.log(message)
93-
assert(perfRatio < 2, message)
94-
})

0 commit comments

Comments
 (0)