While both trips were similar in pomp, pageantry and platitudes, AFP takes a look at how the two visits differed:
- How were the two leaders received? -
Both Putin and Trump received red-carpet welcomes at the airport when they arrived in Beijing, greeted by smiling Chinese youth waving flags and chanting "welcome!"
Trump was met on the tarmac by Chinese Vice President Han Zheng -- marking an "elevation" compared to his previous visit in 2017, when he was greeted by then-state councillor Yang Jiechi, said Dylan Loh, an associate professor at Singapore's Nanyang Technological University.
Meanwhile, Putin was received by Foreign Minister Wang Yi, a lower-ranking official who nevertheless is a member of the elite Politburo party body, comprising of around 20 of the country's top leaders.
"You could argue that Wang is also a Politburo member who has more substantial authority, especially over foreign affairs," said Lizzi Lee, a fellow at the Asia Society Policy Institute's Center for China Analysis.
But, she cautioned, "who greets a leader on the runway is only roughly relevant to, and usually not the clean-cut indicator of, how Beijing ranks the relationship".
It is important to note, however, that Putin is a more frequent visitor to China compared to Trump, with this being the Russian leader's 25th visit, Loh added.
- What was the tone of opening remarks? -
Both Trump and Putin heaped praise on Xi, with the US president describing him as a "great leader" and "friend", while Putin called him a "dear friend" and lamented how "a day apart feels like three autumns".
Xi struck a warmer tone with Putin, hailing an "unyielding" relationship which has "upheld international fairness and justice".
He also said the China-Russia relationship has entered a "new stage" of greater achievements and faster development.
The Chinese leader used less effusive tones with Trump, saying the two sides "should be partners and not rivals", while warning him the issue of Taiwan could push their two countries into conflict.
The tonal difference matters, but is "pretty consistent" with the nature of their respective relationships, said Lee.
"With Russia, the bilateral relationship is more predictable."
The language taken with Trump is "necessarily more guarded" as the US-China relationship is "far more economically and geopolitical consequential, complicated and sensitive", Lee added.
- What did the two leaders gain? -
Putin and Xi signed a slew of agreements Wednesday on trade, media and energy.
Putin has also advocated construction of a second major natural gas pipeline from Russia to China through Mongolia called the Power of Siberia 2.
The two leaders reached a "basic understanding" on "the route and how it will be built", according to the Kremlin, though key details including a timeline have yet to be ironed out.
China also extended a visa-free policy for Russian citizens.
In comparison, Trump's visit to Beijing last week yielded little in the way of immediate concrete announcements.
"The Trump-Xi meeting was never going to realistically yield big gains and substantive breakthroughs given how competitive and even adversarial the relationship has been," Loh told AFP.
"So the gains and agreements were naturally always going to be modest," Loh added.
While Trump had sought to stabilise relations with China, he said, Russia seeks to "shepherd an already strong relationship" and "consolidate further areas of cooperation" with Beijing.
Asia Society's Lee said she would not overstate the lack of deliverables from the Trump summit as preparations were rushed and more concrete outcomes will emerge in the coming days and months.
"For now, the (Trump-Xi) leadership summit seems to have been more about big picture tone setting of the relationship, and creating some political space for follow-up negotiations."
- Have relations changed? -
Russia remains China's most significant strategic partner, the analysts said.
"The agreements and understanding reached (during this visit) reflects that," Loh said.
A series of recent visits to Beijing from world leaders this year also highlights China's continued "advantageous geopolitical position" said Lim Tai Wei, a professor and East Asia expert at Japan's Soka University.
These visits show that many "great powers" are courting support from Beijing, Lim added, as it seeks to present itself as a more stable alternative to Washington.
Xi called the US-China relationship the "most important" in the world at a state banquet held in Beijing during Trump's visit.
"There is a large amount of truth to it even as the US and China continue to view each other with deep mistrust," Loh said.