Skip to content

telepenin/gosync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

gosync

go test -count 1000 .
ok  	_/Users/telepenin/src/go	0.200s

benchmarks

  • with sync.Mutex:
$ go test -bench=.
goos: darwin
goarch: amd64
BenchmarkMain-8   	    2875	    488201 ns/op
PASS
ok  	_/Users/telepenin/src/go	1.577s
  • with sync/atomic
$ go test -bench=.
goos: darwin
goarch: amd64
BenchmarkMain-8   	   32653	     35917 ns/op
PASS
ok  	_/Users/telepenin/src/go	1.672s
  • without async way
$go test -bench=.
goos: darwin
goarch: amd64
BenchmarkMain-8   	  535876	      2235 ns/op
PASS
ok  	_/Users/telepenin/src/go	1.351s

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages