Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/disler/benchy
/ functions
Functions
126 in github.com/disler/benchy
⨍
Functions
126
◇
Types & classes
38
↳
Endpoints
6
↓ 16 callers
Function
timeit
Context manager to measure execution time in milliseconds. Usage: with timeit() as t: # code to time elapsed_ms
server/utils.py:8
↓ 12 callers
Function
get_openai_cost
Calculate the cost for OpenAI API usage. Args: model: The model name/alias used input_tokens: Number of input tokens
server/modules/openai_llm.py:28
↓ 6 callers
Function
deepseek_r1_distil_separate_thoughts_and_response
Parse DeepSeek R1 responses containing <think> blocks and separate thoughts from final response. Args: response: Raw model response
server/utils.py:136
↓ 6 callers
Function
simple_prompt
(prompt_str: str, model_alias_str: str)
server/modules/llm_models.py:21
↓ 5 callers
Function
eval_result_compare
Compare expected and actual results based on evaluation type. For numeric outputs, compare with a small epsilon tolerance.
server/modules/execution_evaluators.py:7
↓ 5 callers
Function
parse_reasoning_effort
Parse a model string to extract reasoning effort. If the model contains ":low", ":medium" or ":high" (case‐insensitive), returns (base_mo
server/utils.py:181
↓ 4 callers
Function
calculatePercentCorrect
(numberCorrect: number)
client/src/stores/autocompleteStore.ts:363
↓ 4 callers
Function
parse_markdown_backticks
(str)
server/utils.py:125
↓ 4 callers
Function
text_prompt
Send a prompt to Ollama and get a response.
server/modules/ollama_llm.py:7
↓ 3 callers
Function
execute_python_code
Execute Python code and return the numeric output as a string.
server/modules/execution_evaluators.py:48
↓ 3 callers
Function
get_anthropic_cost
Calculate the cost for Anthropic API usage. Args: model: The model name/alias used input_tokens: Number of input tokens
server/modules/anthropic_llm.py:28
↓ 3 callers
Function
get_deepseek_cost
Calculate the cost for Gemini API usage. Args: model: The model name/alias used input_tokens: Number of input tokens
server/modules/deepseek_llm.py:16
↓ 3 callers
Function
get_gemini_cost
Calculate the cost for Gemini API usage. Args: model: The model name/alias used input_tokens: Number of input tokens
server/modules/gemini_llm.py:28
↓ 3 callers
Function
loadDefaultState
()
client/src/stores/thoughtBenchStore.ts:4
↓ 3 callers
Function
loadDefaultState
()
client/src/stores/autocompleteStore.ts:3
↓ 3 callers
Function
loadDefaultState
()
client/src/stores/toolCallStore.ts:4
↓ 2 callers
Function
bench_prompt
Send a prompt to DeepSeek and get detailed benchmarking response.
server/modules/deepseek_llm.py:39
↓ 2 callers
Function
calculatePercentCorrect
(numberCorrect: number)
client/src/apis/toolCallApi.ts:116
↓ 2 callers
Function
generate_report
( complete_result: ExecEvalBenchmarkCompleteResult, )
server/modules/exbench_module.py:250
↓ 2 callers
Function
predictive_prompt
Run a chat model with a predicted output to reduce latency. Args: prompt (str): The prompt to send to the OpenAI API. predic
server/modules/openai_llm.py:189
↓ 2 callers
Function
resetBenchmark
()
client/src/stores/isoSpeedBenchStore.ts:61
↓ 2 callers
Function
run_benchmark_for_model
( model: str, benchmark_file: ExecEvalBenchmarkFile )
server/modules/exbench_module.py:205
↓ 2 callers
Function
save_report_to_file
Save benchmark report to file with standardized naming. Args: report: The benchmark report to save output_dir: Directory to save
server/modules/exbench_module.py:73
↓ 2 callers
Function
text_prompt
Send a prompt to OpenAI and get a response.
server/modules/openai_llm.py:227
↓ 2 callers
Function
text_prompt
Send a prompt to DeepSeek and get the response.
server/modules/deepseek_llm.py:76
↓ 2 callers
Function
thought_prompt
Send a thought prompt to DeepSeek and parse structured response.
server/modules/deepseek_llm.py:105
↓ 2 callers
Function
thought_prompt
Handle thought prompts for Gemini thinking models.
server/modules/gemini_llm.py:51
↓ 1 callers
Function
bench_prompt
Send a prompt to Anthropic and get detailed benchmarking response.
server/modules/anthropic_llm.py:80
↓ 1 callers
Function
bench_prompt
Send a prompt to OpenAI and get detailed benchmarking response.
server/modules/openai_llm.py:142
↓ 1 callers
Function
bench_prompt
Send a prompt to Gemini and get detailed benchmarking response.
server/modules/gemini_llm.py:124
↓ 1 callers
Function
bench_prompt
Send a prompt to Ollama and get detailed benchmarking response.
server/modules/ollama_llm.py:85
↓ 1 callers
Function
bench_prompt
(prompt: str, model: str)
server/modules/fireworks_llm.py:28
↓ 1 callers
Function
execute
Execute the tests and return the output as a string.
server/modules/execution_evaluators.py:76
↓ 1 callers
Function
loadSettings
()
client/src/stores/isoSpeedBenchStore.ts:41
↓ 1 callers
Function
loadState
()
client/src/stores/thoughtBenchStore.ts:81
↓ 1 callers
Function
loadState
()
client/src/stores/autocompleteStore.ts:332
↓ 1 callers
Function
loadState
()
client/src/stores/toolCallStore.ts:218
↓ 1 callers
Function
main
Run the Flask application.
server/server.py:184
↓ 1 callers
Function
makeRequest
()
client/src/apis/thoughtBenchApi.ts:31
↓ 1 callers
Function
parse_model_string
Parse model string into provider and model name. Format: "provider:model_name" or "model_name" (defaults to ollama) Raises: Valu
server/modules/exbench_module.py:37
↓ 1 callers
Function
process_single_prompt
( prompt_row, benchmark_file, provider, model_name, index, total_tests )
server/modules/exbench_module.py:109
↓ 1 callers
Function
run_coder_agent
Run the coder agent with the given prompt. Args: prompt (str): The input prompt for the coder agent Returns: str: The r
server/modules/tools.py:1
↓ 1 callers
Function
run_docs_agent
Run the docs agent with the given prompt. Args: prompt (str): The input prompt for the docs agent Returns: str: The res
server/modules/tools.py:27
↓ 1 callers
Function
run_git_agent
Run the git agent with the given prompt. Args: prompt (str): The input prompt for the git agent Returns: str: The respo
server/modules/tools.py:14
↓ 1 callers
Function
sendPrompt
(prompt: string, model: ModelAlias)
client/src/apis/autocompleteApi.ts:3
↓ 1 callers
Function
sendToolPrompt
(prompt: string, model: ModelAlias)
client/src/apis/toolCallApi.ts:3
↓ 1 callers
Function
setState
(state: any)
client/src/stores/thoughtBenchStore.ts:100
↓ 1 callers
Function
setState
(state: any)
client/src/stores/autocompleteStore.ts:352
↓ 1 callers
Function
setState
(state: any)
client/src/stores/toolCallStore.ts:237
↓ 1 callers
Function
sleep
(ms: number)
client/src/apis/thoughtBenchApi.ts:11
↓ 1 callers
Function
text_prompt
Send a prompt to Anthropic and get a response.
server/modules/anthropic_llm.py:51
↓ 1 callers
Function
text_prompt
Send a prompt to Gemini and get a response.
server/modules/gemini_llm.py:98
↓ 1 callers
Function
text_prompt
(prompt: str, model: str)
server/modules/fireworks_llm.py:61
↓ 1 callers
Function
thought_prompt
(prompt: str, model: str)
server/modules/fireworks_llm.py:91
↓ 1 callers
Function
tool_prompt
Run a chat model forcing specific tool calls. Now supports JSON structured output variants.
server/modules/openai_llm.py:67
Method
accuracy
(self)
server/modules/data_types.py:147
Function
client
()
server/tests/server_test.py:7
Function
copyToClipboard
(text: string)
client/src/utils.ts:3
Method
correct_count
(self)
server/modules/data_types.py:139
Function
flashBenchmark
()
client/src/stores/isoSpeedBenchStore.ts:118
Function
getContrastTextColor
(backgroundColor: string)
client/src/utils.ts:30
Function
get_fireworks_cost
(model: str, input_tokens: int, output_tokens: int)
server/modules/fireworks_llm.py:23
Function
get_ollama_costs
Return token costs for Ollama (always 0 since it's free)
server/modules/ollama_llm.py:36
Function
handleCorrect
(model: ModelAlias, isCorrect: boolean)
client/src/stores/autocompleteStore.ts:369
Function
handle_iso_speed_bench
Handle an ISO speed benchmark request with YAML input.
server/server.py:108
Function
handle_prompt
Handle a prompt request and return the model's response.
server/server.py:26
Function
handle_thought_bench
Handle a thought bench request and return the model's response.
server/server.py:76
Function
handle_tool_prompt
Handle a tool prompt request and return the tool calls.
server/server.py:49
Method
incorrect_count
(self)
server/modules/data_types.py:143
Function
model
()
server/tests/fireworks_llm_test.py:6
Function
ollama_bench
Run benchmarks on Ollama models using a YAML configuration file. Example usage: uv run python exbench.py ollama-bench benchmark_data/si
server/exbench.py:26
Function
ping
()
server/exbench.py:21
Function
resetState
()
client/src/stores/thoughtBenchStore.ts:94
Function
resetState
()
client/src/stores/autocompleteStore.ts:346
Function
resetState
()
client/src/stores/toolCallStore.ts:231
Function
retryRequest
* No need for this here
client/src/apis/thoughtBenchApi.ts:18
Function
runAutocomplete
()
client/src/apis/autocompleteApi.ts:22
Function
runThoughtPrompt
(request: ThoughtRequest)
client/src/apis/thoughtBenchApi.ts:30
Function
runToolCall
()
client/src/apis/toolCallApi.ts:28
Function
saveSettings
()
client/src/stores/isoSpeedBenchStore.ts:37
Function
startBenchmark
()
client/src/stores/isoSpeedBenchStore.ts:71
Function
stringToColor
(str: string)
client/src/utils.ts:10
Function
test_anthropic_bench_prompt
()
server/tests/anthropic_llm_test.py:11
Function
test_anthropic_text_prompt
()
server/tests/anthropic_llm_test.py:4
Function
test_bench_prompt
(model)
server/tests/fireworks_llm_test.py:10
Function
test_bench_prompt_metrics
(model)
server/tests/ollama_llm_test.py:42
Function
test_cost_ordering_group1
()
server/tests/openai_llm_test.py:113
Function
test_cost_ordering_group2
()
server/tests/openai_llm_test.py:135
Function
test_deepseek_bench_prompt
()
server/tests/deepseek_llm_test.py:13
Function
test_deepseek_error_handling
()
server/tests/deepseek_llm_test.py:25
Function
test_deepseek_text_prompt
()
server/tests/deepseek_llm_test.py:6
Function
test_gemini_bench_prompt
()
server/tests/gemini_llm_test.py:12
Function
test_gemini_text_prompt
()
server/tests/gemini_llm_test.py:5
Function
test_gemini_thought_prompt
()
server/tests/gemini_llm_test.py:22
Function
test_gemini_thought_prompt_invalid_model
()
server/tests/gemini_llm_test.py:39
Function
test_llama_3_2_latest_text_prompt
()
server/tests/ollama_llm_test.py:19
Function
test_missing_xml_handling
()
server/tests/ollama_llm_test.py:83
Function
test_ollama_text_prompt
()
server/tests/ollama_llm_test.py:5
Function
test_openai_bench_prompt
()
server/tests/openai_llm_test.py:67
Function
test_openai_text_prompt
()
server/tests/openai_llm_test.py:58
next →
1–100 of 126, ranked by callers