Home

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

CommandDescription
task fuzzCheck the correctness against cockroachdb/apd and shopspring/decimal
task sqlCheck compatibility with PostgreSQL, MySQL, and SQLite
task benchCompare CPU and memory usage against cockroachdb/apd and shopspring/decimal