rrule-temporal 1.5.0 → 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.
Files changed (2) hide show
  1. package/README.md +24 -24
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -37,30 +37,6 @@ rule.all().forEach(dt => console.log(dt.toString()));
37
37
  const firstTen = rule.all((_, i) => i < 10);
38
38
  ```
39
39
 
40
- ## Benchmarks
41
-
42
- Uncached median ops/s from the benchmark suite on a MacBook Pro M2 Max.
43
- The full three-library comparison, including `rrule-rust`, lives in `benchmarks/README.md`.
44
-
45
- | Scenario | TZ | rrule-temporal median ops/s | rrule median ops/s | vs rrule |
46
- | --- | --- | ---: | ---: | ---: |
47
- | 30 daily occurrences | UTC | 29,275 | 16,762 | 1.75x |
48
- | 30 daily occurrences | America/Chicago | 2,067 | 364 | 5.68x |
49
- | Daily weekdays across many cycles | UTC | 1,894 | 766 | 2.47x |
50
- | Daily weekdays across many cycles | America/Chicago | 64.9 | 18.9 | 3.43x |
51
- | 720 hourly occurrences | UTC | 1,499 | 701 | 2.14x |
52
- | 720 hourly occurrences | America/Chicago | 104 | 14.1 | 7.38x |
53
- | 1,440 minutely occurrences | UTC | 751 | 325 | 2.31x |
54
- | 1,440 minutely occurrences | America/Chicago | 145 | 7.1 | 20.42x |
55
- | Weekly MO/WE/FR across many cycles | UTC | 1,179 | 1,053 | 1.12x |
56
- | Weekly MO/WE/FR across many cycles | America/Chicago | 64.4 | 14.6 | 4.41x |
57
- | Monthly last weekday across 20 years | UTC | 1,953 | 948 | 2.06x |
58
- | Monthly last weekday across 20 years | America/Chicago | 45.5 | 39.4 | 1.15x |
59
- | Monthly first and last weekday across 20 years | UTC | 1,378 | 1,202 | 1.15x |
60
- | Monthly first and last weekday across 20 years | America/Chicago | 40.0 | 24.2 | 1.65x |
61
-
62
- 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.
63
-
64
40
  ## Separating DTSTART and RRULE
65
41
 
66
42
  Per RFC 5545, DTSTART and RRULE are separate properties. You can provide them separately:
@@ -326,6 +302,30 @@ Notes
326
302
  | `toText(rule, locale?, options?)` | Human readable description (`en`, `es`, `hi`, `yue`, `ar`, `he`, `zh`, `fr`). Options: `{ includeDtstart?: boolean }`. |
327
303
  | `options()` | Return the normalized options object. |
328
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
+
329
329
  ## Further examples
330
330
 
331
331
  Enumerating weekdays within a month or rotating through months can be achieved
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rrule-temporal",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Recurrence rule (rrule) processing using Temporal PlainDate/PlainDateTime, with cross-timezone and cross-calendar rrule support",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",