No, I'm not comparing 8 years to 2 years. Read the article again. It compares the first 645 days of each presidency. If you want to compare 8 years to 2 years it would be 182% for Obama to 29% for Trump.
I will agree with you on one point, and that is the market was bottoming when Obama came into office, but don't say the market has done better under Trump than Obama because it is not true.