test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 add randomly | 30.74 | 32.53 | 7.33e-4 |
10,000 add & delete randomly | 67.99 | 14.71 | 0.00 |
10,000 addMany | 39.82 | 25.11 | 4.59e-4 |
10,000 get | 26.70 | 37.46 | 2.61e-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 | 30.74 | 32.53 | 7.33e-4 |
10,000 add & delete randomly | 67.99 | 14.71 | 0.00 |
10,000 addMany | 39.82 | 25.11 | 4.59e-4 |
10,000 get | 26.70 | 37.46 | 2.61e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000 add randomly | 12.91 | 77.44 | 5.52e-4 |
1,000 add & delete randomly | 15.90 | 62.88 | 1.24e-4 |
1,000 addMany | 10.72 | 93.27 | 1.52e-4 |
1,000 get | 18.39 | 54.39 | 2.28e-4 |
1,000 dfs | 71.58 | 13.97 | 0.00 |
1,000 bfs | 57.62 | 17.35 | 0.00 |
1,000 morris | 37.17 | 26.90 | 2.13e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 add randomly | 30.50 | 32.79 | 0.00 |
10,000 add & delete randomly | 68.35 | 14.63 | 8.92e-4 |
10,000 addMany | 29.41 | 34.00 | 9.96e-4 |
10,000 get | 28.27 | 35.37 | 5.46e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
100,000 add randomly | 82.19 | 12.17 | 0.01 |
100,000 add & 1000 delete randomly | 99.74 | 10.03 | 0.03 |
100,000 getNode | 78.27 | 12.78 | 0.04 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000 addVertex | 0.10 | 9687.71 | 1.14e-5 |
1,000 addEdge | 7.42 | 134.68 | 0.00 |
1,000 getVertex | 0.05 | 2.05e+4 | 9.33e-6 |
1,000 getEdge | 20.29 | 49.29 | 0.00 |
tarjan | 190.48 | 5.25 | 0.01 |
tarjan all | 190.72 | 5.24 | 0.00 |
topologicalSort | 161.21 | 6.20 | 0.02 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 add & pop | 4.70 | 212.55 | 5.89e-4 |
10,000 fib add & pop | 366.96 | 2.73 | 0.02 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000,000 unshift | 226.42 | 4.42 | 0.04 |
1,000,000 unshift & shift | 163.14 | 6.13 | 0.01 |
1,000,000 insertBefore | 343.18 | 2.91 | 0.08 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 push & pop | 217.34 | 4.60 | 0.01 |
10,000 insertBefore | 248.51 | 4.02 | 0.00 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 refill & poll | 11.65 | 85.81 | 3.52e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000,000 push | 224.57 | 4.45 | 0.04 |
1,000,000 shift | 25.15 | 39.77 | 0.00 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000,000 push | 43.52 | 22.98 | 0.01 |
1,000,000 push & shift | 79.71 | 12.55 | 0.00 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
100,000 push | 59.28 | 16.87 | 0.00 |
100,000 getWords | 106.79 | 9.36 | 0.00 |