Skip to content

Commit

Permalink
Merge pull request #36 from twiby/version3.2
Browse files Browse the repository at this point in the history
update READMEs and meta data
  • Loading branch information
twiby authored Nov 13, 2024
2 parents c1faca7 + 52cd4ce commit 68dd6f0
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "twibint"
version = "0.3.1"
version = "0.3.2"
edition = "2021"
license = "GPL-3.0-only"
description = "Crate for arithmetic on arbitrarily large integers. Provides Python bindings as well."
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ More details and scripts about performance are available in the `benches`
folder.

TL;DR -> The current state of `twibint`s performance (v0.3.0) is:
Addition, Subtraction and Multiplication are faster than for Python
integers (Division is slightly slower), and sometimes faster then
`num-bigint` at some scales. Division remains quite slower than
`num-bigint`.
Addition, Subtraction, Multiplication, and Division are faster than
for Python integers. Compared to `num-bigint`, Addition is mostly
faster, Multiplication is equivalent, Subtraction and Division slightly
worse.

# List of features

Expand Down
6 changes: 3 additions & 3 deletions benches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
A very simple and naive scripts helps evaluate how the performance compares to
Python integers: `benches.py`.

Simply put, `twibint`'s addition and multiplication are faster, but division
is slightly slower. I've not produced a systematic study comparing the
2 option at different scales at this point.
Simply put, `twibint`'s multiplication, and division are much faster.
Addition is slightly faster. I've not produced a systematic study
comparing the 2 option at different scales at this point.

## comparing to `num-bigint`
Running the Python script `run_benchmarks.py` will run a series of benchmarks
Expand Down
Binary file modified benches/plots/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified benches/plots/asymetric_mul.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified benches/plots/div.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified benches/plots/mul.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified benches/plots/sub.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion benches/run_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

VERSIONS = {
"num-bigint": "0.4.6",
"twibint": "0.3.0",
"twibint": "0.3.2",
}

def run_benchmark(crate):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "twibint"
version = "0.3.1"
version = "0.3.2"
dependencies = ["maturin==1.1.0"]

[build-system]
Expand Down

0 comments on commit 68dd6f0

Please sign in to comment.