Original: "Baidu Map API" multiple map API File size comparison
Updated Baidu Map API file size in 2011.6.9. Update the picture at the same time.
Task Description:
Tomorrow is the Lantern Festival ~ this is a round and round of the festival, so, again want to put the API together "open assembly." Ha ha. This time the main statistic is the size of the API JS.
How to achieve:
This article investigates the current main JS map API initial load JS file size. That is, in the API is fully available (here is the use of programming can be programmed, but do not guarantee that the map is complete) when the size of those JS files necessary. They block the browser from rendering other elements of the page, because the API is usually displayed on a third-party page, so the API should ensure that the other elements of the page do not block rendering while also ensuring that the map display is completed as soon as possible and the user code is executed early. In summary, the initial file size is an important metric for measuring the API.
Research data:
API Provider |
File Size |
Number of files |
. |
Google V3 |
13K |
2 |
. |
Google V2 |
66.4K |
2 |
. |
51ditu (Core only) |
52.8K |
5 |
. |
51ditu (including search) |
55K |
6 |
. |
51ditu (including driving) |
55.3K |
6 |
. |
51ditu (including search drive) |
57.5KB |
7 |
. |
Mapbar |
70.8K |
1 |
. |
Mapbar (includes service) |
113.7K |
1 |
. |
Mapabc |
178K |
8 |
. |
Baidu |
32.1K |
1 |
. |
Baidu (including services) |
50k |
1 |
Figure 1: API file size for each home
Figure 2: number of files loaded by each API
"Baidu Map API" multiple map API File size comparison