That's winning at the special olympics. They are both so slow you'd never use either for cpu constrained tasks.
I re-wrote the same code using python on a lark to see how bad it would be, colour me very surprised when it actually beat the original code by a considerable margin!