Skip to content

Instantly share code, notes, and snippets.

@CharlyCst
Created May 28, 2020 13:47
Show Gist options
  • Save CharlyCst/f9f7517f660811d730a4ba4b40dbb2b5 to your computer and use it in GitHub Desktop.
Save CharlyCst/f9f7517f660811d730a4ba4b40dbb2b5 to your computer and use it in GitHub Desktop.
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