mirror of
https://github.com/bspeice/speice.io
synced 2024-11-14 05:58:09 -05:00
Finish the pybind11 part
This commit is contained in:
parent
5c13a8cf8d
commit
1b24d3d092
@ -31,6 +31,7 @@ The C++ implementation is very simple:
|
||||
|
||||
```c++
|
||||
#include <cstdint>
|
||||
#include <pybind11/pybind.h>
|
||||
|
||||
inline std::uint64_t fibonacci(std::uint64_t n) {
|
||||
if (n <= 1) {
|
||||
@ -77,7 +78,7 @@ those steps here, but the full project is available at [INSERT LINK HERE].
|
||||
# it's simply to keep the processor busy.
|
||||
N = 1_000_000_000;
|
||||
|
||||
from fibonacci import fibonacci_gil, fibonacci_nogil
|
||||
from speiceio_pybind11 import fibonacci_gil, fibonacci_nogil
|
||||
```
|
||||
|
||||
We'll first run each function independently:
|
||||
|
Loading…
Reference in New Issue
Block a user