test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 add randomly | 31.93 | 31.32 | 2.30e-4 |
10,000 add & delete randomly | 69.12 | 14.47 | 0.00 |
10,000 addMany | 41.14 | 24.31 | 1.60e-4 |
10,000 get | 28.68 | 34.86 | 7.65e-4 |
Data Structure | Unit Test | Performance Test | API Documentation | Implemented |
---|---|---|---|---|
Binary Tree | Binary Tree | |||
Binary Search Tree (BST) | BST | |||
AVL Tree | AVLTree | |||
Red Black Tree | AVLTree | |||
Tree Multiset | TreeMultiset | |||
Segment Tree | SegmentTree | |||
Binary Indexed Tree | BinaryIndexedTree | |||
Graph | AbstractGraph | |||
Directed Graph | DirectedGraph | |||
Undirected Graph | UndirectedGraph | |||
Linked List | SinglyLinkedList | |||
Singly Linked List | SinglyLinkedList | |||
Doubly Linked List | DoublyLinkedList | |||
Queue | Queue | |||
Object Deque | ObjectDeque | |||
Array Deque | ArrayDeque | |||
Stack | Stack | |||
Coordinate Set | CoordinateSet | |||
Coordinate Map | CoordinateMap | |||
Heap | Heap | |||
Priority Queue | PriorityQueue | |||
Max Priority Queue | MaxPriorityQueue | |||
Min Priority Queue | MinPriorityQueue | |||
Trie | Trie |
Data Structure Typed | C++ STL | java.util | Python collections |
---|---|---|---|
Array<E> | vector<T> | ArrayList<E> | list |
DoublyLinkedList<E> | list<T> | LinkedList<E> | deque |
SinglyLinkedList<E> | - | - | - |
Set<E> | set<T> | HashSet<E> | set |
Map<K, V> | map<K, V> | HashMap<K, V> | dict |
Map<K, V> | - | - | OrderedDict |
Queue<E> | queue<T> | Queue<E> | - |
PriorityQueue<E> | priority_queue<T> | PriorityQueue<E> | - |
Heap<V> | priority_queue<T> | PriorityQueue<E> | heapq |
Stack<E> | stack<T> | Stack<E> | - |
Deque<E> | deque<T> | - | - |
Trie | - | - | - |
HashMap<K, V> | unordered_map<K, V> | HashMap<K, V> | defaultdict |
- | multiset<T> | - | - |
- | multimap<K, V> | - | - |
BinaryTree<K, V> | - | - | - |
BST<K, V> | - | - | - |
DirectedGraph<V, E> | - | - | - |
UndirectedGraph<V, E> | - | - | - |
- | unordered_multiset | - | Counter |
- | - | LinkedHashSet<E> | - |
- | - | LinkedHashMap<K, V> | - |
AVLTree<E> | - | TreeSet<E> | - |
AVLTree<K, V> | - | TreeMap<K, V> | - |
AVLTree<E> | set | TreeSet<E> | - |
- | unordered_multimap<K, V> | - | - |
- | bitset<N> | - | - |
- | unordered_set<T> | HashSet<E> | - |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 add randomly | 31.93 | 31.32 | 2.30e-4 |
10,000 add & delete randomly | 69.12 | 14.47 | 0.00 |
10,000 addMany | 41.14 | 24.31 | 1.60e-4 |
10,000 get | 28.68 | 34.86 | 7.65e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000 add randomly | 13.12 | 76.21 | 3.40e-4 |
1,000 add & delete randomly | 16.33 | 61.22 | 4.17e-4 |
1,000 addMany | 10.96 | 91.22 | 3.99e-4 |
1,000 get | 18.65 | 53.63 | 4.20e-4 |
1,000 dfs | 71.82 | 13.92 | 0.00 |
1,000 bfs | 58.95 | 16.96 | 0.00 |
1,000 morris | 37.46 | 26.70 | 4.60e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 add randomly | 32.98 | 30.32 | 0.00 |
10,000 add & delete randomly | 74.47 | 13.43 | 0.00 |
10,000 addMany | 29.93 | 33.41 | 6.02e-4 |
10,000 get | 29.92 | 33.42 | 8.61e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
100,000 add randomly | 80.49 | 12.42 | 0.01 |
100,000 add & 1000 delete randomly | 89.97 | 11.11 | 0.01 |
100,000 getNode | 68.63 | 14.57 | 0.01 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000 addVertex | 0.10 | 9878.72 | 1.87e-6 |
1,000 addEdge | 6.34 | 157.78 | 2.53e-4 |
1,000 getVertex | 0.05 | 2.12e+4 | 1.05e-6 |
1,000 getEdge | 23.08 | 43.33 | 0.00 |
tarjan | 217.75 | 4.59 | 0.01 |
tarjan all | 219.23 | 4.56 | 0.01 |
topologicalSort | 175.73 | 5.69 | 0.02 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 add & pop | 4.64 | 215.44 | 6.89e-5 |
10,000 fib add & pop | 357.37 | 2.80 | 0.01 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000,000 unshift | 239.34 | 4.18 | 0.04 |
1,000,000 unshift & shift | 168.74 | 5.93 | 0.04 |
1,000,000 insertBefore | 324.74 | 3.08 | 0.06 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 push & pop | 213.86 | 4.68 | 0.01 |
10,000 insertBefore | 254.02 | 3.94 | 0.02 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 refill & poll | 11.39 | 87.76 | 2.14e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000,000 push | 233.91 | 4.28 | 0.05 |
1,000,000 shift | 25.61 | 39.05 | 0.00 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000,000 push | 43.88 | 22.79 | 0.01 |
1,000,000 push & shift | 81.71 | 12.24 | 0.00 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
100,000 push | 59.93 | 16.69 | 0.01 |
100,000 getWords | 93.10 | 10.74 | 0.01 |