def METHOD_NAME(self):
    """
    This test case submits 50k very short jobs so that the job history
    has a lot of jobs in it.
    After submitting the jobs, the job_history_duration is reduced so
    that the server could start purging the job history.
    Another job is submitted and stat-ed. The test case then finds the
    amount of time the server takes to respond.
    The test case is not designed to pass/fail on builds with/without
    the fix.
    """
    test = ['echo test\n']
    # Submit a lot of jobs.
    for _ in range(0, 10):
        for _ in range(0, 10):
            for _ in range(0, 500):
                j = Job(TEST_USER, attrs={ATTR_k: 'oe'})
                j.create_script(body=test)
                jid = self.server.submit(j)
            time.sleep(1)
        self.server.expect(JOB, {'job_state': 'F'}, id=jid, extend='x',
                           offset=10, interval=2, max_attempts=100)
    a = {"job_history_duration": "00:00:05"}
    self.server.manager(MGR_CMD_SET, SERVER, a)
    j = Job(TEST_USER)
    j.set_sleep_time(10000)
    jid = self.server.submit(j)
    self.server.expect(JOB, {'job_state': 'R'}, id=jid)
    now1 = 0
    now2 = 0
    i = 0
    while now2 - now1 < 2 and i < 125:
        time.sleep(1)
        now1 = int(time.time())
        self.server.expect(JOB, {'job_state': 'R'}, id=jid)
        now2 = int(time.time())
        i += 1
    self.logger.info("qstat took %d seconds to return\n",
                     (now2 - now1))
    self.perf_test_result((now2 - now1), "qstat_return_time", "sec")