The Roman empire and the Chinese empire began at relatively the same time (25bc vs 220bc), yet the Chinese empire survived until the early 20th century. Some would argue it still exists today as the borders are largely the same.
There are a few general assumptions that need to be addressed first, namely the notion of what constitutes the "Roman" empire and the "Chinese" empire.
The question assumes the Roman Empire began in 25BC, which is the technical starting date assuming the accession of Augustus. But the polity of Rome existed long before that as the Republic, of which the Empire was very much a continuation of Rome. And Rome would continue to exist through the Eastern Roman Empire, which always considered itself as "Roman", until the fall of Constantinople in AD1453. So if we count from the beginning of the Roman Republic c. 509BC and mark the end of Rome as an entity in AD1453, that's about two thousand years.
Next, what is the "Chinese" empire? Your date assumes the ascension of Qin Shi Huang as the first ruler of the imperial dynasties. The Qin lasted less than 20 years before the Han took over. Do we mark this as the end of the empire, or a continuation? Do we mark the end of the Han 400 years later with the breakup into the Three Kingdoms era as a continuation because the region is still ruled by the majority Han Chinese? Do we again count the fragmentation after the Jin and Tang dynasties? If we only count the continuation of "Chinese" reign, do we start over with the Mongol invasion and the beginning of the Yuan dynasty? And again with the Manchus starting the Qing dynasty?
And we can't possibly assume that the Chinese "empire" is continuous with the People's Republic of China on the basis of having the same borders, when the PRC has very different borders to the Qin.
So on that premise, you may have to ask what exactly constitutes the continuation of an empire. Depending on your definition, you may conclude that these empires existed for roughly the same length of time, or perhaps Rome existed for longer.