@@ -416,30 +416,29 @@ function ComparePerformanceWithData(props: {
416416 const rows = useMemo ( ( ) => {
417417 hasCacheHitMismatch . current = false ;
418418 return Array . from ( nameSet )
419- . map ( ( name ) => {
420- const before = from . getTupleCountInfo ( name ) ;
421- const after = to . getTupleCountInfo ( name ) ;
422- const beforeValue = metric . get ( before ) ;
423- const afterValue = metric . get ( after ) ;
424- if ( beforeValue === afterValue ) {
419+ . map ( ( name ) => {
420+ const before = from . getTupleCountInfo ( name ) ;
421+ const after = to . getTupleCountInfo ( name ) ;
422+ const beforeValue = metric . get ( before ) ;
423+ const afterValue = metric . get ( after ) ;
424+ if ( beforeValue === afterValue ) {
425+ return undefined ! ;
426+ }
427+ if (
428+ before . absentReason === AbsentReason . CacheHit ||
429+ after . absentReason === AbsentReason . CacheHit
430+ ) {
431+ hasCacheHitMismatch . current = true ;
432+ if ( hideCacheHits ) {
425433 return undefined ! ;
426434 }
427- if (
428- before . absentReason === AbsentReason . CacheHit ||
429- after . absentReason === AbsentReason . CacheHit
430- ) {
431- hasCacheHitMismatch . current = true ;
432- if ( hideCacheHits ) {
433- return undefined ! ;
434- }
435- }
436- const diff = afterValue - beforeValue ;
437- return { name, before, after, diff } ;
438- } )
439- . filter ( ( x ) => ! ! x )
440- . sort ( getSortOrder ( sortOrder ) ) ,
441- [ nameSet , from , to , metric , hideCacheHits , sortOrder ] ,
442- ) ;
435+ }
436+ const diff = afterValue - beforeValue ;
437+ return { name, before, after, diff } ;
438+ } )
439+ . filter ( ( x ) => ! ! x )
440+ . sort ( getSortOrder ( sortOrder ) ) ;
441+ } , [ nameSet , from , to , metric , hideCacheHits , sortOrder ] ) ;
443442
444443 const { totalBefore, totalAfter, totalDiff } = useMemo ( ( ) => {
445444 let totalBefore = 0 ;
0 commit comments