Skip to content

vpakhuchyi/go1.23-unique-banchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go1.23-unique-banchmarks

This repository contains the benchmarks for the "unique" package that is going to be added in Go 1.23.

All the tests are run on the following machine:

  • goos: darwin
  • goarch: arm64
  • cpu: Apple M2 Pro

Go version: go1.23rc2

Link to the "unique" package: https://pkg.go.dev/unique@master

Benchmarks

BenchmarkString/regular-12   	         800237403	   1.483  ns/op
BenchmarkString/unique-12    	         1000000000	   0.2944 ns/op

BenchmarkSimpleStruct/regular-12         450721364	   2.640  ns/op
BenchmarkSimpleStruct/unique-12          1000000000	   0.2963 ns/op

BenchmarkComplexStruct/regular-12        162752110	   7.365  ns/op
BenchmarkComplexStruct/unique-12         1000000000	   0.2947 ns/op

About

Benchmarks of Go 1.23 "unique" pkg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages