Skip to content

Instantly share code, notes, and snippets.

@doughsay
Last active June 28, 2018 04:20
Show Gist options
  • Save doughsay/f56974abf58856e4bb29132dd782db4e to your computer and use it in GitHub Desktop.
Save doughsay/f56974abf58856e4bb29132dd782db4e to your computer and use it in GitHub Desktop.
ical occurrences benchmarks

Generating the first 1000 occurrences of the following icalendar recurrence rule:

DTSTART:19970101T123000
RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,WE,FR

i.e.: Starting on 1997-01-01 12:30:00, every other week on Mondays, Wednesdays and Fridays.

Cocktail:

Name                  ips        average  deviation         median         99th %
occurrences         26.96       37.09 ms     ±8.25%       36.60 ms       55.66 ms

Memory usage statistics:

Name                average  deviation         median         99th %
occurrences         7.59 MB     ±0.03%        7.59 MB        7.59 MB

Excal (C NIFS to libical)

Name                  ips        average  deviation         median         99th %
occurrences        272.40        3.67 ms    ±21.56%        3.52 ms        6.14 ms

Memory usage statistics:

Name           Memory usage
occurrences       250.23 KB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment