func main() { wc := WC{} flag.Parse() o, err := os.Create(*output) if err != nil { log.Fatal("Could not create output file, err: ", err) } t0 := time.Now() mr.Run(wc, *inputdir, o) d := time.Since(t0) fmt.Println("GoMapReduce inverted index took " + d.String()) }
func main() { ag := AG{} flag.Parse() o, err := os.Create(*output) if err != nil { log.Fatal("Could not create output file, err: ", err) } t0 := time.Now() mr.Run(ag, *inputdir, o) d := time.Since(t0) fmt.Println("GoMapReduce anagrams took " + d.String()) }
func main() { mt := MaxTemp{} flag.Parse() fmt.Println(" ====== GETTING THE MAXIMUM TEMPERATURES FROM THE DATASET ====== ") // Ouput all key-value pairs o, err := os.Create(*output) if err != nil { log.Fatal("Could not create output file, err: ", err) } t0 := time.Now() mr.Run(mt, *inputdir, o) d := time.Since(t0) fmt.Println("GoMapReduce max temp took " + d.String()) }