func BenchmarkPageAppendTo(b *testing.B) {
	p := page{
		offset:  4096,
		payload: fastrand.Bytes(MaxPayloadSize),  
		nextPage: &page{
			offset: 12345,
		},
	}
	buf := make([]byte, pageSize)
	b.ResetTimer()
	b.ReportAllocs()
	for i := 0; i < b.N; i++ {
		p.appendTo(buf[:0])
	}
}
BenchmarkPageAppendTo benchmarks the appendTo method of page.
package writeaheadlog
import (
	"testing"
	"github.com/NebulousLabs/fastrand"
)
func TestPageMarshalling(t *testing.T) {
	t.Skip("not implemented")
}