rrule-temporal 1.4.7 → 1.5.1
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 +24 -0
- package/dist/{chunk-Y57KCW63.js → chunk-S4JPXM4U.js} +569 -81
- package/dist/index.cjs +569 -81
- package/dist/index.d.cts +33 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +1 -1
- package/dist/totext.cjs +569 -81
- package/dist/totext.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -302,6 +302,30 @@ Notes
|
|
|
302
302
|
| `toText(rule, locale?, options?)` | Human readable description (`en`, `es`, `hi`, `yue`, `ar`, `he`, `zh`, `fr`). Options: `{ includeDtstart?: boolean }`. |
|
|
303
303
|
| `options()` | Return the normalized options object. |
|
|
304
304
|
|
|
305
|
+
## Benchmarks
|
|
306
|
+
|
|
307
|
+
Uncached median ops/s from the benchmark suite on a MacBook Pro M2 Max.
|
|
308
|
+
The full three-library comparison, including `rrule-rust`, lives in `benchmarks/README.md`.
|
|
309
|
+
|
|
310
|
+
| Scenario | TZ | rrule-temporal median ops/s | rrule median ops/s | vs rrule |
|
|
311
|
+
| --- | --- | ---: | ---: | ---: |
|
|
312
|
+
| 30 daily occurrences | UTC | 29,275 | 16,762 | 1.75x |
|
|
313
|
+
| 30 daily occurrences | America/Chicago | 2,067 | 364 | 5.68x |
|
|
314
|
+
| Daily weekdays across many cycles | UTC | 1,894 | 766 | 2.47x |
|
|
315
|
+
| Daily weekdays across many cycles | America/Chicago | 64.9 | 18.9 | 3.43x |
|
|
316
|
+
| 720 hourly occurrences | UTC | 1,499 | 701 | 2.14x |
|
|
317
|
+
| 720 hourly occurrences | America/Chicago | 104 | 14.1 | 7.38x |
|
|
318
|
+
| 1,440 minutely occurrences | UTC | 751 | 325 | 2.31x |
|
|
319
|
+
| 1,440 minutely occurrences | America/Chicago | 145 | 7.1 | 20.42x |
|
|
320
|
+
| Weekly MO/WE/FR across many cycles | UTC | 1,179 | 1,053 | 1.12x |
|
|
321
|
+
| Weekly MO/WE/FR across many cycles | America/Chicago | 64.4 | 14.6 | 4.41x |
|
|
322
|
+
| Monthly last weekday across 20 years | UTC | 1,953 | 948 | 2.06x |
|
|
323
|
+
| Monthly last weekday across 20 years | America/Chicago | 45.5 | 39.4 | 1.15x |
|
|
324
|
+
| Monthly first and last weekday across 20 years | UTC | 1,378 | 1,202 | 1.15x |
|
|
325
|
+
| Monthly first and last weekday across 20 years | America/Chicago | 40.0 | 24.2 | 1.65x |
|
|
326
|
+
|
|
327
|
+
The current pattern is straightforward: `rrule-temporal` is faster than `rrule` across all of the scenarios above, with especially large gains on timezone-heavy daily, hourly, and minutely rules. The biggest recent jump came from the UTC monthly `BYDAY` + `BYSETPOS` path, which is now ahead as well.
|
|
328
|
+
|
|
305
329
|
## Further examples
|
|
306
330
|
|
|
307
331
|
Enumerating weekdays within a month or rotating through months can be achieved
|