From 18f5fd1990300dd2a49cd0dacd9c08028d7026e6 Mon Sep 17 00:00:00 2001 From: github-action-benchmark Date: Sun, 19 May 2024 21:23:12 +0000 Subject: [PATCH] add pytest-bench (pytest) benchmark result for 3e4b3c5c52e06d6003a4a7be200ad8feb21e50ad --- dev/bench/data.js | 152 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 151 insertions(+), 1 deletion(-) diff --git a/dev/bench/data.js b/dev/bench/data.js index 6a61d169eb7..1f534f9f0ad 100644 --- a/dev/bench/data.js +++ b/dev/bench/data.js @@ -1,5 +1,5 @@ window.BENCHMARK_DATA = { - "lastUpdate": 1716153697078, + "lastUpdate": 1716153791589, "repoUrl": "https://github.com/PyO3/pyo3", "entries": { "pyo3-bench": [ @@ -485782,6 +485782,156 @@ window.BENCHMARK_DATA = { "extra": "mean: 153.67997876439873 nsec\nrounds: 64986" } ] + }, + { + "commit": { + "author": { + "email": "mail@davidhewitt.dev", + "name": "David Hewitt", + "username": "davidhewitt" + }, + "committer": { + "email": "noreply@github.com", + "name": "GitHub", + "username": "web-flow" + }, + "distinct": true, + "id": "3e4b3c5c52e06d6003a4a7be200ad8feb21e50ad", + "message": "docs: attempt to clarify magic methods supported by PyO3 (#4190)\n\n* docs: attempt to clarify magic methods supported by PyO3\n\n* Update guide/src/class/protocols.md\n\nCo-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com>\n\n---------\n\nCo-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com>", + "timestamp": "2024-05-19T20:13:11Z", + "tree_id": "c2f5d4718a93a2a1b2222e13a2a3a9855d6f6d31", + "url": "https://github.com/PyO3/pyo3/commit/3e4b3c5c52e06d6003a4a7be200ad8feb21e50ad" + }, + "date": 1716153768587, + "tool": "pytest", + "benches": [ + { + "name": "tests/test_pyclasses.py::test_empty_class_init", + "value": 8461940.73944522, + "unit": "iter/sec", + "range": "stddev: 1.0002918292583286e-8", + "extra": "mean: 118.1761998566728 nsec\nrounds: 198453" + }, + { + "name": "tests/test_pyclasses.py::test_method_call", + "value": 13211301.78318455, + "unit": "iter/sec", + "range": "stddev: 5.676507963589739e-9", + "extra": "mean: 75.69276793546628 nsec\nrounds: 131683" + }, + { + "name": "tests/test_pyclasses.py::test_proto_call", + "value": 13222435.378596026, + "unit": "iter/sec", + "range": "stddev: 6.1986306414745815e-9", + "extra": "mean: 75.62903287988549 nsec\nrounds: 130294" + }, + { + "name": "tests/test_pyclasses.py::test_empty_class_init_py", + "value": 7150925.818508397, + "unit": "iter/sec", + "range": "stddev: 7.103965074995061e-9", + "extra": "mean: 139.8420323997416 nsec\nrounds: 68274" + }, + { + "name": "tests/test_pyclasses.py::test_method_call_py", + "value": 9797548.084884865, + "unit": "iter/sec", + "range": "stddev: 1.2467816667948472e-8", + "extra": "mean: 102.06635286054343 nsec\nrounds: 100221" + }, + { + "name": "tests/test_pyclasses.py::test_proto_call_py", + "value": 8937864.175378194, + "unit": "iter/sec", + "range": "stddev: 7.11413086913972e-9", + "extra": "mean: 111.88355298067464 nsec\nrounds: 89598" + }, + { + "name": "tests/test_pyfunctions.py::test_none_py", + "value": 13176800.8643033, + "unit": "iter/sec", + "range": "stddev: 1.1332234799142631e-8", + "extra": "mean: 75.89095489095966 nsec\nrounds: 134518" + }, + { + "name": "tests/test_pyfunctions.py::test_none_rs", + "value": 14240186.55107743, + "unit": "iter/sec", + "range": "stddev: 4.822343989033998e-9", + "extra": "mean: 70.22379913445297 nsec\nrounds: 142593" + }, + { + "name": "tests/test_pyfunctions.py::test_simple_py", + "value": 4676566.762241672, + "unit": "iter/sec", + "range": "stddev: 1.6308524100865088e-8", + "extra": "mean: 213.8320804214626 nsec\nrounds: 198020" + }, + { + "name": "tests/test_pyfunctions.py::test_simple_rs", + "value": 4277863.132435562, + "unit": "iter/sec", + "range": "stddev: 2.1049917906592056e-8", + "extra": "mean: 233.76156951301505 nsec\nrounds: 193837" + }, + { + "name": "tests/test_pyfunctions.py::test_simple_args_py", + "value": 4045167.416046517, + "unit": "iter/sec", + "range": "stddev: 2.1222252973497812e-8", + "extra": "mean: 247.20855706321666 nsec\nrounds: 196890" + }, + { + "name": "tests/test_pyfunctions.py::test_simple_args_rs", + "value": 3464297.6667671944, + "unit": "iter/sec", + "range": "stddev: 4.443346364460707e-8", + "extra": "mean: 288.65879788360616 nsec\nrounds: 163079" + }, + { + "name": "tests/test_pyfunctions.py::test_simple_kwargs_py", + "value": 2328162.0587146413, + "unit": "iter/sec", + "range": "stddev: 2.2424086053856215e-7", + "extra": "mean: 429.5233642593126 nsec\nrounds: 29314" + }, + { + "name": "tests/test_pyfunctions.py::test_simple_kwargs_rs", + "value": 3509829.2307298677, + "unit": "iter/sec", + "range": "stddev: 2.4216826088306264e-8", + "extra": "mean: 284.9141466042353 nsec\nrounds: 152602" + }, + { + "name": "tests/test_pyfunctions.py::test_simple_args_kwargs_py", + "value": 2442350.7401890745, + "unit": "iter/sec", + "range": "stddev: 3.353098126803261e-8", + "extra": "mean: 409.44160211918825 nsec\nrounds: 189790" + }, + { + "name": "tests/test_pyfunctions.py::test_simple_args_kwargs_rs", + "value": 3263474.148940275, + "unit": "iter/sec", + "range": "stddev: 2.3868184196207448e-8", + "extra": "mean: 306.4219155297195 nsec\nrounds: 142796" + }, + { + "name": "tests/test_pyfunctions.py::test_args_kwargs_py", + "value": 3228600.7529097595, + "unit": "iter/sec", + "range": "stddev: 2.3779517887353883e-8", + "extra": "mean: 309.7317000557456 nsec\nrounds: 101021" + }, + { + "name": "tests/test_pyfunctions.py::test_args_kwargs_rs", + "value": 7450775.845930065, + "unit": "iter/sec", + "range": "stddev: 9.495480822848895e-9", + "extra": "mean: 134.2142107987644 nsec\nrounds: 73606" + } + ] } ] }