The other day I was building in the marker support when a thought crossed my mind: "Has Maps 3 improved the rendering time for adding Markers to a Map?"
And so I went about setting up a benchmark to test it. It was a very simple test which uses firebug's profiler to monitor the "addMarker()" function call to add 1000 markers to a map. I performed the test identically in both versions of Maps. And the results? Amazing.
Version | Own Time | Total Time | Avg. Time | Min Time | Max Time |
---|---|---|---|---|---|
2 | 13.252ms | 14684.619ms | 14.685ms | 11.756ms | 238.471ms |
3 | 9.132ms | 287.789ms | 0.288ms | 0.274ms | 0.548ms |
Well done Google Maps team!
No comments:
Post a Comment