Skip to main content

A CLI tool for programming language speed benchmarks

Project description

Velocicode 🚀

Velocicode is a high-performance command-line tool for benchmarking programming language speeds. It allows you to run standard algorithms across multiple languages and compare their execution time with professional, interactive reports.

Features ✨

  • Multi-Language Support: Benchmarks Python, C++, Rust, Go, and JavaScript (Node.js).
  • Standard Algorithms:
    • fibonacci (Recursion intensity)
    • matrix_mul (Floating point & Cache)
    • quicksort (Memory & Sorting)
    • primes (Sieve of Eratosthenes)
  • Premium UI:
    • Beautiful terminal output using the Rich library.
    • Rankings with Medals (🥇 🥈 🥉).
    • Relative Speed comparisons (e.g., 1.00x vs 45.9x).
  • Data Export:
    • JSON: Raw data export for analysis.
    • HTML: Interactive reports with Charts for presentations.

Installation

pip install velocicode

Usage

1. Run Benchmarks

Run all benchmarks with default settings:

velocicode run

Filter by specific algorithm or language:

# Run only Matrix Multiplication in Rust and Go
velocicode run --filter-algo matrix_mul --filter-lang rust,go

2. Generate Reports 📊

Export results to JSON or generate a visual HTML report:

velocicode run --html report.html --json results.json

Open report.html in your browser to see interactive bar charts!

3. Check Compilers

Velocicode relies on system compilers. Check what you have installed:

velocicode check

Requirements

[!IMPORTANT] This tool requires external compilers. pip installs the runner, but you need the languages installed:

  • Python 3.7+
  • g++ (for C++)
  • rustc (for Rust)
  • go (for Go)
  • node (for JavaScript)

License

MIT

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

velocicode-0.4.3.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

velocicode-0.4.3-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file velocicode-0.4.3.tar.gz.

File metadata

  • Download URL: velocicode-0.4.3.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for velocicode-0.4.3.tar.gz
Algorithm Hash digest
SHA256 a20c41f9849b8b379be1264586947e317cc01471583c1ad242d1ffbb9517126a
MD5 f8475194e5a6c653dd018f87989c0165
BLAKE2b-256 65f4f8e0c14addcc36b86b8edf93ba0ccc2a4aa7a50766e8c679f986f58ab8a7

See more details on using hashes here.

File details

Details for the file velocicode-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: velocicode-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for velocicode-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a51c7f4bc7feded1f54abf5f3164c68c7764c1ae31cb2fabb2af86884834dc20
MD5 8ccd3ab29779fd4b932e3e5d6b126564
BLAKE2b-256 a32df4d9078a33aa7f1eba3395dc28ca748046e9060d8ed2115c72eff8dc9817

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