Performance issue during insertion of document to collection between Android and iOS

I ran your code with 10,000 objects and it took about a second. I am running it on iMac 2017.