import json

def test():
    d = {"buildid":"aa995549415cd52a6fbbc21811dfc2dd00e2c242",
        "elf":"/usr/lib/mailman/pythonlib/japanese/c/_japanese_codecs.so",
        "rpm":"mailman-2.1.12-17.el6.x86_64.rpm"}
    s = json.dumps(d)

if __name__ == '__main__':
    import timeit
    print(timeit.timeit("test()", setup="from __main__ import test"))
Contents © 2014 Kushal Das - Powered by Nikola
Share