dolthub / swiss

Golang port of Abseil's SwissTable
Apache License 2.0
773 stars 39 forks source link

Incorrect result? #3

Closed kokizzu closed 1 year ago

kokizzu commented 1 year ago

Hi, I was trying to reproduce map benchmark using swiss https://github.com/kokizzu/kokizzu-benchmark/blob/master/assoc/go-swiss/swiss.go https://github.com/kokizzu/kokizzu-benchmark/blob/master/assoc/map.go

https://pastebin.com/diff/SBZXSPFb but I got different result when using swiss

time go run map.go
6009354 6009348 611297
36186112 159701682 23370001

CPU: 14.36s     Real: 12.60s    RAM: 2269936KB

time go run go-swiss/swiss.go  
6009354 6009348 611297
1 6 1 --> should be the same as above

CPU: 13.06s     Real: 12.14s    RAM: 1837384KB
kokizzu commented 1 year ago

my bad, should be return false on iter

andy-wm-arthur commented 1 year ago

Hey @kokizzu, thanks for trying out SwissMap! Let me know if you have any other questions or concerns 😄