File tree Expand file tree Collapse file tree 2 files changed +1
-23
lines changed Expand file tree Collapse file tree 2 files changed +1
-23
lines changed Original file line number Diff line number Diff line change 28
28
},
29
29
"imports" : {
30
30
"@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" ,
32
32
"@cliffy/command" : " jsr:@cliffy/command@1.0.0-rc.5" ,
33
33
"@cliffy/table" : " jsr:@cliffy/table@1.0.0-rc.5" ,
34
34
"@hed/validator" : " npm:hed-validator@3.15.4" ,
Original file line number Diff line number Diff line change @@ -70,25 +70,3 @@ Deno.test('test readEntities', async (t) => {
70
70
} )
71
71
} )
72
72
} )
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
- } )
You can’t perform that action at this time.
0 commit comments