add support for Buffer, add simple benchmarks