Skip to content

v1.0.3

Latest
Compare
Choose a tag to compare
@fly-studio fly-studio released this 07 Jan 12:54
· 1 commit to master since this release

Run go file/project

gos main.go -- args

gos main.gop -- args

gos /path/to -- args

fib(35):

  • gos v1.0.3: 2688ms
  • golang v1.22: 54ms
func fib(x int64) int64 {
	if x == 0 {
		return 0
	} else if x == 1 {
		return 1
	}
	return fib(x-1) + fib(x-2)
}
fib(35)