Creation Performance

The tests measure the performance of sets and dicts with integer keys. The following implementation are compared:

Integer Sets

The following figures show the running time of creating a set of integers as a function of the number of integers (see _set_create.py for the source).

The following figure shows the performance of all the implementations:

_images/IntSetCreateAll.png

The following figure shows the performance of all implementations with similar performance:

_images/IntSetCreateAllNoBListBintrees.png

A sorted list has low overhead here, due to the fact that it performs a single allocation and hardly any further manipulation.

String Sets

The following figures show the running time of creating a set of strings as a function of the number of strings (see _set_create.py for the source).

The following figure shows the performance of all the implementations:

_images/StrSetCreateAll.png

The following figure shows the performance of all implementations with similar performance:

_images/StrSetCreateAllNoBListBintrees.png

Table Of Contents

This Page