Skip to content

📉 Add SequenceSet benchmarks #485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented Jun 11, 2025

This adds:

  • a simple ruby script for measuring ObjectSpace.memsize_of.
  • several benchmark-driver scripts for:
    • SequenceSet.new (indirectly via ::[])
    • SequenceSet#slice (aka #[])
    • various set ops: &, |, -, ^, ~
    • various set predicates: #intersect?, #disjoint?, #cover?
    • Several alternate implementations of:
      • AND — #& and #intersect!
      • NOT — #~ and #complement!
      • XOR — #^ and #xor!

@nevans nevans force-pushed the sequence_set/benchmarks branch from 8bb9e20 to 45bbc9b Compare June 11, 2025 17:48
@nevans nevans force-pushed the sequence_set/benchmarks branch from 45bbc9b to 023100b Compare June 17, 2025 14:37
This adds a simple ruby script for measuring `ObjectSpace.memsize_of`,
and several benchmark-driver scripts for:
* `SequenceSet.new` (indirectly via `::[]`)
* `SequenceSet#slice` (aka `#[]`)
* Various set ops: `&`, `|`, `-`, `^`, `~`
* Various set predicates: `#intersect?`, `#disjoint?`, `#cover?`
* Several alternate implementations of:
  * AND — `#&` and `#intersect!`
  * NOT — `#~` and `#complement!`
  * XOR — `#^` and `#xor!`
@nevans nevans force-pushed the sequence_set/benchmarks branch from 023100b to 5f2a563 Compare June 18, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant