File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
bids-validator/src/schema Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff 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- } )
You can’t perform that action at this time.
0 commit comments