4 ms·
It's true that ruby is slow, but your algorithms and code organization matters more than the language. Quick sort in BASIC will still beat bubble sort in C fo
by segmondy 10y ago
It's true that ruby is slow, but your algorithms and code organization matters more than the language. Quick sort in BASIC will still beat bubble sort in C for a sufficiently large data. Are you doing DB tests? consider using a clean in memory DB. Are you calling 3rd party API's? Black box it, mock, stub, dummy em. 10 minutes is really a lot, unless you happen to have thousands up thousands of tests and running on a raspbery pi. Put your tests through a profile to find out why it's taking too long.