test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 add randomly | 30.29 | 33.01 | 3.64e-4 |
10,000 add & delete randomly | 68.10 | 14.68 | 0.00 |
10,000 addMany | 39.54 | 25.29 | 4.07e-4 |
10,000 get | 26.72 | 37.42 | 3.77e-4 |
Data Structure | Unit Test | Performance Test | API Documentation | Implemented |
---|---|---|---|---|
Binary Tree | Binary Tree | |||
Binary Search Tree (BST) | BST | |||
AVL 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 | Data Structure Typed | C++ STL | java.util | Python collections |
---|---|---|---|---|
Dynamic Array | Array<E> | vector<T> | ArrayList<E> | list |
Linked List | DoublyLinkedList<E> | list<T> | LinkedList<E> | deque |
Singly Linked List | SinglyLinkedList<E> | - | - | - |
Set | Set<E> | set<T> | HashSet<E> | set |
Map | Map<K, V> | map<K, V> | HashMap<K, V> | dict |
Ordered Dictionary | Map<K, V> | - | - | OrderedDict |
Queue | Queue<E> | queue<T> | Queue<E> | - |
Priority Queue | PriorityQueue<E> | priority_queue<T> | PriorityQueue<E> | - |
Heap | Heap<V> | priority_queue<T> | PriorityQueue<E> | heapq |
Stack | Stack<E> | stack<T> | Stack<E> | - |
Deque | Deque<E> | deque<T> | - | - |
Trie | Trie | - | - | - |
Unordered Map | HashMap<K, V> | unordered_map<K, V> | HashMap<K, V> | defaultdict |
Multiset | - | multiset<T> | - | - |
Multimap | - | multimap<K, V> | - | - |
Binary Tree | BinaryTree<K, V> | - | - | - |
Binary Search Tree | BST<K, V> | - | - | - |
Directed Graph | DirectedGraph<V, E> | - | - | - |
Undirected Graph | UndirectedGraph<V, E> | - | - | - |
Unordered Multiset | - | unordered_multiset | - | Counter |
Linked Hash Set | - | - | LinkedHashSet<E> | - |
Linked Hash Map | - | - | LinkedHashMap<K, V> | - |
Sorted Set | AVLTree<E> | - | TreeSet<E> | - |
Sorted Map | AVLTree<K, V> | - | TreeMap<K, V> | - |
Tree Set | AVLTree<E> | set | TreeSet<E> | - |
Unordered Multimap | - | unordered_multimap<K, V> | - | - |
Bitset | - | bitset<N> | - | - |
Unordered Set | - | unordered_set<T> | HashSet<E> | - |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 add randomly | 30.29 | 33.01 | 3.64e-4 |
10,000 add & delete randomly | 68.10 | 14.68 | 0.00 |
10,000 addMany | 39.54 | 25.29 | 4.07e-4 |
10,000 get | 26.72 | 37.42 | 3.77e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000 add randomly | 12.88 | 77.63 | 1.02e-4 |
1,000 add & delete randomly | 15.90 | 62.88 | 1.08e-4 |
1,000 addMany | 10.59 | 94.41 | 8.39e-5 |
1,000 get | 18.01 | 55.53 | 1.95e-4 |
1,000 dfs | 69.11 | 14.47 | 6.47e-4 |
1,000 bfs | 54.42 | 18.38 | 4.20e-4 |
1,000 morris | 37.14 | 26.92 | 2.27e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 add randomly | 28.48 | 35.11 | 2.29e-4 |
10,000 add & delete randomly | 64.82 | 15.43 | 0.01 |
10,000 addMany | 28.74 | 34.80 | 9.06e-4 |
10,000 get | 27.38 | 36.52 | 1.82e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
100,000 add randomly | 72.30 | 13.83 | 0.00 |
100,000 add & 1000 delete randomly | 81.37 | 12.29 | 0.01 |
100,000 getNode | 59.48 | 16.81 | 9.29e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000 addVertex | 0.10 | 9786.77 | 5.56e-7 |
1,000 addEdge | 6.02 | 166.04 | 1.27e-4 |
1,000 getVertex | 0.05 | 2.18e+4 | 3.02e-7 |
1,000 getEdge | 23.41 | 42.71 | 0.00 |
tarjan | 223.51 | 4.47 | 0.01 |
tarjan all | 224.89 | 4.45 | 0.00 |
topologicalSort | 181.90 | 5.50 | 0.00 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 add & pop | 4.62 | 216.33 | 3.06e-5 |
10,000 fib add & pop | 351.41 | 2.85 | 0.00 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000,000 unshift | 214.84 | 4.65 | 0.04 |
1,000,000 unshift & shift | 167.11 | 5.98 | 0.04 |
1,000,000 insertBefore | 335.78 | 2.98 | 0.07 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 push & pop | 212.53 | 4.71 | 0.01 |
10,000 insertBefore | 243.94 | 4.10 | 0.00 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
10,000 refill & poll | 11.43 | 87.50 | 1.84e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000,000 push | 216.07 | 4.63 | 0.05 |
1,000,000 shift | 24.97 | 40.05 | 0.00 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
1,000,000 push | 42.57 | 23.49 | 0.01 |
1,000,000 push & shift | 79.94 | 12.51 | 9.99e-4 |
test name | time taken (ms) | executions per sec | sample deviation |
---|---|---|---|
100,000 push | 54.02 | 18.51 | 0.00 |
100,000 getWords | 82.83 | 12.07 | 0.00 |