Question about speed of data transfering... #19
-
I wonder what kind of service this framework could cover depending on the transfering speed. I noticed that in the example app Will it be possible to share video data using this framework? Has someone ever tested the transfering performance? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The performance will vary depending on quite a large number of factors, including but not limited to:
As you can see, a large number of variables can affect the data transfer performance that you should expect. In general, since the underlying transport is pretty much the same, you should expect performance similar to what you get with AirDrop. In ideal conditions (recent devices fairly close to one another) it should be quite fast, probably fast enough to transfer large amounts of data. In your example of sharing video, I'm not sure if you're referring to streaming video or sending video files. If it's sending video files, you can probably transfer files of significant sizes (a few GB) fairly quickly in ideal conditions. If it's streaming video, then you'd probably be better off by using the stream support built-in to MultipeerConnectivity. Regardless of your particular use case, MultipeerKit's API was designed with the goal of transferring small amounts of |
Beta Was this translation helpful? Give feedback.
-
I roughly tested the speed of the stream (not professionally), the results are as follows: Regardless of IO processing, speed reaches 20 MB/s around between a simulator on Macbook Pro and an iPad Pro (connected to the same AP). When closing the wifi, speed reaches 12MB/s. It has the ability to support many services. Here is the demo app https://github.com/Yang-Xijie/ExPeerMessage. However, I also tried Airdrop, which reached 60MB/s around. It might be the problem of the method I used to transfer test data. Or I guess that Airdrop uses some other technology. |
Beta Was this translation helpful? Give feedback.
I roughly tested the speed of the stream (not professionally), the results are as follows:
Regardless of IO processing, speed reaches 20 MB/s around between a simulator on Macbook Pro and an iPad Pro (connected to the same AP). When closing the wifi, speed reaches 12MB/s. It has the ability to support many services.
Here is the demo app https://github.com/Yang-Xijie/ExPeerMessage.
However, I also tried Airdrop, which reached 60MB/s around. It might be the problem of the method I used to transfer test data. Or I guess that Airdrop uses some other technology.