@frsource/frs-replace 5.1.86 → 5.1.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -239,21 +239,21 @@ const result = sync({
|
|
|
239
239
|
|
|
240
240
|
## :chart_with_upwards_trend: Benchmarks
|
|
241
241
|
|
|
242
|
-
> Tested on Node v24.11.
|
|
242
|
+
> Tested on Node v24.11.1.
|
|
243
243
|
|
|
244
244
|
### input as glob pattern [40 files]
|
|
245
245
|
|
|
246
246
|
| Rank | Library | Average latency [ms] | Difference percentage (comparing to best average latency) |
|
|
247
247
|
| ---- | ----------------------------- | -------------------- | ----------------------------------------------------------------------------- |
|
|
248
|
-
| 1 | @frsource/frs-replace (sync) | 0.55 ± 1.
|
|
249
|
-
| 2 | replace-in-file (sync) | 0.
|
|
250
|
-
| 3 | @frsource/frs-replace (async) | 1.
|
|
251
|
-
| 4 | replace-in-file (async) | 2.
|
|
248
|
+
| 1 | @frsource/frs-replace (sync) | 0.55 ± 1.63% | +0.00% |
|
|
249
|
+
| 2 | replace-in-file (sync) | 0.62 ± 1.86% | +12.84% |
|
|
250
|
+
| 3 | @frsource/frs-replace (async) | 1.82 ± 1.71% | +232.92% |
|
|
251
|
+
| 4 | replace-in-file (async) | 2.64 ± 1.67% | +382.99% |
|
|
252
252
|
|
|
253
253
|
### input & replacement as strings
|
|
254
254
|
|
|
255
255
|
| Rank | Library | Average latency [ms] | Difference percentage (comparing to best average latency) |
|
|
256
256
|
| ---- | ----------------------------- | -------------------- | ----------------------------------------------------------------------------- |
|
|
257
|
-
| 1 | @frsource/frs-replace (sync) | 0.
|
|
258
|
-
| 2 |
|
|
259
|
-
| 3 |
|
|
257
|
+
| 1 | @frsource/frs-replace (sync) | 0.15 ± 2.11% | +0.00% |
|
|
258
|
+
| 2 | @frsource/frs-replace (async) | 0.15 ± 1.74% | +2.98% |
|
|
259
|
+
| 3 | replaceString | 0.16 ± 1.96% | +12.20% |
|