package main

import (
    "log"
    "net/http"
    "time"
)

import "expvar"
import _ "net/http/pprof"

var spinCount = expvar.NewInt("SpinCount")

func main() {

    go func() {
        log.Println("Starting HTTP")
        log.Println(http.ListenAndServe("localhost:6060", nil))
    }()

    log.Println("Starting spin")
    for {
        spin()
        spinCount.Add(1)
        time.Sleep(0)
    }
}

func spin() {
    sum := 0
    for i:=0;i<1000;i++ {
        sum += i
        sum -= i
    }
}

package main

func main() {
    for {
        spin()
    }
}

func spin() {
    sum := 0
    for i:=0;i<9999999;i++ {
        sum += i
        sum -= i
    }
}

--- 
+++ 
@@ -1,14 +1,34 @@
 package main
 
+import (
+    "log"
+    "net/http"
+    "time"
+)
+
+import "expvar"
+import _ "net/http/pprof"
+
+var spinCount = expvar.NewInt("SpinCount")
+
 func main() {
+
+    go func() {
+        log.Println("Starting HTTP")
+        log.Println(http.ListenAndServe("localhost:6060", nil))
+    }()
+
+    log.Println("Starting spin")
     for {
         spin()
+        spinCount.Add(1)
+        time.Sleep(0)
     }
 }
 
 func spin() {
     sum := 0
-    for i:=0;i<9999999;i++ {
+    for i:=0;i<1000;i++ {
         sum += i
         sum -= i
     }
Add new spinner go app.
