The goal of this mini project is to test the limit of the HealthKit. In particular, we test how fast we can insert health data points. In our experiment, we choose heart rate category for testing.
Our app generates fake heart rate samples and store back to HKHealthStore. The samples are ranging in between 50 to 60. Users can adjust the heart rate data insertion rate and the insertion time. While storing the data, our app will provide statistics how many successful and failed operations, as well as real-time insertion rate. When the task is done, the app automatically query how many data points are in the HKHealthStore to verify the data points are really going through.
On iPhone 5s, we can insert around 1030 data samples per second.
Adding fake data may mess your existing health data. Please run the app at your own risk.