Benchmarks
Measured performance of @mhpdev/react-native-haptics versus expo-haptics.
The following benchmark results compare @mhpdev/react-native-haptics with expo-haptics over 200 executions per effect, reported as the average time per call in milliseconds. The full statistical report (mean, median, min, max, p75, p95, standard deviation) lives in the benchmark repository.
iOS (iPhone 14 Pro Max)
| Effect | React Native Haptics (avg ms/call) | Expo Haptics (avg ms/call) | React Native Haptics is |
|---|---|---|---|
| Impact Heavy | 0.365 | 0.779 | ~2.13x faster |
| Notification Success | 0.365 | 1.378 | ~3.78x faster |
| Selection | 0.350 | 0.602 | ~1.72x faster |
Android (Samsung A55)
| Effect | React Native Haptics (avg ms/call) | Expo Haptics (avg ms/call) | React Native Haptics is |
|---|---|---|---|
| Impact Heavy | 2.902 | 9.766 | ~3.36x faster |
| Notification Success | 3.433 | 10.837 | ~3.16x faster |
| Selection | 3.037 | 11.236 | ~3.70x faster |
| Android Haptics | 3.238 | 1.879 | — Expo Haptics is ~1.72x faster |
Notes
- Values are averages over 200 executions on the devices named above; your numbers will vary with device and workload.
- For Android, the
androidHapticsmethods map to different native mechanisms, which is why the ranking differs from the other effects. - Reproduce or inspect the methodology in the RN Haptics Benchmarks repository.