truffleruby
truffleruby copied to clipboard
A high performance implementation of the Ruby programming language, built on GraalVM.
(first issue opened here; if I'm off the mark or in the wrong spot, my apologies and please let me know) JSON-parsing data read from a gzipped file with Zlib::GzipReader...
```ruby def foo(a, b) a % b end loop do foo(rand(10), 1 + rand(10)) end ``` ```s ;Comment 95: 12 stack:28|DWORD = MOVE r11|DWORD moveKind: DWORD 0x128a606ff: mov dword ptr...
After #2454, for this test program ```ruby def foo(time) time.strftime('%m') end loop do foo(Time.now) end ``` We get this load and null guard: But that load is from: ```java @CompilationFinal(dimensions...
This is mostly a TRegex issue, but I can induce it with a Ruby regexp and it ties in with the general work around TruffleRuby regexes I've been doing. Making...
While investigating regex performance, I've noticed that line anchors are much slower than global anchors, even when a string consists of a single line. Most regexps that I've encountered that...
``` bundle exec rspec ./spec/rspec/core/example_group_spec.rb:1007 ``` cruby 2.7.1 ``` bundle exec rspec ./spec/rspec/core/example_group_spec.rb:1007 Run options: include {:locations=>{"./spec/rspec/core/example_group_spec.rb"=>[1007]}} exclude {:ruby=>#} Randomized with seed 62739 RSpec::Core::ExampleGroup #before, after, and around hooks when...
I'm experimenting with some polyglot data analyses and for that, I'm move different arrays between Truffle languages. When I import a Ruby string in Python and JavaScript, it behaves just...
### Repro ``` GraalVM MultiLanguage Shell 19.0.0 Copyright (c) 2013-2019, Oracle and/or its affiliates JavaScript version 19.0.0 Ruby version 2.6.2 js> ruby> ruby> Polyglot.export('string', 226.chr) Internal error occured: org.graalvm.polyglot.PolyglotException: org.truffleruby.language.control.RaiseException:...
I was trying out truffleruby with a small gem to see how it would perform against MRI : https://gitlab.com/gitlab-org/gitlab_kramdown/blob/improve-benchmark/benchmark/benchmark.rb and one thing that caught my attention was the fact that...
Used https://github.com/jodosha/ruby-web-bench. TruffleRuby is almost **50x** slower than MRI 2.7 ππΏπΎ ``` git clone https://github.com/jodosha/ruby-web-bench.git cd ruby-web-bench gem install roda puma rackup apps/roda-10000.ru wrk -t 2 http://localhost:9292/j/j/j/j ``` **TruffleRuby 2.1.0-dev**...