Skip to content

Speed up slow tests #15212

@msokolov

Description

@msokolov

Description

The goal should be tests that run in < 1 second.

We've got some that are consistently slow:

  166.32s TestRescoreTopNQuery.testLateInteractionQuery (:lucene:core)
  50.10s TestFullPrecisionFloatVectorSimilarityValuesSource.testFullPrecisionVectorSimilarityDVS (:lucene:core)
  39.02s TestPriorityQueue.testRemovalsAndInsertions (:lucene:core)
  23.61s TestIndexOrDocValuesQuery.testUseIndexForSelectiveMultiValueQueries (:lucene:core)
  16.98s TestIndexedDISI.testRandom (:lucene:core)
  12.86s TestLateInteractionRescorer.testMissingLateIValues (:lucene:core)
  10.10s TestBlockMaxConjunction.testRandom (:lucene:core)
   8.98s TestIndexWriterExceptions.testRandomExceptions (:lucene:core)
   7.91s TestTermInSetQuery.testDuel (:lucene:core)
   7.22s TestLateInteractionFloatValuesSource.testValues (:lucene:core)

some (like TestIndexedDISI.testRandom) are just occasionally slow, but the others on this list seem to consistently show up as the worst offenders

Gradle command to reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions