|
@@ -41,7 +41,7 @@ if __name__ == "__main__":
|
|
|
parser.add_argument("--thread")
|
|
|
args = parser.parse_args()
|
|
|
thread = int(args.thread)
|
|
|
- dt = ["{}#http://127.0.0.1:5000/lightgbm_score".format(i) for i in range(1, 1001)]
|
|
|
+ dt = ["{}#http://127.0.0.1:8000/lightgbm_score".format(i) for i in range(1, 1001)]
|
|
|
total_s = time.time()
|
|
|
with ThreadPoolExecutor(max_workers=thread) as pool:
|
|
|
pool.map(request_data, dt)
|