getditto / samples

Sample Codes using Ditto
14 stars 7 forks source link

linux rust sdk benchmark program #118

Closed l33tllama closed 6 months ago

l33tllama commented 1 year ago

I've created a Rust application that tests the performance of the Bluetooth and WiFi transports, in downloading documents. It tests downloading a large number of documents, a large single document, and a document with an attachment. It reports the download speed in Kilobytes per second and then exits. A single program that runs on two devices. You specify which device send and which device receives the data in the command line arguments. Purpose was for a good public example of how to use the ditto rust library, and to test performance. It uses a live query and handles passing data between threads, which would likely be a common thing done in ditto applications where it needs to respond to input from documents coming in. Code has been reviewed by @thombles

okdistribute commented 6 months ago

Thank you @l33tllama, sorry I missed this. Would you mind adding this to a separate repository since we are retiring this one?

You can open a new PR to link to it in this README.