Closed
Description
I was curious what the performance impact is of your functional implementation vs the classic implementations. I haven't gone in depth, but the results are interesting (in particular the memory allocations for Contains
.)
➜ funk-bench git:(master) ✗ go test -benchmem -bench .
testing: warning: no tests to run
BenchmarkContains/Idiomatic-8 1000 1946239 ns/op 0 B/op 0 allocs/op
BenchmarkContains/funk-8 2 645429814 ns/op 28916552 B/op 3614564 allocs/op
PASS
ok github.com/christian-blades-cb/funk-bench 4.417s
Metadata
Metadata
Assignees
Labels
No labels