Skip to content

Add benchmark to measure the ResultHandler overhead#4778

Closed
mdouze wants to merge 1 commit intofacebookresearch:mainfrom
mdouze:export-D91784507
Closed

Add benchmark to measure the ResultHandler overhead#4778
mdouze wants to merge 1 commit intofacebookresearch:mainfrom
mdouze:export-D91784507

Conversation

@mdouze
Copy link
Contributor

@mdouze mdouze commented Jan 29, 2026

Summary:
There seems to be a performance regression in Faiss after the ResultHandler's introduction.
This test attemtps to reproduce it.

Differential Revision: D91784507

@meta-cla meta-cla bot added the CLA Signed label Jan 29, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Jan 29, 2026

@mdouze has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91784507.

mdouze added a commit to mdouze/faiss that referenced this pull request Jan 30, 2026
…#4778)

Summary:

There seems to be a performance regression in Faiss after the ResultHandler's introduction.
This test attemtps to reproduce it.

It is difficult to run fine-grained benchmarks on devservers (when trying to spot a 1% regression), but here are the results: 

before inlined scanner: P2154463854
after inlined scanner: P2154465531

Especially very fast distance computations (like Flat with small dimensions) clearly benefit from it.

Reviewed By: junjieqi

Differential Revision: D91784507
…#4778)

Summary:

There seems to be a performance regression in Faiss after the ResultHandler's introduction.
This test attemtps to reproduce it.

It is difficult to run fine-grained benchmarks on devservers (when trying to spot a 1% regression), but here are the results: 

before inlined scanner: P2154463854
after inlined scanner: P2154465531

Especially very fast distance computations (like Flat with small dimensions) clearly benefit from it.

Reviewed By: junjieqi

Differential Revision: D91784507
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Feb 3, 2026

This pull request has been merged in 4e4c4c7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants