Closed pallix closed 7 years ago
Probably because no effort has gone into optimizing the library? I could guess at a few issues - OS process separation from the Erlang VM (for reliability) comes to mind, but I don't know. I'd certainly be happy to get PRs that improve performance, but since I'm barely doing 10 KiB/s (115200 baud) on any use of mine, I can't say that this is a priority for me.
Do you think the Erlang Port make the communication slower?
https://nmuth.svbtle.com/some-informal-benchmarks-on-language-interop-with-elixir-ports
@pallix Give that a read. Ports basically happen over stdin/stdout.
I am sending 1,1MB of data with this code:
and reading with
cat
. I observe a transmission rate of about 77 KiB/s (77 kilobyte/sec).When doing the same experiment with PySerial, the transmission rate is of 88.7 KiB/s.
What can explain the performance drop? I would expect same speed as the test is IO bound.