docs/api-reference/aggregation-layers/overview.md
Layers that aggregate the input data and visualize them in alternative representations, such as grid and hexagon binning, contour, and heatmap.
In the right context, enabling GPU aggregation can significantly speed up your application. This section offers in-depth insights into the performance and limitations that should be factored into leveraging this functionality.
The following table compares the performance between CPU and GPU aggregations using random data:
| #objects | CPU #iterations/sec | GPU #iterations/sec | Notes |
|---|---|---|---|
| 25K | 535 | 359 | GPU is <b style={{color:'red'}}>33%</b> slower |
| 100K | 119 | 437 | GPU is <b style={{color:'green'}}>267%</b> faster |
| 1M | 12.7 | 158 | GPU is <b style={{color:'green'}}>1144%</b> faster |
Numbers are collected on a 2016 15-inch Macbook Pro (CPU: 2.8 GHz Intel Core i7 and GPU: AMD Radeon R9 M370X 2 GB)
It is possible to implement a custom aggregation layer, or even perform aggregation without layers, using the utilities from this module.