Skip to content

Commit

Permalink
add pytest-bench (pytest) benchmark result for 7beb64a
Browse files Browse the repository at this point in the history
  • Loading branch information
github-action-benchmark committed May 9, 2024
1 parent 0492c50 commit 7070b3a
Showing 1 changed file with 151 additions and 1 deletion.
152 changes: 151 additions & 1 deletion dev/bench/data.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
window.BENCHMARK_DATA = {
"lastUpdate": 1715294039765,
"lastUpdate": 1715296884410,
"repoUrl": "https://github.com/PyO3/pyo3",
"entries": {
"pyo3-bench": [
Expand Down Expand Up @@ -475738,6 +475738,156 @@ window.BENCHMARK_DATA = {
"extra": "mean: 159.83385984272337 nsec\nrounds: 199641"
}
]
},
{
"commit": {
"author": {
"email": "10486322+Icxolu@users.noreply.github.com",
"name": "Icxolu",
"username": "Icxolu"
},
"committer": {
"email": "noreply@github.com",
"name": "GitHub",
"username": "web-flow"
},
"distinct": true,
"id": "7beb64a8cac4873b151d87c8099c56c69c8f602e",
"message": "allow constructor customization of complex enum variants (#4158)\n\n* allow `#[pyo3(signature = ...)]` on complex enum variants to specify constructor signature\n\n* rename keyword to `constructor`\n\n* review feedback\n\n* add docs in guide\n\n* add newsfragment",
"timestamp": "2024-05-09T21:08:23Z",
"tree_id": "1501626acbee23abd79ac9b632e2b90bc2a58ec3",
"url": "https://github.com/PyO3/pyo3/commit/7beb64a8cac4873b151d87c8099c56c69c8f602e"
},
"date": 1715296862546,
"tool": "pytest",
"benches": [
{
"name": "tests/test_pyclasses.py::test_empty_class_init",
"value": 3888474.970595991,
"unit": "iter/sec",
"range": "stddev: 1.2271386852358618e-7",
"extra": "mean: 257.1702293474526 nsec\nrounds: 191571"
},
{
"name": "tests/test_pyclasses.py::test_method_call",
"value": 11097311.001878455,
"unit": "iter/sec",
"range": "stddev: 5.239597235934522e-9",
"extra": "mean: 90.11191989038865 nsec\nrounds: 112272"
},
{
"name": "tests/test_pyclasses.py::test_proto_call",
"value": 11550736.88140561,
"unit": "iter/sec",
"range": "stddev: 1.8663996827670306e-8",
"extra": "mean: 86.5745631873756 nsec\nrounds: 114065"
},
{
"name": "tests/test_pyclasses.py::test_empty_class_init_py",
"value": 7057208.583633418,
"unit": "iter/sec",
"range": "stddev: 1.827427178176905e-8",
"extra": "mean: 141.69908514807534 nsec\nrounds: 131148"
},
{
"name": "tests/test_pyclasses.py::test_method_call_py",
"value": 10917134.119119048,
"unit": "iter/sec",
"range": "stddev: 7.700480874738249e-9",
"extra": "mean: 91.59913115372575 nsec\nrounds: 106417"
},
{
"name": "tests/test_pyclasses.py::test_proto_call_py",
"value": 8301874.583509781,
"unit": "iter/sec",
"range": "stddev: 7.065383290642702e-9",
"extra": "mean: 120.45472259799308 nsec\nrounds: 82768"
},
{
"name": "tests/test_pyfunctions.py::test_none_py",
"value": 12453256.6588668,
"unit": "iter/sec",
"range": "stddev: 8.069445182204274e-9",
"extra": "mean: 80.3002802715058 nsec\nrounds: 126663"
},
{
"name": "tests/test_pyfunctions.py::test_none_rs",
"value": 12802875.281351833,
"unit": "iter/sec",
"range": "stddev: 1.011893472150642e-8",
"extra": "mean: 78.10745461658608 nsec\nrounds: 127470"
},
{
"name": "tests/test_pyfunctions.py::test_simple_py",
"value": 4553362.164509229,
"unit": "iter/sec",
"range": "stddev: 2.815860693731184e-8",
"extra": "mean: 219.61793590556218 nsec\nrounds: 199204"
},
{
"name": "tests/test_pyfunctions.py::test_simple_rs",
"value": 3952873.6100754202,
"unit": "iter/sec",
"range": "stddev: 2.237676181398165e-8",
"extra": "mean: 252.9805145935137 nsec\nrounds: 175439"
},
{
"name": "tests/test_pyfunctions.py::test_simple_args_py",
"value": 3961378.1843708702,
"unit": "iter/sec",
"range": "stddev: 2.1308548939133666e-8",
"extra": "mean: 252.43739765755686 nsec\nrounds: 193837"
},
{
"name": "tests/test_pyfunctions.py::test_simple_args_rs",
"value": 2302264.8861420974,
"unit": "iter/sec",
"range": "stddev: 1.4634637588747156e-7",
"extra": "mean: 434.35488506090144 nsec\nrounds: 198453"
},
{
"name": "tests/test_pyfunctions.py::test_simple_kwargs_py",
"value": 2608238.9567578407,
"unit": "iter/sec",
"range": "stddev: 3.3153137865688206e-8",
"extra": "mean: 383.40045393810294 nsec\nrounds: 195351"
},
{
"name": "tests/test_pyfunctions.py::test_simple_kwargs_rs",
"value": 2237739.14636353,
"unit": "iter/sec",
"range": "stddev: 1.3569621420429565e-7",
"extra": "mean: 446.87961133676566 nsec\nrounds: 184843"
},
{
"name": "tests/test_pyfunctions.py::test_simple_args_kwargs_py",
"value": 2525250.5640449184,
"unit": "iter/sec",
"range": "stddev: 3.624110236701989e-8",
"extra": "mean: 396.0003075489709 nsec\nrounds: 190840"
},
{
"name": "tests/test_pyfunctions.py::test_simple_args_kwargs_rs",
"value": 2060647.0821807222,
"unit": "iter/sec",
"range": "stddev: 1.9431403833860995e-7",
"extra": "mean: 485.28445683271946 nsec\nrounds: 185529"
},
{
"name": "tests/test_pyfunctions.py::test_args_kwargs_py",
"value": 3210000.966534733,
"unit": "iter/sec",
"range": "stddev: 2.6992488313069324e-8",
"extra": "mean: 311.52638594982176 nsec\nrounds: 191205"
},
{
"name": "tests/test_pyfunctions.py::test_args_kwargs_rs",
"value": 6308461.145830393,
"unit": "iter/sec",
"range": "stddev: 1.3141821572533536e-8",
"extra": "mean: 158.51726385934145 nsec\nrounds: 198808"
}
]
}
]
}
Expand Down

0 comments on commit 7070b3a

Please sign in to comment.