Skip to main content

Evaluation for LLMs on developer experience.

Project description

DXBench

A benchmark for evaluating LLMs on how well they can improve the developer experience.

One thing that developers hate is writing tests, so this benchmark evaluates how well LLMs are able to write tests for different features developers are working on.

Evaluate Your LLM

To evaluate your LLM on this benchmark:

  1. Install the dxbench package from pip: pip install dxbench
  2. Setup your LLM by implementing the Bot class
  3. Run the benchmark by: run(your_bot)

Here is an example:

from dxbench.bot import Bot
from dxbench.runner import run


class TestBot(Bot):
    def get_response(self, prompt: str) -> str:
        # Get your response here
        return response


bot = TestBot()
run(bot)

Contribute Test Cases

To contribute test cases, please:

  1. Fork this repository
  2. Install the dev packages: pip install ".[dev]"
  3. Add a function that should be tested in dxbench/cut. Make sure that your code is runnable!
  4. Register your code in dxbench/registry.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dxbench-0.0.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dxbench-0.0.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file dxbench-0.0.0.tar.gz.

File metadata

  • Download URL: dxbench-0.0.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for dxbench-0.0.0.tar.gz
Algorithm Hash digest
SHA256 62abf94f0cea9fdc29a63da6cc5226078ae445a4f6d3c10890c5c4597d2471b7
MD5 ca948bc0d3baa82a34fe0153c4367854
BLAKE2b-256 49f24a50986d2088df75bec411e8c189844851ddf6dc936e40ce2e9b2bc472bd

See more details on using hashes here.

File details

Details for the file dxbench-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: dxbench-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for dxbench-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9781db07fcd394fe482ad96b5be8d1b9a1533c65e50908a874db8e4c505491e0
MD5 7b2473941b23825903d307b2843fdda5
BLAKE2b-256 ad020444d7b38d6b1c2d139663e0c8d895bfe4d295c8e270bc9ccd2f2763a480

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page