An exercise hits the time limit when submitted from CLI but passes the time constraints when submitted through the web editor

Here is my solution to the Luhn exercise in Rust.

All the iterations had the same code but the first two iterations did not pass the tests due to time constraints. They were submitted through the Linux command line. On the other hand, the assignment was accepted when I copypasted my exercise implementation into the web editor and submitted it.