GoCompilerEfficiency

module
v0.0.0-...-b91b1e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2019 License: BSD-2-Clause

README

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

Directories

Path Synopsis
src
arrayinit
Arrayinit initializes an array in various ways including the unfair static method
Arrayinit initializes an array in various ways including the unfair static method
urlbuilder
urlbuilder evaluates any difference between returning a url using the type or a string
urlbuilder evaluates any difference between returning a url using the type or a string
writebuffer
writebuffer evaluates differences between fmt, io and buffer packages to write a buffer to another buffer
writebuffer evaluates differences between fmt, io and buffer packages to write a buffer to another buffer
writestring
writestring benchmarks the elementary io.WriteString and package fmt.
writestring benchmarks the elementary io.WriteString and package fmt.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL