diff options
author | Bob Ippolito <bob@redivi.com> | 2006-01-03 06:09:54 +0000 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2006-01-03 06:09:54 +0000 |
commit | 07e70f336381a0b89177feaf6e5c6af5dd8e74c2 (patch) | |
tree | ec569faa96963fd6f50fea6f41fc2f3da0759246 /scripts | |
parent | 84eea045890fa00e10fb118f0484a3318b04c9b8 (diff) | |
download | simplejson-07e70f336381a0b89177feaf6e5c6af5dd8e74c2.tar.gz |
bump to 1.2, dumb benchmarks, performance enhancements to decoder
git-svn-id: http://simplejson.googlecode.com/svn/trunk@12 a4795897-2c25-0410-b006-0d3caba88fa1
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bench.sh | 2 | ||||
-rwxr-xr-x | scripts/prof.py | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/scripts/bench.sh b/scripts/bench.sh new file mode 100755 index 0000000..e30e246 --- /dev/null +++ b/scripts/bench.sh @@ -0,0 +1,2 @@ +#!/bin/sh +/usr/bin/env python -mtimeit -s 'from simplejson.tests.test_pass1 import test_parse' 'test_parse()' diff --git a/scripts/prof.py b/scripts/prof.py new file mode 100755 index 0000000..45c7a85 --- /dev/null +++ b/scripts/prof.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python2.4 +from pkg_resources import require +require('simplejson') + +import profile + +from simplejson.tests.test_pass1 import test_parse + +profile.run("for x in xrange(10): test_parse()") |