in benchmark/benchmarks.js [34:130]
export default function makeBenchmarks() {
const suite = new Benchmark.Suite();
suite.add('isValidCell', () => {
h3core.isValidCell(h3Index);
});
suite.add('latLngToCell', () => {
h3core.latLngToCell(37.2, -122.2, 9);
});
suite.add('cellToLatLng', () => {
h3core.cellToLatLng(h3Index);
});
suite.add('cellToLatLng - integers', () => {
h3core.cellToLatLng(h3IndexInt);
});
suite.add('cellToBoundary', () => {
h3core.cellToBoundary(h3Index);
});
suite.add('cellToBoundary - integers', () => {
h3core.cellToBoundary(h3IndexInt);
});
suite.add('getIcosahedronFaces', () => {
h3core.getIcosahedronFaces(h3Index);
});
suite.add('cellToChildren', () => {
h3core.cellToChildren(h3Index, 14);
});
suite.add('cellToParent', () => {
h3core.cellToParent(h3Index, 0);
});
suite.add('cellToChildPos', () => {
h3core.cellToChildPos(h3Index, 0);
});
suite.add('childPosToCell', () => {
h3core.childPosToCell(16800, h3Index, 14);
});
suite.add('gridDisk', () => {
h3core.gridDisk(h3Index, 1);
});
suite.add('polygonToCells_9', () => {
h3core.polygonToCells(polygon, 9, false);
});
suite.add('polygonToCells_11', () => {
h3core.polygonToCells(polygon, 11, false);
});
suite.add('polygonToCells_10ring', () => {
h3core.polygonToCells(ring10Polygon, 10, false);
});
suite.add('cellsToMultiPolygon', () => {
h3core.cellsToMultiPolygon(ring10, false);
});
suite.add('compactCells', () => {
h3core.compactCells(ring10);
});
suite.add('uncompactCells', () => {
h3core.uncompactCells(ring10Compact, 10);
});
suite.add('areNeighborCells', () => {
h3core.areNeighborCells('891ea6d6533ffff', '891ea6d65afffff');
});
suite.add('cellsToDirectedEdge', () => {
h3core.cellsToDirectedEdge('891ea6d6533ffff', '891ea6d65afffff');
});
suite.add('getDirectedEdgeOrigin', () => {
h3core.getDirectedEdgeOrigin('1591ea6d6533ffff');
});
suite.add('getDirectedEdgeDestination', () => {
h3core.getDirectedEdgeDestination('1591ea6d6533ffff');
});
suite.add('isValidDirectedEdge', () => {
h3core.isValidDirectedEdge('1591ea6d6533ffff');
});
return suite;
}