It really depends on a number of factors, including the quality of your book, your marketing efforts, and luck. That said, there are some general things to keep in mind.
Traditional publishers tend to give authors an advance on their future royalties. This means that the author won't make any money from book sales until they have earned back their advance- which could take years. So, in that sense, traditional publishing might not be the best option if you're looking to make money quickly.
However, traditional publishers also tend to have more money to put into marketing and promotions- meaning that your book is more likely to reach a larger audience. If your book is successful, you will ultimately make more money from traditional publishing.
Of course, with self-publishing, you get to keep a larger percentage of the royalties- typically 70-80%. So, if your book is successful, you will make more money in the long run.
It really depends on your specific situation and what you're looking for. There's no easy answer.