By thinking about what is making your stakeholders the most unhappy at the moment, and improving on that particular pain point.Example: if #1 finishes in 2 seconds and #2 finishes in .4 seconds but sends 1.6MB into GC each run, how do you decide whether that extra 1.6MB of GC pressure is worth it for the faster execution time?
I read your question as "#1 is a bit slower, but #2 is a bit more annoying because of the GC, which should I choose?" We can't answer that, we don't have the context you have. Perhaps I'm misunderstanding your question; let me know.
You may find this relevant: Implementing SLOs -- chapter 2 of the Google SRE book.