Ejemplo n.º 1
0
Archivo: sim2.py Proyecto: 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))
Ejemplo n.º 2
0
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