Skip to content

InsideOfTheIndustry/iotgtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some test and benchmark

Benchmark for understanding golang.

notice

If you use VSCODE for coding, you need to config your gopls in vscode's settings.json for support multi module file. Add code like below:

  "gopls": {
  "build.experimentalWorkspaceModule": true
  }

append & copy

Copy is more effective than append.

calcu md5 of a file

slice the file is more effective than read the whole file to memeroy.

rand seed

string to []byte

Use pointer is much more faster. 使用反射和指针性能提升十分明显

Memory escape

用使用指针一定比内存快?

About

Golang Lab, some little go test and benchmark.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages