Awesome
decimal
This repository contains tests and benchmarks for the decimal arithmetic library govalues/decimal.
Getting Started
Clone the repository:
git clone https://github.com/govalues/decimal-tests.git
cd decimal-tests
Install the necessary dependencies:
go install golang.org/x/perf/cmd/benchstat@latest
go install github.com/go-task/task/v3/cmd/task@latest
Running Tests
Command | Description |
---|---|
task fuzz | Check the correctness against cockroachdb/apd and shopspring/decimal |
task sql | Check compatibility with PostgreSQL, MySQL, and SQLite |
task bench | Compare CPU and memory usage against cockroachdb/apd and shopspring/decimal |