/lua-benchmark

simple CLI tool to help visualize time complexity

Primary LanguageRust

lua-benchmark

This is a small CLI tool I put together in a few minutes to help visualize Big O time complexity for various algorithms. It benchmarks the code at various N values and exports them to a CSV file, which you can then graph with external software.

Installation

Clone the repo and cargo install --path . in the cloned directory, or do cargo install --git https://github.com/HyperCodec/lua-benchmark.

Features

You can configure the type of lua being used by changing the feature of the mlua dependency to something else (i.e. luajit) in the Cargo.toml of the cloned files.

Usage

benchmark --help

Examples

linear quadratic fibonacci binarySearch