Skysoft13

Skysoft13

How is the performance of Elixir for blockchain apps?

I am try to learning elixir since 5 month, and I had a project in golang for mobile back-end for blockchain app, it had amazing performance, I am just curious about performance of elixir for blockchain apps, any idea?

Most Liked

kokolegorille

kokolegorille

This book might interest You…

mindok

mindok

As @victorbjorklund says, it depends on what you are after. Elixir performance characteristics are pretty well documented in these forums. Examples include:

Elixir language potential evaluation (comparison with go)

Elixir is not great at heavy duty number-crunching (although, depending on what you are doing, Elixir-Nx is addressing that).

However, for things like web-apps, the templating system and process model make for very efficient, performant web-apps that stay predictably responsive under load - e.g. no “stop-the-world” garbage collection.

“Blockchain apps” is a very broad set of possible applications with wildly different performance requirements so I don’t think you’re going to get a better answer without being more specific.

victorbjorklund

victorbjorklund

Probably helps if you expand a bit what the blockchain app is (which helps understand where bottlenecks are). Its a very broad category from exchanges (where every ms matters) to web3 nft apps etc.

dimitarvp

dimitarvp

Any workload that’s I/O bound makes the used programming language almost irrelevant. Simply because I/O is the CPU waiting on periphery e.g. network and file operations.

Does it really matter if your processing code finishes in 5 or 5000 microseconds if the I/O operation inside the same function takes 250_000 microseconds? No, it doesn’t.

So your evaluation of the used programming language for this task should ask other questions like: do you need strong static typing so you can predict all errors in advance (Rust, Haskell, OCaml / F#), do you just want to work with something familiar (for many that’s Python or JavaScript), do you need a language with excellent error-handling runtime (Erlang/Elixir), how good is the community library coverage of the thing you want to do (for most people that is the ultimate deciding factor btw), and maybe others.

Only you can answer those questions. But generally, if a lot of I/O is involved, most languages are adequate, Elixir included.

Where Next?

Popular in Questions Top

pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
dokuzbir
Hello, I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these buyer = %{ id: ...
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
hpopp
To simplify some tasks at work, I wrote and published this package yesterday. It’s a simple macro that enables Access behaviour on struct...
New

Other popular topics Top

yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New

We're in Beta

About us Mission Statement