예제 #1
0
파일: sim2.py 프로젝트: fr0uty/oartm
# coding: utf-8
from __future__ import unicode_literals, print_function

from oar.kao.simsim import (ResourceSetSimu, SimSched, SWFWorkload)

swf_wkld = SWFWorkload("gofree_sample.swf")

print(swf_wkld.gene_jobsim_sub_time(100, 500, 1000))
예제 #2
0
파일: test_simsim.py 프로젝트: fr0uty/oartm
def test_SWFWorkload():
    swf_wkld = SWFWorkload(os.path.dirname(__file__) + "/gofree_sample_1.swf")
    simu_jobs, sub_time_jids = swf_wkld.gene_jobsim_sub_time(100, 300, 1000)
    print(len(simu_jobs), len(sub_time_jids))
    assert len(simu_jobs) == 247
    assert len(sub_time_jids) == 6