602c12569a0b028041857b07f9caa23413a9a654,client_example.py,,,#,5
Before Change
for j in range(1, 200, 10):
start_t = time.time()
tmp = data * j
print(type(ec.encode(tmp)))
time_t = time.time() - start_t
print("encoding %d strs in %.2fs, speed: %d/s" %
(len(tmp), time_t, int(len(tmp) / time_t)))
After Change
for j in range(1, 200, 10):
start_t = time.time()
tmp = data * j
ec.encode(tmp)
time_t = time.time() - start_t
print("encoding %d strs in %.2fs, speed: %d/s" %
(len(tmp), time_t, int(len(tmp) / time_t)))
// bad example: encode a string
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: hanxiao/bert-as-service
Commit Name: 602c12569a0b028041857b07f9caa23413a9a654
Time: 2018-11-11
Author: hanhxiao@tencent.com
File Name: client_example.py
Class Name:
Method Name:
Project Name: hanxiao/bert-as-service
Commit Name: c139d9a5dcca330c527cbd44cc41b2ef50f57276
Time: 2018-12-18
Author: hanhxiao@tencent.com
File Name: example/example8.py
Class Name:
Method Name:
Project Name: hanxiao/bert-as-service
Commit Name: e4c6fe0fb71a872b3534d90b4db2d67494f91675
Time: 2018-11-27
Author: hanhxiao@tencent.com
File Name: example4.py
Class Name:
Method Name: get_encodes