def generate_basic_task(task_number, name, duration, release_time):
    """Returns a short benchmark configuration for a timer_spin benchmark."""
    name = name.replace(" ", "_")
    duration = int(duration)
    to_return = {
        "filename": "./bin/timer_spin.so",
        "log_name": "test_blocking_source_%s_task%d.json" % (name,
            task_number),
        "label": "Task %d" % (task_number),
        "thread_count": 512,
        "block_count": 2,
        "data_size": 0,
        "additional_info": duration,
        "release_time": release_time
    }
    return to_return