diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2013-10-15 16:56:40 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2013-10-23 14:03:47 -0700 |
commit | 4fefa4e0314ab583ecfef854fd150fa03e73facc (patch) | |
tree | e371239f2297da6039fd2e646e7c8125bec1bb3c /piglit-run.py | |
parent | e2db75196949bb88c3bcfdc1085ec733739de831 (diff) |
Use simplejson if available
simplejson is a native code version of the json module in python
(the json module in core python implements the simplejson api), which
means that simplejson can be used in place of the json module, but it
performs much better. This patch attempts to load simplejson, and falls
back to normal json if it fails.
In the summary path on a single run of quick.tests, simplejson is about
3-4 seconds faster than json, ~7 seconds vs ~11 seconds.
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Diffstat (limited to 'piglit-run.py')
-rwxr-xr-x | piglit-run.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/piglit-run.py b/piglit-run.py index d27581afe..1d63cd4b5 100755 --- a/piglit-run.py +++ b/piglit-run.py @@ -28,7 +28,6 @@ import os import os.path as path import time import traceback -import json sys.path.append(path.dirname(path.realpath(sys.argv[0]))) import framework.core as core |