Skip to content

Commit

Permalink
[misc] include perf.csv and update some aspects of perf-compare
Browse files Browse the repository at this point in the history
  • Loading branch information
digikar99 committed Apr 20, 2024
1 parent b22d79a commit 968acae
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
21 changes: 11 additions & 10 deletions perf-compare/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,14 @@ Calls per second: 1626.3612

Table summarizing number of calls per second that the particular library can reach by either using ~PyObject_Call~ or ~PyObject_Str~. Blank column indicates either that no such facility is available, or I could not find how to use it.

| Library \ How | PyObject_Call | PyObject_Str |
| <l> | <r> | <r> |
|--------------------+---------------+--------------|
| Python | 1000000 | 1600000 |
| burgled-batteries3 | 16500 | - |
| PyCall.jl | 320000 | 500000 |
| py4cl2-cffi (SBCL) | 55000 | 210000 |
| py4cl2-cffi (CCL) | 16000 | 72000 |
| py4cl (SBCL) | 4000 | - |
| py4cl (CCL) | 2000 | - |
| Library \ How | PyObject_Call | PyObject_Str |
| <l> | <r> | <r> |
|---------------------------+---------------+--------------|
| Python | (x1) 1000000 | (x1) 1600000 |
| burgled-batteries3 | (x61) 16500 | - |
| PyCall.jl | (x3) 320000 | (x3) 500000 |
| py4cl2-cffi (SBCL 2.3.11) | (x20) 50000 | (x6) 265000 |
| py4cl2-cffi (SBCL 1.5.4) | (x22) 45000 | (x6) 260000 |
| py4cl2-cffi (CCL) | (x62) 16000 | (x22) 72000 |
| py4cl (SBCL) | (x250) 4000 | - |
| py4cl (CCL) | (x500) 2000 | - |
8 changes: 8 additions & 0 deletions perf-compare/perf.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Platform or Library,PyObject_Call,PyObject_Str
Python,1000000,1600000
PyCall.jl,320000,500000
burgled-battteries3,16500,
py4cl (SBCL),4000,
py4cl2-cffi (SBCL 2.3.11),50000,265000
py4cl2-cffi (SBCL 1.5.4),45000,260000
py4cl2-cffi (CCL),16000,72000
4 changes: 2 additions & 2 deletions perf-compare/run-py4cl2-cffi.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
(pystart)

(print-and-eval-perf
100000
1000000
(lambda (x)
(declare (optimize speed))
(pystr x)))

(print-and-eval-perf
100000
1000000
(lambda (x)
(declare (optimize speed))
(pycall "str" x)))

0 comments on commit 968acae

Please sign in to comment.