Specs are very slow when upgrading to Ruby 3.1

I’m upgrading our app from Ruby 2.7 to Ruby 3.2, one minor version at a time.

I’ve got the specs passing on version 3.0, and the whole suite takes about 30 minutes.

When I upgrade to Ruby 3.1, almost all of the specs pass, but the entire suite takes around 2.5 hours.

Has anyone else had a similar experience?

Slow specs after upgrading Ruby could be due to various factors. I recommend profiling your test suite with tools like `ruby-prof` or `stackprof` to identify performance bottlenecks. Additionally, ensure that you're using the latest version of Rails, test gems, and other dependencies, as these updates might include performance improvements.

Happy coding!