def METHOD_NAME(self):
    """
    Test the time that it takes to cleanup a large number of jobs
    """
    num_jobs = 10000
    # Set npcus to a number that'll allow half the jobs to run
    ncpus = int(num_jobs / 2)
    a = {'resources_available.ncpus': str(ncpus)}
    self.server.manager(MGR_CMD_SET, NODE, a, self.mom.shortname)
    self.server.manager(MGR_CMD_SET, MGR_OBJ_SERVER,
                        {'scheduling': 'False'})
    for i in range(num_jobs):
        j = Job()
        j.set_sleep_time(1000)
        self.server.submit(j)
    self.scheduler.run_scheduling_cycle()
    # Measure job cleanup performance
    t1 = time.time()
    self.server.cleanup_jobs()
    # Restart the mom
    self.mom.restart()
    t2 = time.time()
    self.logger.info("Time taken for job cleanup " + str(t2 - t1))