isi-vista / immutablecollections

A library for immutable collections, in the spirit of Guava's Immutable Collections.
MIT License
3 stars 2 forks source link

Create benchmarks for ImmutableSet #14

Open gabbard opened 5 years ago

gabbard commented 5 years ago

These could probably be based on the Guava benchmarks: https://github.com/google/guava/tree/master/guava-tests/benchmark/com/google/common/collect

gabbard commented 5 years ago

Quick things to try:

  1. (from @ConstantineLignos ) try using a dict with None values instead of a frozenset as backing
  2. Is it faster if we use a regular set instead of a frozenset as backing?
gabbard commented 5 years ago

@nicomitchell : additional benchmarks to add:

gabbard commented 5 years ago

@ConstantineLignos : Please add any other requested benchmarks

ConstantineLignos commented 5 years ago

Nothing to add right now, sounds like good coverage.

nicomitchell commented 5 years ago