cloudfoundry / cloudfoundry/cloud_controller_ng

Evaluate if CC runs truffleruby

Open
#2,620 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

performance PoC unscheduled
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.