Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "py-framels"
version = "0.7.1"
version = "0.7.7"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -9,5 +9,5 @@ name = "py_framels"
crate-type = ["cdylib"]

[dependencies]
framels = "0.7.6"
pyo3 = "0.22.3"
framels = "0.7.7"
pyo3 = "0.25.0"
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,21 @@ Return `['RenderPass_Beauty_1_*****.exr@0-96', 'RenderPass_DiffuseKey_1_*****.ex
## Benchmark

This is benchmarks of the python binding py-framels vs pyseq at diffirent level of inputs.
Time is always in seconds.
Time is always in seconds. Running **python 3.11**

![benchmark](benchmark/bench_100.png)

| paths | 1 | 2 | 5 | 10| 50| |
| paths | 1 | 2 | 5 | 10| 50| 100 |
|------------|--------|--------|--------|--------|--------|--------|
| py_framels |0.004966|0.000201|0.000125|0.000203|0.000999|0.001802|
| pyseq |4.4e-05 |0.000172|0.000291|0.000645|0.002817|0.005725|
| py_framels |0.000119|4.8e-05 |3.2e-05 |4.2e-05 |0.000126|0.000269|
| pyseq |3.3e-05 |7.2e-05 |0.000201|0.000301|0.001697|0.003202|

![benchmark](benchmark/bench_25000.png)

| paths | 100 | 1000 |20000 | 25000 |
|------------|--------|--------|--------|--------|
| py_framels |0.002173|0.015975|0.359272|0.420266|
| pyseq |0.005592|0.060121|2.632283|3.918997|
| py_framels |0.000247|0.001901|0.037153|0.044438|
| pyseq |0.002923|0.031959|0.627248|0.799049|

Note: there is an acceleration at the level of 20000 paths, this is due to the fact
framels is multi-threaded at a threshold of 100000 paths and the bench simulate
Expand Down
Binary file modified benchmark/bench_100.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 benchmark/bench_25000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[project]
name = "py-framels"
version = "0.7.7"
description = "Python bindings for the framels library"
readme = "README.md"
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Rust",
Expand All @@ -13,3 +16,6 @@ build-backend = "maturin"

[tool.maturin]
features = ["pyo3/extension-module"]

[dependency-groups]
dev = ["matplotlib>=3.5.3", "pyseq>=0.9.0"]
Loading
Loading