Created
May 28, 2020 13:47
-
-
Save CharlyCst/f9f7517f660811d730a4ba4b40dbb2b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"container/list" | |
lb "gosb" | |
) | |
func init() { | |
lb.Initialize(lb.MPK_BACKEND) | |
} | |
//go:noinline | |
func main() { | |
//go:noinline | |
sandbox["", ""]() { | |
n := 100000 | |
l := list.New() | |
for i := 0; i < n; i++ { | |
l.PushFront("Fizz") | |
if i % 10 == 0 { | |
l.PushFront("Buzz") | |
} | |
} | |
}() | |
lb.Benchmark() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment