
Go to the source code of this file.
Defines | |
| #define | duration(a) duration_cast<milliseconds>(a).count() |
Typedefs | |
| typedef high_resolution_clock | clk |
Functions | |
| int | main (int argc, char *argv[]) |
| void | runCustomIndexIteration (GridMap &map, const string &layer_from, const string &layer_to) |
| void | runCustomLinearIndexIteration (GridMap &map, const string &layer_from, const string &layer_to) |
| void | runEigenFunction (GridMap &map, const string &layer_from, const string &layer_to) |
| void | runGridMapIteratorVersion1 (GridMap &map, const string &layer_from, const string &layer_to) |
| void | runGridMapIteratorVersion2 (GridMap &map, const string &layer_from, const string &layer_to) |
| void | runGridMapIteratorVersion3 (GridMap &map, const string &layer_from, const string &layer_to) |
Definition at line 16 of file iterator_benchmark.cpp.
| typedef high_resolution_clock clk |
Definition at line 17 of file iterator_benchmark.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 98 of file iterator_benchmark.cpp.
| void runCustomIndexIteration | ( | GridMap & | map, |
| const string & | layer_from, | ||
| const string & | layer_to | ||
| ) |
For comparison.
Definition at line 73 of file iterator_benchmark.cpp.
| void runCustomLinearIndexIteration | ( | GridMap & | map, |
| const string & | layer_from, | ||
| const string & | layer_to | ||
| ) |
For comparison.
Definition at line 89 of file iterator_benchmark.cpp.
| void runEigenFunction | ( | GridMap & | map, |
| const string & | layer_from, | ||
| const string & | layer_to | ||
| ) |
Whenever possible, make use of the Eigen methods for maximum efficiency and readability.
Definition at line 65 of file iterator_benchmark.cpp.
| void runGridMapIteratorVersion1 | ( | GridMap & | map, |
| const string & | layer_from, | ||
| const string & | layer_to | ||
| ) |
Convenient use of iterator.
Definition at line 22 of file iterator_benchmark.cpp.
| void runGridMapIteratorVersion2 | ( | GridMap & | map, |
| const string & | layer_from, | ||
| const string & | layer_to | ||
| ) |
Improved efficiency by storing direct access to data layers.
Definition at line 34 of file iterator_benchmark.cpp.
| void runGridMapIteratorVersion3 | ( | GridMap & | map, |
| const string & | layer_from, | ||
| const string & | layer_to | ||
| ) |
Improved efficiency by using linear index.
Definition at line 49 of file iterator_benchmark.cpp.