PYTHON-2537 Fix benchmark when using Python 3 (#565)
This commit is contained in:
parent
7ca1efda43
commit
846e925280
@ -22,7 +22,7 @@ pip install simplejson
|
||||
|
||||
python setup.py build_ext -i
|
||||
start_time=$(date +%s)
|
||||
python test/performance/perf_test.py
|
||||
python test/performance/perf_test.py --locals
|
||||
end_time=$(date +%s)
|
||||
elapsed_secs=$((end_time-start_time))
|
||||
|
||||
|
||||
@ -399,7 +399,7 @@ def insert_json_file_with_file_id(filename):
|
||||
|
||||
def read_json_file(filename):
|
||||
coll = proc_client.perftest.corpus
|
||||
temp = tempfile.TemporaryFile()
|
||||
temp = tempfile.TemporaryFile(mode='w')
|
||||
try:
|
||||
temp.writelines(
|
||||
[json.dumps(doc) + '\n' for
|
||||
|
||||
Loading…
Reference in New Issue
Block a user