ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

Syed Faraaz Ahmad

@eregon How come CRuby does this (considerably) faster than TruffleRuby?

MRI 3.3.0-preview1 completes this in under 4 seconds.

TruffleRuby 23.0.0 Native takes around 60 seconds.

I'm unable to wrap my head around this

@faraaz That sounds like a performance bug, it could be in prism or TruffleRuby. Prism uses FFI + pure-Ruby deserialization on non-CRuby so that part could be slower than the C ext on CRuby, but it was fairly close last time I looked IIRC. Could you open a TruffleRuby issue with reproduction instructions? Also you might want to try 23.1.0, 23.0 is not the latest release.