Played around with some Rust and Python interop. Basically, checked primes from 0 to one million. Pretty cool results! * Pure rust - 764 ms * Pure python - 9293 ms * FFI with PyO3, calling rust from python - 1162 ms 2 atbildes

rihards paskausks
(2019-12-08 16:22:12)
@twitter
Played around with some Rust and Python interop. Basically, checked primes from 0 to one million. Pretty cool results! * Pure rust - 764 ms * Pure python - 9293 ms * FFI with PyO3, calling rust from python - 1162 ms
rihards paskausks
(2019-12-08 19:20:07)
@twitter
Decided to test WASM too, for the heck of it. 500 - 600 ms, damn.
rihards paskausks
(2019-12-08 20:07:36)
@twitter
Takes around a second on MS Edge lol. If you're curious yourself, have at it: https://t.co/1OdqFkXkGu

© 2009-2017 civciv ;)