Skip to content

toeydevelopment/batcher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

package main
func main() {
	b := batcher.New(time.Second*5, 3)
	//Start to receive data 
	b.Run()
	//Chan to receive batch 
	batches := b.GetBatches() 
	// Calculate execution time and batch data
	for batch := range batches {
		fmt.Println(batch)
	}
}

benchmark batcher

go test -bench=. -benchmem -benchtime=1s

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%