I was reading about the Guangzhou massacre and the death toll was at ~100,000. What percentage of Canton's population were foreigners, especially Persians and Arabs? Are there any estimates?
While there is always more to say, I addressed the problem of the Guangzhou massacre (and the question of what we can actually know about it; the sources are very problematic and the death toll you cite is extremely unverified) in an earlier response here. You might like to review that thread while waiting for fresh responses to your query.
Then, see a second thread also relevant to your question, which attempts to assess the thorny problem of the number of black people potentially around in Tang China:
Both with me, u/mikedash