def METHOD_NAME(benchmark):
    """
    Event with a small log line (200 bytes) and a couple of attributes.
    """
    line_length = 200
    attributes_count = 10
    line = generate_random_line(length=line_length)
    attributes = generate_random_dict(keys_count=attributes_count)
    event = Event(thread_id=100)
    event.set_message(line)
    event.add_attributes(attributes)
    output_buffer = BytesIO()
    def run_benchmark():
        event.serialize(output_buffer)
        return output_buffer
    result = benchmark.pedantic(run_benchmark, iterations=100, rounds=500)
    output_bytes = result.getvalue()
    assert len(output_bytes) >= line_length
    assert line in output_bytes
    assert b"thread" in output_bytes
    assert b"attrs" in output_bytes
    assert b"message" in output_bytes