Skip to content

Commit b615fa5

Browse files
committed
[bench] minor fix
1 parent 43e2779 commit b615fa5

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

bench/minibench.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# coding: utf-8
22
import time
33

4-
from oar.kao.job import JobPseudo, set_jobs_cache_keys
54
from oar.kao.scheduling import schedule_id_jobs_ct
65
from oar.kao.slot import Slot, SlotSet
6+
from oar.lib.job_handling import JobPseudo # , set_jobs_cache_keys
77

88

99
class Timer(object):
@@ -75,8 +75,8 @@ def simple_bench_1(job_key_cache=False):
7575
(res, hy, all_ss) = init_data_structure(nb_res)
7676
(j_ids, jobs) = simple_same_jobs_nb_res(i, 10, res)
7777

78-
if job_key_cache:
79-
set_jobs_cache_keys(jobs)
78+
# if job_key_cache:
79+
# set_jobs_cache_keys(jobs)
8080

8181
# for k,job in jobs.items():
8282
# print job.key_cache
@@ -102,8 +102,9 @@ def simple_bench_0():
102102
eva_sched_foo(all_ss, jobs, hy, j_ids)
103103

104104

105-
print("simple_bench_1 same job cache enable")
106-
simple_bench_1(True)
105+
simple_bench_0()
106+
# print("simple_bench_1 same job cache enable")
107+
# simple_bench_1(True)
107108
print("simple_bench_1 same job cache disable")
108109
simple_bench_1(False)
109110

0 commit comments

Comments
 (0)