You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,23 @@ For Expo projects, follow these steps:
69
69
70
70
To learn how to use the library, check out the [usage section](./docs/USAGE.md).
71
71
72
+
## Benchmarks (RN Haptics vs Expo Haptics)
73
+
74
+
The following benchmark results are for 200 time executions ([Click here to see the full report repository](https://github.com/Mhp23/RN-Haptics-Benchmarks)):
75
+
76
+
#### How much faster on iOS (iPhone 14 Pro Max)?
77
+
78
+
- Impact Heavy: React Native Haptics is **~2.13x faster** than Expo Haptics ($0.779 / 0.365 \approx 2.13$)
79
+
- Notification Success: React Native Haptics is **~3.78x faster** than Expo Haptics ($1.378 / 0.365 \approx 3.78$)
80
+
- Selection: React Native Haptics is **~1.72x faster** than Expo Haptics ($0.602 / 0.350 \approx 1.72$)
81
+
82
+
#### How much faster on Android (Samsung A55)?
83
+
84
+
- Impact Heavy: React Native Haptics is **~3.36x faster** than Expo Haptics ($9.766 / 2.902 \approx 3.36$)
85
+
- Notification Success: React Native Haptics is **~3.16x faster** than Expo Haptics ($10.837 / 3.433 \approx 3.16$)
86
+
- Selection: React Native Haptics is **~3.70x faster** than Expo Haptics ($11.236 / 3.037 \approx 3.70$)
87
+
- Android Haptics: Expo Haptics is **~1.72x faster** than its React Native Haptics counterpart ($3.238 / 1.879 \approx 1.72$)
0 commit comments