Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit 561bf09

Browse files
committed
Remove yajl from benchmarks
This is causing CI build problems on macOS
1 parent 4fbe3a6 commit 561bf09

File tree

4 files changed

+195
-199
lines changed

4 files changed

+195
-199
lines changed

benchmarks/benchmark_ujson.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
if not skip_lib_comparisons:
2626
import ujson
2727
import simplejson
28-
import yajl
2928
import orjson
3029

3130
benchmark_results = []
@@ -56,7 +55,7 @@ def results_record_result(callback, is_encode, count):
5655

5756

5857
def results_output_table():
59-
LIBRARIES = ("hyperjson", "ujson", "yajl", "simplejson", "json", "orjson")
58+
LIBRARIES = ("hyperjson", "ujson", "simplejson", "json", "orjson")
6059
ENDC = '\033[0m'
6160
GREEN = '\033[92m'
6261

@@ -140,10 +139,6 @@ def dumps_with_ujson():
140139
ujson.dumps(test_object, ensure_ascii=False)
141140

142141

143-
def dumps_with_yajl():
144-
yajl.dumps(test_object)
145-
146-
147142
def dumps_with_orjson():
148143
orjson.dumps(test_object)
149144

@@ -154,10 +149,6 @@ def dumps_sorted_with_json():
154149
json.dumps(test_object, sort_keys=True)
155150

156151

157-
def dumps_sorted_with_yajl():
158-
yajl.dumps(test_object, sort_keys=True)
159-
160-
161152
def dumps_sorted_with_hyperjson():
162153
hyperjson.dumps(test_object, sort_keys=True)
163154

@@ -192,10 +183,6 @@ def loads_with_ujson():
192183
ujson.loads(decode_data)
193184

194185

195-
def loads_with_yajl():
196-
yajl.loads(decode_data)
197-
198-
199186
def load_with_orjson():
200187
orjson.loads(test_object)
201188

@@ -207,7 +194,6 @@ def run_decode(count):
207194
if not skip_lib_comparisons:
208195
results_record_result(loads_with_ujson, False, count)
209196
results_record_result(loads_with_simplejson, False, count)
210-
results_record_result(loads_with_yajl, False, count)
211197
results_record_result(loads_with_json, False, count)
212198
results_record_result(loads_with_orjson, False, count)
213199

@@ -217,7 +203,6 @@ def run_encode(count):
217203
if not skip_lib_comparisons:
218204
results_record_result(dumps_with_ujson, True, count)
219205
results_record_result(dumps_with_simplejson, True, count)
220-
results_record_result(dumps_with_yajl, True, count)
221206
results_record_result(dumps_with_json, True, count)
222207
results_record_result(dumps_with_orjson, True, count)
223208

@@ -227,7 +212,6 @@ def run_encode_sort_keys(count):
227212
if not skip_lib_comparisons:
228213
results_record_result(dumps_sorted_with_ujson, True, count)
229214
results_record_result(dumps_sorted_with_simplejson, True, count)
230-
results_record_result(dumps_sorted_with_yajl, True, count)
231215
results_record_result(dumps_sorted_with_json, True, count)
232216
results_record_result(dumps_sorted_with_orjson, True, count)
233217

conftest.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ def pytest_addoption(parser):
4141
contenders.append(Contender('ujson',
4242
ujson.dumps,
4343
ujson.loads))
44-
try:
45-
import yajl
46-
except ImportError:
47-
pass
48-
else:
49-
contenders.append(Contender('yajl',
50-
yajl.dumps,
51-
yajl.loads))
5244

5345
try:
5446
import rapidjson

0 commit comments

Comments
 (0)