Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KCORES/vector-db-bench
/ functions
Functions
1,571 in github.com/KCORES/vector-db-bench
⨍
Functions
1,571
◇
Types & classes
868
↓ 4 callers
Function
write_fvecs
Write vectors in fvecs binary format.
scripts/test_convert_data.py:22
↓ 3 callers
Function
add_to_leaderboard
Load existing leaderboard (or start empty), add an entry, sort, save, and return.
agent/src/evaluator.rs:61
↓ 3 callers
Function
allocate_port
Allocate a random available port by binding to port 0 and reading the OS-assigned port.
agent/src/bench_tools.rs:147
↓ 3 callers
Function
build_project
Build the project with `cargo build --release`. Tries an incremental build first. If it fails (e.g. stale/permission-broken artifacts), runs `cargo c
agent/src/bench_tools.rs:166
↓ 3 callers
Method
consider
(&mut self, id: u64, dist: f32)
leaderboard/gpt-5.2-codex-preview-turn-1/src/db.rs:38
↓ 3 callers
Function
convert_ground_truth
Convert ground truth neighbor IDs to JSON format. Output format per entry: {"query_id": <int>, "neighbors": [<int>, ...]} Args: vect
scripts/convert_data.py:212
↓ 3 callers
Function
create_mock_benchmark_binary
Compile a tiny Rust program with `rustc` that prints fixed benchmark JSON to stdout and exits 0. Returns the path to the compiled binary.
agent/src/bench_tools.rs:1357
↓ 3 callers
Function
create_mock_data
Create minimal stub data files that the benchmark flow expects.
agent/src/bench_tools.rs:1410
↓ 3 callers
Function
find_base_vectors
Discover the base vectors file, handling both single-file and sharded layouts. - If `{data_dir}/base_vectors.json` exists, returns its path directly.
agent/src/bench_tools.rs:427
↓ 3 callers
Method
insert
(&self, id: u64, vector: Vec<f32>)
leaderboard/gpt-5.2-codex-preview-turn-3/src/db.rs:33
↓ 3 callers
Method
insert
(&self, id: u64, vector: Vec<f32>)
leaderboard/gpt-5.2-codex-preview-turn-3/src_best_qps/db.rs:31
↓ 3 callers
Function
l2_distance
(a: &[f32], b: &[f32])
leaderboard/claude-sonnet-4.5-turn-1/src/distance.rs:78
↓ 3 callers
Function
l2_distance
(a: &[f32], b: &[f32])
leaderboard/claude-sonnet-4.5-turn-1/src_best_qps/distance.rs:78
↓ 3 callers
Function
l2_distance_avx512_inner
(a: &[f32], b: &[f32])
leaderboard/claude-opus-4.6-turn-3/src/distance.rs:13
↓ 3 callers
Function
l2_distance_avx512_inner
(a: &[f32], b: &[f32])
leaderboard/claude-opus-4.6-turn-3/src_best_qps/distance.rs:13
↓ 3 callers
Function
l2_distance_f32
(a: &[f32], b: &[f32])
leaderboard/gpt-5.2-codex-preview-turn-1/src/distance.rs:9
↓ 3 callers
Function
l2_distance_fast
(a: &[f32], b: &[f32])
leaderboard/claude-opus-4.6-turn-3/src/distance.rs:64
↓ 3 callers
Function
l2_distance_fast
(a: &[f32], b: &[f32])
leaderboard/claude-opus-4.6-turn-3/src_best_qps/distance.rs:64
↓ 3 callers
Function
l2_distance_scalar_ptr
(a: *const f32, b: *const f32)
leaderboard/gpt-5.2-codex-preview-turn-2/src/distance.rs:53
↓ 3 callers
Function
l2_distance_scalar_ptr
(a: *const f32, b: *const f32)
leaderboard/gpt-5.2-codex-preview-turn-2/src_best_qps/distance.rs:53
↓ 3 callers
Function
l2_squared_distance_f32
(a: &[f32], b: &[f32])
leaderboard/deepseek-v3.2-preview-turn-1/src/distance.rs:48
↓ 3 callers
Function
load_session_context
Try to load a previously saved session context. Returns `None` if the file doesn't exist or can't be parsed.
agent/src/main.rs:510
↓ 3 callers
Method
log_error
Log an error event.
agent/src/logger.rs:208
↓ 3 callers
Method
log_session_start
Log session start.
agent/src/logger.rs:115
↓ 3 callers
Function
next_round_number
Get the next round number by scanning existing files in a directory.
agent/src/bench_tools.rs:47
↓ 3 callers
Method
partial_cmp
(&self, other: &Self)
leaderboard/kimi-k2.5-turn-1/src/db.rs:28
↓ 3 callers
Method
partial_cmp
(&self, other: &Self)
leaderboard/gpt-5.3-codex-preview-turn-3/src_best_qps/db.rs:47
↓ 3 callers
Method
partial_cmp
(&self, other: &Self)
leaderboard/gemini-3-pro-preview-turn-3/src_best_qps/db.rs:40
↓ 3 callers
Method
partial_cmp
(&self, other: &Self)
leaderboard/gpt-5.3-codex-preview-turn-2/src/db.rs:40
↓ 3 callers
Method
partial_cmp
(&self, other: &Self)
leaderboard/gpt-5.3-codex-preview-turn-2/src_best_qps/db.rs:40
↓ 3 callers
Function
run_correctness_test
Run a correctness test by executing the benchmark with a small query subset. Runs the benchmark client in a lightweight mode and checks whether the r
agent/src/bench_tools.rs:938
↓ 3 callers
Function
run_profiling
Run performance profiling on the skeleton server process. Unlike `run_benchmark` and `run_correctness_test`, this function does NOT manage the server
agent/src/bench_tools.rs:649
↓ 3 callers
Method
search_scalar
(&self, vector: &[f32], top_k: u32)
leaderboard/gpt-5.2-codex-preview-turn-3/src/db.rs:60
↓ 3 callers
Method
search_with
(&self, vector: &[f32], top_k: u32, distance_fn: F)
leaderboard/gpt-5.2-codex-preview-turn-3/src/db.rs:92
↓ 3 callers
Function
start_server
Start the skeleton server binary as a child process. Launches `target/release/<binary>` in `work_dir` with the `PORT` environment variable set to the
agent/src/bench_tools.rs:293
↓ 3 callers
Function
truncate_output
Truncate a string to at most `limit` bytes (on a char boundary) and append a notice when truncation occurs.
agent/src/sandbox.rs:187
↓ 3 callers
Function
use_avx512
()
leaderboard/gpt-5.3-codex-preview-turn-1/src/db.rs:63
↓ 3 callers
Function
use_avx512
()
leaderboard/gpt-5.3-codex-preview-turn-1/src_best_qps/db.rs:63
↓ 3 callers
Function
wait_for_server_ready
Wait for a TCP port to become reachable. Polls with `TcpStream::connect` every `poll_interval_ms` milliseconds. Returns `Ok(())` once the port accept
agent/src/bench_tools.rs:388
↓ 3 callers
Function
write_fvecs
Write vectors in fvecs binary format.
scripts/test_generate_ground_truth.py:20
↓ 3 callers
Function
write_ivecs
Write vectors in ivecs binary format.
scripts/test_convert_data.py:31
↓ 2 callers
Function
_cleanup_chunk_files
Remove temporary chunk files after successful merge.
scripts/generate_ground_truth.py:223
↓ 2 callers
Function
_knn_single_query_numpy
Compute KNN for a single query vector using numpy. Returns: List of neighbor IDs (length top_k).
scripts/generate_ground_truth.py:100
↓ 2 callers
Function
_knn_single_query_python
Compute KNN for a single query vector using pure Python. Returns: List of neighbor IDs (length top_k).
scripts/generate_ground_truth.py:118
↓ 2 callers
Function
build_assistant_tool_calls_message
Build an assistant message with tool calls (from LLM response).
agent/src/main.rs:409
↓ 2 callers
Function
build_project_inner
(work_dir: &Path, profiling: bool)
agent/src/bench_tools.rs:175
↓ 2 callers
Function
build_system_message
Build a system message.
agent/src/main.rs:398
↓ 2 callers
Function
calculate_qps
Calculate queries per second.
benchmark/src/scorer.rs:31
↓ 2 callers
Method
cmp
(&self, other: &Self)
leaderboard/claude-sonnet-4.6-turn-1/src/db.rs:28
↓ 2 callers
Method
cmp
(&self, other: &Self)
leaderboard/claude-sonnet-4.6-turn-1/src_best_qps/db.rs:21
↓ 2 callers
Function
compute_benchmark_result
Combine all calculations into a single BenchmarkResult.
benchmark/src/scorer.rs:101
↓ 2 callers
Method
compute_bucket
(&self, vector: &[f32])
leaderboard/kimi-k2.5-turn-1/src/db.rs:83
↓ 2 callers
Method
consider
(&mut self, id: u64, dist: f32)
leaderboard/gpt-5.2-codex-preview-turn-1/src_best_qps/db.rs:37
↓ 2 callers
Function
convert_query_vectors
Convert query vectors to JSON format. Output format per entry: {"id": <int>, "vector": [<float>, ...]} Args: vectors: List of float
scripts/convert_data.py:193
↓ 2 callers
Function
detect_hardcoded_results_with_config
Configurable version of [`detect_hardcoded_results`].
benchmark/src/anti_cheat.rs:46
↓ 2 callers
Function
dot_product_avx512_impl
(a: &[f32], b: &[f32])
leaderboard/claude-opus-4.6-turn-2/src/distance.rs:64
↓ 2 callers
Method
ensure_index
(&self)
leaderboard/gpt-5.3-codex-preview-turn-3/src/db.rs:131
↓ 2 callers
Method
ensure_index
(&self)
leaderboard/gpt-5.3-codex-preview-turn-3/src_best_qps/db.rs:131
↓ 2 callers
Method
extend
(&mut self, vectors: Vec<(u64, Vec<f32>)>)
leaderboard/glm-5-turn-3/src_best_qps/db.rs:29
↓ 2 callers
Function
find_nearest_centroid
(vec: &[f32], centroids: &[f32], num_clusters: usize)
leaderboard/claude-opus-4.6-turn-2/src/db.rs:249
↓ 2 callers
Function
find_nearest_centroid
(vec: &[f32], centroids: &[f32], num_clusters: usize)
leaderboard/claude-opus-4.6-turn-2/src_best_qps/db.rs:251
↓ 2 callers
Function
heap_to_sorted_results
(heap: BinaryHeap<HeapItem>)
leaderboard/gpt-5.3-codex-preview-turn-3/src/db.rs:282
↓ 2 callers
Function
heap_to_sorted_results
(heap: BinaryHeap<HeapItem>)
leaderboard/gpt-5.3-codex-preview-turn-3/src_best_qps/db.rs:282
↓ 2 callers
Method
insert
(&self, id: u64, vector: Vec<f32>)
leaderboard/Ling-2.5-1T-turn-3/src/db.rs:20
↓ 2 callers
Method
insert
(&self, id: u64, vector: Vec<f32>)
leaderboard/Ling-2.5-1T-turn-3/src_best_qps/db.rs:21
↓ 2 callers
Method
insert
(&self, id: u64, vector: Vec<f32>)
leaderboard/Ling-2.5-1T-turn-1/src/db.rs:17
↓ 2 callers
Method
insert
(&self, id: u64, vector: Vec<f32>)
leaderboard/Ling-2.5-1T-turn-1/src_best_qps/db.rs:17
↓ 2 callers
Method
insert
(&self, id: u64, vector: Vec<f32>)
leaderboard/gemini-3-flash-preview-turn-2/src/db.rs:20
↓ 2 callers
Method
insert
(&self, id: u64, vector: Vec<f32>)
leaderboard/gemini-3-flash-preview-turn-2/src_best_qps/db.rs:20
↓ 2 callers
Method
insert
(&self, id: u64, vector: Vec<f32>)
leaderboard/MiniMax-M2.5-turn-2/src/db.rs:19
↓ 2 callers
Method
insert
(&self, id: u64, vector: Vec<f32>)
leaderboard/MiniMax-M2.5-turn-2/src_best_qps/db.rs:17
↓ 2 callers
Method
into_results
(mut self)
leaderboard/claude-opus-4.6-turn-2/src/db.rs:238
↓ 2 callers
Method
into_results
(mut self)
leaderboard/claude-opus-4.6-turn-2/src_best_qps/db.rs:241
↓ 2 callers
Function
is_allowed_path
Check whether a path is within the allowed `src/` scope. Normalizes `./`, `\`, and rejects `..` traversal.
agent/src/sandbox.rs:22
↓ 2 callers
Method
is_limit_reached
Check whether the tool call limit has been reached.
agent/src/state.rs:82
↓ 2 callers
Function
is_read_allowed
Check whether a path is allowed for reading. Same as `is_allowed_path` but also permits `Cargo.toml`.
agent/src/sandbox.rs:43
↓ 2 callers
Function
l2_distance
(a: &[f32], b: &[f32])
leaderboard/gemini-3.1-pro-preview-turn-3/src/distance.rs:1
↓ 2 callers
Function
l2_distance
(a: &[f32], b: &[f32])
leaderboard/gemini-3.1-pro-preview-turn-3/src_best_qps/distance.rs:1
↓ 2 callers
Function
l2_distance
(a: &[f32], b: &[f32])
leaderboard/Ling-2.5-1T-turn-1/src/distance.rs:2
↓ 2 callers
Function
l2_distance
(a: &[f32], b: &[f32])
leaderboard/Ling-2.5-1T-turn-1/src_best_qps/distance.rs:2
↓ 2 callers
Function
l2_distance_avx512_impl
(a: &[f32], b: &[f32])
leaderboard/claude-opus-4.6-turn-2/src_best_qps/distance.rs:40
↓ 2 callers
Function
l2_distance_f32
(a: &[f32], b: &[f32])
leaderboard/claude-sonnet-4.6-turn-1/src_best_qps/distance.rs:9
↓ 2 callers
Function
l2_distance_f32
(a: &[f32], b: &[f32])
leaderboard/gpt-5.2-codex-preview-turn-1/src_best_qps/distance.rs:9
↓ 2 callers
Function
l2_distance_fallback
(a: &[f32], b: &[f32])
leaderboard/glm-5-turn-2/src/distance.rs:71
↓ 2 callers
Function
l2_distance_fallback
(a: &[f32], b: &[f32])
leaderboard/glm-5-turn-2/src_best_qps/distance.rs:71
↓ 2 callers
Function
l2_distance_scalar
(a: &[f32], b: &[f32])
leaderboard/deepseek-v3.2-preview-turn-3/src/distance.rs:334
↓ 2 callers
Function
l2_distance_scalar
(a: &[f32], b: &[f32])
leaderboard/claude-opus-4.6-turn-1/src/distance.rs:44
↓ 2 callers
Function
l2_distance_scalar
(a: &[f32], b: &[f32])
leaderboard/claude-opus-4.6-turn-1/src_best_qps/distance.rs:44
↓ 2 callers
Function
l2_distance_scalar
(a: &[f32], b: &[f32])
leaderboard/glm-5-turn-3/src/distance.rs:94
↓ 2 callers
Function
l2_distance_scalar
(a: &[f32], b: &[f32])
leaderboard/glm-5-turn-3/src_best_qps/distance.rs:94
↓ 2 callers
Function
l2_distance_scalar
(a: &[f32], b: &[f32])
leaderboard/claude-opus-4.6-turn-2/src_best_qps/distance.rs:90
↓ 2 callers
Function
l2_distance_scalar
Scalar fallback for non-x86_64 platforms
leaderboard/glm-5-turn-1/src/distance.rs:75
↓ 2 callers
Function
l2_distance_squared
(a: &[f32], b: &[f32])
leaderboard/kimi-k2.5-turn-1/src/distance.rs:8
↓ 2 callers
Function
l2_distance_squared
(a: &[f32], b: &[f32])
leaderboard/gemini-3-flash-preview-turn-3/src/distance.rs:4
↓ 2 callers
Function
l2_distance_squared
(a: &[f32], b: &[f32])
leaderboard/qwen3.5-plus-turn-1/src/distance.rs:2
↓ 2 callers
Function
l2_distance_squared_fallback
(a: &[f32], b: &[f32])
leaderboard/claude-sonnet-4.5-turn-3/src/distance.rs:84
↓ 2 callers
Function
l2_distance_squared_fallback
(a: &[f32], b: &[f32])
leaderboard/claude-sonnet-4.5-turn-3/src_best_qps/distance.rs:84
↓ 2 callers
Function
load_leaderboard
Read a JSON leaderboard file and deserialize into entries.
agent/src/evaluator.rs:55
↓ 2 callers
Function
load_vectors_from_file
Load base vectors from a JSON file. The file should contain a JSON array of `{"id": u64, "vector": [f32; 128]}` objects.
benchmark/src/loader.rs:34
↓ 2 callers
Method
log_tool_call
Log a tool call (before execution).
agent/src/logger.rs:155
← previous
next →
101–200 of 1,571, ranked by callers