3 ms·
C FFI takes 123 seconds?! That's pretty insane, but if you mean 123.2 ms, it's still very bad. Doesn't feel like that would be the case from using NumPy, PyTor
by sk0g 4y ago
C FFI takes 123 seconds?! That's pretty insane, but if you mean 123.2 ms, it's still very bad.
Doesn't feel like that would be the case from using NumPy, PyTorch and the likes, but they also typically run 'fat' functions, where it's one function with a lot of data that returns something. Usually don't chain or loop much there.
Edit: the number was for 500 million calls. Yeah, don't think I've ever made that many calls. 123 seconds feels fairly short then, except for demanding workflows like game dev maybe.
- seniorsassycat 4y ago500 million calls in 123 seconds
- NoahKAndrews 4y agoI think that's the time to run the whole benchmark suite. Compare to the results for go, for example.