Skip to content

iwdgo/GoCompilerEfficiency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go Report Card

Benchmarking good practices

Go is strong typed and object oriented by definition. To distinguish bad habits, benchmarking against the compiler performance is often convincing.

Logic

Math

  • math.Log2() is the most efficient to check that 2 is the sole divisor.

Arrays

Templates

Buffers

Builder