25
25
if not skip_lib_comparisons :
26
26
import ujson
27
27
import simplejson
28
- import yajl
29
28
import orjson
30
29
31
30
benchmark_results = []
@@ -56,7 +55,7 @@ def results_record_result(callback, is_encode, count):
56
55
57
56
58
57
def results_output_table ():
59
- LIBRARIES = ("hyperjson" , "ujson" , "yajl" , " simplejson" , "json" , "orjson" )
58
+ LIBRARIES = ("hyperjson" , "ujson" , "simplejson" , "json" , "orjson" )
60
59
ENDC = '\033 [0m'
61
60
GREEN = '\033 [92m'
62
61
@@ -140,10 +139,6 @@ def dumps_with_ujson():
140
139
ujson .dumps (test_object , ensure_ascii = False )
141
140
142
141
143
- def dumps_with_yajl ():
144
- yajl .dumps (test_object )
145
-
146
-
147
142
def dumps_with_orjson ():
148
143
orjson .dumps (test_object )
149
144
@@ -154,10 +149,6 @@ def dumps_sorted_with_json():
154
149
json .dumps (test_object , sort_keys = True )
155
150
156
151
157
- def dumps_sorted_with_yajl ():
158
- yajl .dumps (test_object , sort_keys = True )
159
-
160
-
161
152
def dumps_sorted_with_hyperjson ():
162
153
hyperjson .dumps (test_object , sort_keys = True )
163
154
@@ -192,10 +183,6 @@ def loads_with_ujson():
192
183
ujson .loads (decode_data )
193
184
194
185
195
- def loads_with_yajl ():
196
- yajl .loads (decode_data )
197
-
198
-
199
186
def load_with_orjson ():
200
187
orjson .loads (test_object )
201
188
@@ -207,7 +194,6 @@ def run_decode(count):
207
194
if not skip_lib_comparisons :
208
195
results_record_result (loads_with_ujson , False , count )
209
196
results_record_result (loads_with_simplejson , False , count )
210
- results_record_result (loads_with_yajl , False , count )
211
197
results_record_result (loads_with_json , False , count )
212
198
results_record_result (loads_with_orjson , False , count )
213
199
@@ -217,7 +203,6 @@ def run_encode(count):
217
203
if not skip_lib_comparisons :
218
204
results_record_result (dumps_with_ujson , True , count )
219
205
results_record_result (dumps_with_simplejson , True , count )
220
- results_record_result (dumps_with_yajl , True , count )
221
206
results_record_result (dumps_with_json , True , count )
222
207
results_record_result (dumps_with_orjson , True , count )
223
208
@@ -227,7 +212,6 @@ def run_encode_sort_keys(count):
227
212
if not skip_lib_comparisons :
228
213
results_record_result (dumps_sorted_with_ujson , True , count )
229
214
results_record_result (dumps_sorted_with_simplejson , True , count )
230
- results_record_result (dumps_sorted_with_yajl , True , count )
231
215
results_record_result (dumps_sorted_with_json , True , count )
232
216
results_record_result (dumps_sorted_with_orjson , True , count )
233
217
0 commit comments