MCPcopy Create free account

hub / github.com/KCORES/vector-db-bench / functions

Functions1,571 in github.com/KCORES/vector-db-bench

↓ 527 callersMethodlen
(&self)
leaderboard/glm-5-turn-3/src/db.rs:39
↓ 190 callersMethodpush
(&mut self, id: u64, vector: Vec<f32>)
leaderboard/glm-5-turn-3/src/db.rs:24
↓ 122 callersMethodlen
(&self)
leaderboard/claude-sonnet-4.5-turn-2/src/db.rs:32
↓ 104 callersMethodpush
(&mut self, id: u64, vector: &[f32])
leaderboard/gemini-3-pro-preview-turn-1/src/db.rs:41
↓ 82 callersMethodpartial_cmp
(&self, other: &Self)
leaderboard/kimi-k2.5-turn-3/src/db.rs:25
↓ 75 callersMethodpush
(&mut self, dist: f32, id: u64)
leaderboard/claude-opus-4.6-turn-2/src/db.rs:196
↓ 61 callersMethodextend
(&mut self, vectors: Vec<(u64, Vec<f32>)>)
leaderboard/glm-5-turn-3/src/db.rs:29
↓ 45 callersMethodpartial_cmp
(&self, other: &Self)
leaderboard/claude-sonnet-4.6-turn-1/src/db.rs:25
↓ 22 callersFunctionkill_server
Kill a server child process and wait for it to exit. Attempts `child.kill()` followed by `child.wait()` to ensure cleanup.
agent/src/bench_tools.rs:415
↓ 21 callersFunctionreduce_add128_ps
(v: __m128)
leaderboard/deepseek-v3.2-preview-turn-3/src/distance.rs:326
↓ 21 callersFunctiontempdir
()
agent/src/sandbox.rs:677
↓ 19 callersMethodpartial_cmp
(&self, other: &Self)
leaderboard/gemini-3.1-pro-preview-turn-2/src/db.rs:47
↓ 17 callersMethodpartial_cmp
(&self, other: &Self)
leaderboard/grok-4.1-fast-turn-3/src/db.rs:20
↓ 17 callersFunctiontempdir
()
agent/src/bench_tools.rs:1552
↓ 15 callersFunctionbuild_thinking_extra
Build extra body fields based on thinking mode setting.
agent/src/main.rs:177
↓ 14 callersFunctionparse_tool_call
Parse a ToolCall from the function name and JSON arguments string.
agent/src/main.rs:326
↓ 14 callersFunctiontemp_dir
()
agent/src/logger.rs:228
↓ 13 callersMethodpartial_cmp
(&self, other: &Self)
leaderboard/gemini-3-pro-preview-turn-2/src/db.rs:29
↓ 11 callersMethodrecord_call
Record a completed tool call in the log and increment the counter.
agent/src/state.rs:63
↓ 10 callersFunctiondetect_hardcoded_results
Detect hardcoded / low-diversity results across queries. `results[i]` contains the top-K IDs returned for query `i`. Two checks are performed: 1. **
benchmark/src/anti_cheat.rs:41
↓ 10 callersMethodget_status
Return the current session status.
agent/src/state.rs:50
↓ 10 callersFunctionread_fvecs
Parse an fvecs file and return a list of float32 vectors. Each vector is stored as: 4 bytes (int32 dimension) + dim * 4 bytes (float32 va
scripts/convert_data.py:23
↓ 10 callersFunctionreduce_add256_ps
(v: __m256)
leaderboard/deepseek-v3.2-preview-turn-3/src/distance.rs:317
↓ 9 callersFunctioncalculate_percentile
Calculate the p-th percentile from a mutable slice of latencies. Sorts the slice in place and returns the value at the given percentile. `p` should b
benchmark/src/scorer.rs:42
↓ 9 callersMethodinsert
(&self, id: u64, vector: Vec<f32>)
skeleton/src/db.rs:12
↓ 9 callersMethodpartial_cmp
(&self, other: &Self)
leaderboard/gpt-5.3-codex-preview-turn-3/src/db.rs:47
↓ 9 callersMethodpush
(&mut self, id: u64, vector: &[f32])
leaderboard/gemini-3-pro-preview-turn-1/src_best_qps/db.rs:41
↓ 9 callersFunctionreduce_add512_ps
(v: __m512)
leaderboard/deepseek-v3.2-preview-turn-3/src/distance.rs:110
↓ 7 callersFunctioncompute_ground_truth
Compute ground truth nearest neighbors via brute-force search. This is the in-memory API used by tests and programmatic callers. For large da
scripts/generate_ground_truth.py:232
↓ 7 callersFunctionl2_distance_f32
(a: &[f32], b: &[f32])
leaderboard/claude-sonnet-4.6-turn-1/src/distance.rs:9
↓ 7 callersMethodlen
(&self)
leaderboard/claude-sonnet-4.5-turn-2/src_best_qps/db.rs:32
↓ 7 callersMethodlog
Write a log event as a single JSON line, flushed immediately.
agent/src/logger.rs:97
↓ 7 callersMethodlog_session_end
Log session end.
agent/src/logger.rs:191
↓ 7 callersFunctionparse_perf_report
Parse perf report --stdio output to extract function names and percentages. Lines look like: " 42.50% 1234 binary_name [.] function_name"
agent/src/bench_tools.rs:893
↓ 7 callersFunctionwrite_file
Write content to a file relative to `base_dir`. Only paths within `src/` are allowed. Also checks the readonly list.
agent/src/sandbox.rs:109
↓ 6 callersFunction_l2_distance_squared_python
Compute squared L2 distance between two vectors (pure Python). We skip the sqrt since it's monotonic — sorting by squared distance gives the
scripts/generate_ground_truth.py:91
↓ 6 callersFunctionl2_distance
(a: &[f32], b: &[f32])
leaderboard/gemini-3.1-pro-preview-turn-1/src/distance.rs:3
↓ 6 callersFunctionl2_distance
(a: &[f32], b: &[f32])
leaderboard/gemini-3.1-pro-preview-turn-1/src_best_qps/distance.rs:3
↓ 6 callersFunctionl2_distance
(a: &[f32], b: &[f32])
leaderboard/gemini-3-pro-preview-turn-3/src/distance.rs:4
↓ 6 callersFunctionlist_files
List files in a directory relative to `base_dir`. Only paths within `src/` are allowed. Returns a sorted list of filenames.
agent/src/sandbox.rs:155
↓ 6 callersMethodlog_llm_response
Log an LLM response (after receiving).
agent/src/logger.rs:135
↓ 6 callersMethodpath
Return the log file path.
agent/src/logger.rs:216
↓ 6 callersMethodpush
(&mut self, dist: f32, id: u64)
leaderboard/claude-opus-4.6-turn-2/src_best_qps/db.rs:201
↓ 6 callersFunctionread_file
Read a file relative to `base_dir` and return its content. Only paths within `src/` (and `Cargo.toml`) are allowed.
agent/src/sandbox.rs:89
↓ 6 callersFunctionread_fvecs
Parse an fvecs file and return a list of float32 vectors. Each vector is stored as: 4 bytes (int32 dimension) + dim * 4 bytes (float32 va
scripts/generate_ground_truth.py:27
↓ 6 callersFunctionread_ivecs
Parse an ivecs file and return a list of int32 vectors. Each vector is stored as: 4 bytes (int32 dimension) + dim * 4 bytes (int32 values
scripts/convert_data.py:89
↓ 6 callersFunctionrun_benchmark
Run the benchmark client against the vector database service. Launches the benchmark binary with the given concurrency and warmup settings, captures
agent/src/bench_tools.rs:483
↓ 5 callersFunctioncalculate_recall
Calculate average recall across all queries. For each query, computes the intersection of the model's top-10 result IDs with the ground truth top-10
benchmark/src/scorer.rs:63
↓ 5 callersMethodcmp
(&self, other: &Self)
leaderboard/gpt-5.3-codex-preview-turn-3/src/db.rs:52
↓ 5 callersFunctionivf_search
(query: &[f32], top_k: usize, index: &IVFIndex)
leaderboard/claude-opus-4.6-turn-2/src/db.rs:138
↓ 5 callersFunctionjaccard_similarity
Compute the Jaccard similarity between two sets of IDs. Jaccard(A, B) = |A ∩ B| / |A ∪ B|. Returns 0.0 when both sets are empty.
benchmark/src/anti_cheat.rs:22
↓ 5 callersFunctionl2_distance
(a: &[f32], b: &[f32])
leaderboard/kimi-k2.5-turn-2/src/distance.rs:4
↓ 5 callersFunctionl2_distance
(a: &[f32], b: &[f32])
leaderboard/kimi-k2.5-turn-2/src_best_qps/distance.rs:4
↓ 5 callersFunctionl2_distance
(a: &[f32], b: &[f32])
leaderboard/gemini-3-pro-preview-turn-3/src_best_qps/distance.rs:4
↓ 5 callersFunctionl2_distance
(a: &[f32], b: &[f32])
leaderboard/gemini-3-pro-preview-turn-1/src/distance.rs:4
↓ 5 callersFunctionl2_distance
(a: &[f32], b: &[f32])
leaderboard/gemini-3-pro-preview-turn-1/src_best_qps/distance.rs:4
↓ 5 callersFunctionl2_distance_f32
(a: &[f32], b: &[f32])
leaderboard/claude-opus-4.6-turn-2/src/distance.rs:11
↓ 5 callersFunctionl2_distance_f32
(a: &[f32], b: &[f32])
leaderboard/claude-opus-4.6-turn-2/src_best_qps/distance.rs:11
↓ 5 callersFunctionl2_distance_f32
(a: &[f32], b: &[f32])
leaderboard/claude-sonnet-4.6-turn-2/src/distance.rs:9
↓ 5 callersFunctionl2_distance_sq_128
(a: &[f32], b: &[f32], avx512: bool)
leaderboard/gpt-5.3-codex-preview-turn-1/src/db.rs:75
↓ 5 callersFunctionl2_distance_sq_128
(a: &[f32], b: &[f32], avx512: bool)
leaderboard/gpt-5.3-codex-preview-turn-1/src_best_qps/db.rs:75
↓ 5 callersFunctionl2_distance_squared
(a: &[f32], b: &[f32])
leaderboard/gpt-5.3-codex-preview-turn-3/src/distance.rs:7
↓ 5 callersFunctionl2_distance_squared
(a: &[f32], b: &[f32])
leaderboard/gpt-5.3-codex-preview-turn-3/src_best_qps/distance.rs:7
↓ 5 callersFunctionl2_distance_squared
(a: &[f32], b: &[f32])
leaderboard/claude-sonnet-4.5-turn-3/src/distance.rs:68
↓ 5 callersFunctionl2_distance_squared
(a: &[f32], b: &[f32])
leaderboard/claude-sonnet-4.5-turn-3/src_best_qps/distance.rs:68
↓ 5 callersFunctionl2_distance_squared_avx512
(a: &[f32], b: &[f32])
leaderboard/qwen3.5-plus-turn-3/src/db.rs:253
↓ 5 callersFunctionl2_distance_squared_avx512
(a: &[f32], b: &[f32])
leaderboard/qwen3.5-plus-turn-3/src_best_qps/db.rs:253
↓ 5 callersMethodlen
(&self)
leaderboard/glm-5-turn-3/src_best_qps/db.rs:39
↓ 5 callersMethodlog_llm_request
Log an LLM request (before sending).
agent/src/logger.rs:125
↓ 5 callersMethodpartial_cmp
(&self, other: &Self)
leaderboard/gemini-3-flash-preview-turn-3/src/db.rs:29
↓ 5 callersMethodpartial_cmp
(&self, other: &Self)
leaderboard/gemini-3-pro-preview-turn-3/src/db.rs:57
↓ 5 callersFunctionreduce128_ps
(v: __m128)
leaderboard/deepseek-v3.2-preview-turn-3/src_best_qps/distance.rs:113
↓ 5 callersFunctionrun_command
Execute a shell command inside `base_dir` with an optional timeout. Uses `sh -c` on unix and `cmd /C` on windows. Captures stdout, stderr, exit code
agent/src/sandbox.rs:207
↓ 5 callersFunctionsave_session_context
Save session context to `<work_dir>/session_context.json`.
agent/src/main.rs:484
↓ 5 callersFunctionsort_leaderboard
Sort leaderboard entries by QPS descending; ties broken by recall descending.
agent/src/evaluator.rs:34
↓ 4 callersFunction_write_json
Write data to a JSON file.
scripts/convert_data.py:231
↓ 4 callersFunctionbuild_assistant_content_message
Build an assistant message with text content (no tool calls).
agent/src/main.rs:420
↓ 4 callersFunctionbuild_tool_result_message
Build a tool result message.
agent/src/main.rs:431
↓ 4 callersFunctionconvert_base_vectors
Convert base vectors to JSON format, with optional sharding. Output format per entry: {"id": <int>, "vector": [<float>, ...]} Args:
scripts/convert_data.py:155
↓ 4 callersFunctioncreate_mock_server_project
Scaffold a minimal Cargo project whose binary listens on the PORT env var.
agent/src/bench_tools.rs:1321
↓ 4 callersFunctiondispatch_tool_call
Dispatch a tool call to the appropriate handler. `base_dir` is the project root directory used for file operations, command execution, and benchmark/
agent/src/tools.rs:305
↓ 4 callersFunctionfind_closest_centroid
(centroids: &[f32], vector: &[f32])
leaderboard/gemini-3-pro-preview-turn-1/src/db.rs:259
↓ 4 callersFunctionfind_closest_centroid
(centroids: &[f32], vector: &[f32])
leaderboard/gemini-3-pro-preview-turn-1/src_best_qps/db.rs:259
↓ 4 callersFunctionfind_nearest_centroid
(vector: &[f32], centroids: &[Vec<f32>])
leaderboard/kimi-k2.5-turn-2/src/db.rs:252
↓ 4 callersFunctionfind_nearest_centroid
(vector: &[f32], centroids: &[Vec<f32>])
leaderboard/kimi-k2.5-turn-2/src_best_qps/db.rs:252
↓ 4 callersFunctionfind_nearest_centroid_fast
(vec: &[f32], centroids: &[f32], num_clusters: usize)
leaderboard/claude-opus-4.6-turn-3/src/db.rs:319
↓ 4 callersFunctionfind_nearest_centroid_fast
(vec: &[f32], centroids: &[f32], num_clusters: usize)
leaderboard/claude-opus-4.6-turn-3/src_best_qps/db.rs:319
↓ 4 callersFunctionget_tool_definitions
Returns JSON Schema tool definitions in OpenAI function calling format.
agent/src/tools.rs:142
↓ 4 callersMethodinsert
(&self, id: u64, vector: Vec<f32>)
leaderboard/gemini-3-pro-preview-turn-1/src/db.rs:55
↓ 4 callersMethodinsert
(&self, id: u64, vector: Vec<f32>)
leaderboard/gemini-3-pro-preview-turn-1/src_best_qps/db.rs:55
↓ 4 callersFunctionl2_distance_batch
(query: &[f32], vectors_flat: &[f32], n_vectors: usize, distances: &mut [f32])
leaderboard/claude-opus-4.6-turn-1/src/distance.rs:55
↓ 4 callersFunctionl2_distance_batch
(query: &[f32], vectors_flat: &[f32], n_vectors: usize, distances: &mut [f32])
leaderboard/claude-opus-4.6-turn-1/src_best_qps/distance.rs:55
↓ 4 callersFunctionl2_distance_squared_128
(a: &[f32], b: &[f32])
leaderboard/gpt-5.3-codex-preview-turn-2/src/db.rs:294
↓ 4 callersFunctionl2_distance_squared_128
(a: &[f32], b: &[f32])
leaderboard/gpt-5.3-codex-preview-turn-2/src_best_qps/db.rs:294
↓ 4 callersFunctionl2_squared_f32
(a: &[f32], b: &[f32])
leaderboard/claude-sonnet-4.6-turn-3/src/distance.rs:28
↓ 4 callersFunctionl2_squared_f32
(a: &[f32], b: &[f32])
leaderboard/claude-sonnet-4.6-turn-3/src_best_qps/distance.rs:28
↓ 4 callersFunctionmake_benchmark
(qps: f64, recall: f64)
agent/src/evaluator.rs:81
↓ 4 callersFunctionmake_entry
(model: &str, qps: f64, recall: f64)
agent/src/evaluator.rs:98
↓ 4 callersMethodrecompute_worst
(&mut self)
leaderboard/claude-opus-4.6-turn-2/src/db.rs:224
↓ 4 callersMethodrecompute_worst
(&mut self)
leaderboard/claude-opus-4.6-turn-2/src_best_qps/db.rs:227
next →1–100 of 1,571, ranked by callers