Skip to content

Commit a265fd7

Browse files
committed
docs: adding the benchmarks section
1 parent ed7408e commit a265fd7

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,23 @@ For Expo projects, follow these steps:
6969

7070
To learn how to use the library, check out the [usage section](./docs/USAGE.md).
7171

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$)
88+
7289
## Quick Start
7390

7491
```tsx

0 commit comments

Comments
 (0)