You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: marshal_timing_test.go
    path of file: ./repos/quicktemplate/tests
    
    the code of the file until where you have to start completion: package tests

import (
	"bytes"
	"encoding/json"
	"encoding/xml"
	"fmt"
	"log"
	"testing"

	"github.com/valyala/quicktemplate"
	"github.com/valyala/quicktemplate/testdata/templates"
)

func init() {
	// Make sure both encoding/json and templates generate 
    
func init() {
	// Make sure both encoding/json and templates generate identical output.
	d := newTemplatesData(3)
	bb := quicktemplate.AcquireByteBuffer()

	expectedData, err := json.Marshal(d)
	if err != nil {
		log.Fatalf("unexpected error: %s", err)
	}

	e := json.NewEncoder(bb)
	if err := e.Encode(d); err != nil {
		log.Fatalf("unexpected error: %s", err)
	}
	bb.B = bytes.TrimSpace(bb.B)
	if !bytes.Equal(bb.B, expectedData) {
		log.Fatalf("unexpected data generated with encoding/json:\n%q\n. Expecting\n%q\n", bb.B, expectedData)
	}

	bb.Reset()
	d.WriteJSON(bb)
	if !bytes.Equal(bb.B, expectedData) {
		log.Fatalf("unexpected data generated with quicktemplate:\n%q\n. Expecting\n%q\n", bb.B, expectedData)
	}

	// make sure both encoding/xml and templates generate identical output.
	expectedData, err = xml.Marshal(d)
	if err != nil {
		log.Fatalf("unexpected error: %s", err)
	}

	bb.Reset()
	xe := xml.NewEncoder(bb)
	if err := xe.Encode(d); err != nil {
		log.Fatalf("unexpected error: %s", err)
	}
	if !bytes.Equal(bb.B, expectedData) {
		log.Fatalf("unexpected data generated with encoding/xml:\n%q\n. Expecting\n%q\n", bb.B, expectedData)
	}

	bb.Reset()
	d.WriteXML(bb)
	if !bytes.Equal(bb.B, expectedData) {
		log.Fatalf("unexpected data generated with quicktemplate:\n%q\n. Expecting\n%q\n", bb.B, expectedData)
	}

	quicktemplate.ReleaseByteBuffer(bb)
}