Replies: 6 comments 2 replies
-
We are moving the same way https://twitter.com/halturin/status/1634165290564034562 |
Beta Was this translation helpful? Give feedback.
-
in terms of network messaging Erlang has poor performance due to the ETF encoder/decoder (lists/maps especially. as you may know, strings in Erlang are lists). Besides that, Ergo ETF has stack-less implementation
it depends on where it's used. In Ergo we use most of the time RWMutex, which is not the same as regular Mutex in terms of performance. |
Beta Was this translation helpful? Give feedback.
-
I move it to the Discussion. Hope you don't mind. |
Beta Was this translation helpful? Give feedback.
-
In case you wonder about MPSC implementation in Ergo https://github.com/ergo-services/ergo/blob/master/lib/mpsc.go Here is the benchmark channel vs MPSC queue https://github.com/ergo-services/ergo/blob/master/lib/mpsc_test.go#L188 |
Beta Was this translation helpful? Give feedback.
-
It looks good . |
Beta Was this translation helpful? Give feedback.
-
But erlang can still beat ergo in many situations !! For example : When need in-memory transactional systems |
Beta Was this translation helpful? Give feedback.
-
https://erlangforums.com/t/ring-benchmark-erlang-vs-go/684/12
in erlang community we did some benchkmarks around (raw golang) and ( erlang )
erlang was winner in message passing.
erlang internally used lock-free algorithm for registry and communication between mailbox.
but golang used mutex for channels !!! and in your framework heavily using mutex for synchronization !!!
how is ergo with overhead of framework can beats erlang ??!!!
Beta Was this translation helpful? Give feedback.
All reactions