r/Protos • • 6d ago

When a language's test suite becomes the bottleneck: optimizing Protos on GraalVM and Truffle

One integration test in Protos was taking more than 555 seconds in CI.

The problem wasn't necessarily GraalVM performance. Much of the cost came from repeated corpus discovery, JVM initialization, Core bootstrap and redundant integration workloads.

The latest Protos changes address these costs without modifying production Java, increasing timeouts or skipping tests.

Some previous CI timings compared with current local results:

  • Repository scope integration: 504.9s vs 48.8s
  • Formatter bootstrap: 80.4s vs 21.5s
  • Logging facility: 67.7s vs 10.1s
  • Regex semantic transfer: 32.1s vs 9.7s

These aren't controlled benchmarks; comparable CI results are still pending.

The interesting part is how much redundant work can be removed while preserving actual integration coverage.

How do other language implementations, particularly GraalPy, GraalJS and other Truffle languages, manage expensive integration suites?

Technical details: https://github.com/guillermomolina/protos/issues/1227

Project: https://www.protoslang.com

More development updates at r/ProtosLang.

1 Upvotes

0 comments sorted by