Golang 编写的瓦片地图服务

栏目: Go · 发布时间: 7年前

内容简介:爬取程序:爬取地址:区域范围:
  • Go 编写的瓦片地图爬取工具( GogoroutinePython3asyncio 性能对比);

  • 瓦片存入 MongoDB ,为后期构建分布式文件存储准备;

  • Go 构建地图服务,并加入 Redis 缓存层。

Go goroutine VS Python3 asyncio

爬取程序: go run Crawk.go

  • 基准
系统 CPU RAM
Ubuntu 18.04.1 LTS Intel(R) Xeon(R) CPU E5-2643 v4 @ 3.40GHz 64GB
  • 爬取参数

爬取地址: http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}

区域范围: 109.227°E ~ 117.182°E 20.196°N ~ 25.5°N

瓦片等级: 12

瓦片数量: 6164

  • 用时(单位 s
次数 goroutine asyncio
1 17.28094745 4.405204006
2 16.46757889 3.871793148
3 15.89158821 4.080148845
4 15.57217884 4.166357563
5 16.35038185 4.520677129
平均 16.31253505 4.208836138

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Art of Computer Programming, Volume 2

The Art of Computer Programming, Volume 2

Knuth, Donald E. / Addison-Wesley Professional / 1997-11-04 / USD 79.99

Finally, after a wait of more than thirty-five years, the first part of Volume 4 is at last ready for publication. Check out the boxed set that brings together Volumes 1 - 4A in one elegant case, and ......一起来看看 《The Art of Computer Programming, Volume 2》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器