Help us shape the future of Go! Take the 2026 Go Developer Survey

fibonacci

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: MIT Imports: 0 Imported by: 2

README

#Fibonacci Circle CI

Test and benchmark several implementations of the fibonacci numbers in Go

$ GOMAXPROCS=1 go test . -bench=. -benchmem
BenchmarkFiboRecursive           3000000               471 ns/op               0 B/op          0 allocs/op
BenchmarkFiboClosure            20000000                84.7 ns/op            48 B/op          3 allocs/op
BenchmarkFiboConcurrent          2000000               933 ns/op             192 B/op          1 allocs/op

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func F

func F() func() int

F returns the next fibonacci number

Types

This section is empty.

Jump to

Keyboard shortcuts

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