cloudfoundry / cloudfoundry/cloud_controller_ng
Evaluate if CC runs truffleruby
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 207
- Forks
- 373
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 56
Description
Issue
Different sources claim alternative ruby implementations as well as CRuby 3.x do have a positive performance impact on rails applications that can be quite substantiell.
Context
See https://eregon.me/blog/2022/01/06/benchmarking-cruby-mjit-yjit-jruby-truffleruby.html for reference to a benchmark comparing multiple ruby interpreters also with a rails application benchmark.
We should try out some of them firstly if they work and also if they improve overall performance in a mensurabel way.
As truffleruby claims to be the only ruby interpreter (other than CRuby) which can run rails unit tests successfully(because it is the most compatible one to CRuby) and it also shows the highest potential for improving performance according to the synthetic benchmarks, i feel high sympathy to try it out instead of a less compatible and less performant alternative interpreter like jruby.
Acceptance Criteria
- Have a branch of CC_NG that runs with truffleruby
- Measure impact on performance (single api call speed)
- Measure impact on throughput (amount of requests per second)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by checking whether CC_NG's existing Rails unit-test setup runs under TruffleRuby, then establish how to measure a single API call and requests per second. Compare those results with the current Ruby runtime; done means a working CC_NG branch and recorded performance and throughput measurements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- backend, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100