[erlang-questions] About Erlang system performance
Tim Watson
watson.timothy@REDACTED
Sat Nov 10 05:08:38 CET 2012
RabbitMQ compiles a subset of modules using HiPE, where this is deemed
appropriate, and has a pretty huge commercial user base. For details
of what gets hipe compiled see:
- https://github.com/rabbitmq/rabbitmq-server/blob/master/src/rabbit.erl#L190
- https://github.com/rabbitmq/rabbitmq-server/blob/master/src/rabbit.erl#L255
And an extract from the bug report referenced in the first link states
"according to the hipe docs, performance suffers when the hipe-ed code
does little besides 'receive', or makes calls to non-hipe code"...
But for some code it makes a big positive difference.
Cheers,
Tim
On 9 November 2012 20:12, Michael Truog <mjtruog@REDACTED> wrote:
> I think the accepted answer is that if HiPE was normally used in production, it would be the default compilation mode for the Erlang VM (and OTP). Since HiPE is not the default, and its internals are not documented, perhaps it is just to be regarded as an experimental feature that may change in the future.
>
> On 11/09/2012 05:16 AM, Valentin Micic wrote:
>> Unrelated, but would be interesting to find out -- are there any commercial-grade (let alone carrier-grade) systems that take advantage of HiPE?
>>
>>
>> V/
>>
>> On 09 Nov 2012, at 2:11 PM, Schneider wrote:
>>
>>> you're right. HIPE generates compiled code.
>>> my mistake.
>>> take a look here for more info's about HIPE:
>>> http://user.it.uu.se/~kostis/Papers/erlang03.pdf
>>>
>>> greatz Johannes
>>>
>>>
>>> On Fr 09 Nov 2012 13:07:49 CET, Matti Oinas wrote:
>>>> Correct me if I'm wrong but doesn't HIPE compile to native code?
>>>>
>>>> --
>>>> Matti
>>>>
>>>> On Fri, Nov 9, 2012 at 1:57 PM, Schneider <js@REDACTED> wrote:
>>>>> Erlang is a language, which produced byte-code which get' interpreted by the
>>>>> Erlang engine. C++ instead generates mashing-code which has on the one hand
>>>>> a much better performance, on the other hand,
>>>>> some disadvantages like incompatibility between different OSs.
>>>>>
>>>>> greatz Johannes
>>>>>
>>>>>
>>>>> On Fr 09 Nov 2012 09:42:21 CET, hume npx wrote:
>>>>>> Hi, all:
>>>>>> I'am new to erlang, after investigate some benchmark such as at
>>>>>> http://shootout.alioth.debian.org/u64q/which-programs-are-fastest.php,
>>>>>> I found that erlang compiler is not so good at speed? the benchmark
>>>>>> shows that erlang Hipe is 13x slowdown compared to C++, as compared to
>>>>>> Haskell GHC (3.3x slowdown), go 2.98x slowdown or even javascript v8
>>>>>> is about 1x faster than erlang, I investigated the erLLVM project
>>>>>> which reported similar results to Hipe, you know performance is so
>>>>>> important nowadays, what caused the hard to improve performace of
>>>>>> erlang or just there are not people working on it? Erlang is
>>>>>> attractive to me after several days studying, but with great
>>>>>> performance will be more attractive and competitive to some languages
>>>>>> such as go etc.
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> erlang-questions mailing list
>>>>>> erlang-questions@REDACTED
>>>>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> erlang-questions mailing list
>>>>> erlang-questions@REDACTED
>>>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> erlang-questions@REDACTED
>>> http://erlang.org/mailman/listinfo/erlang-questions
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list