- 浏览: 96093 次
- 性别:
- 来自: HK
文章分类
最新评论
-
Mr.小裤裤:
谢谢,
我生日过的很快乐,
o(∩_∩)o...
system badimageformatexception and its partial solution
pypy-1.9 昨天已经发布,据称性能又有所提高。
于是我特地用一个东西来测试一下:
就是bson的 encode效率
pymongo的bson自带一个用c写的扩展用于speed up速度。
在我的t400, win7下测试。大约一秒钟可以encode 10万的数据。
用pypy-1.9速度能达到多少呢? 同样的bson without c_extension。
速度大约为每秒9万。
某种程度上说,pypy-jit的效率已经逼近用c写的代码。而用c写代码让py来加速 就算现在用上cython也是比不上直接上python来得方便。
另外一个好消息是:cython现在最新的dev版本 大致上可以和pypy一起工作了。这样很多东西就有了实现的可能。
例如 cx_freeze & pypy。
pypy鼓励大家使用py来写代码而不是用c。但是这个世界终究没那么理想和纯粹,有不少的库我们没法很方便地用py重写。 pypy的c-api 的支持十分的糟糕,以至于有不少著名的包专门为此制作了 ctypes based的版本。
对于ctypes..我个人的意见是:如果能使用cython 就不要用ctypes。特别是要和cx_freeze一起用的话.......
这个月工作告一段落后,打算抽些时间研究一下cx_freeze。看能否让它和pypy一起工作。pyp最近的进展很令人振奋。
发表评论
-
static building lxml
2014-08-13 19:15 759well it is not really straig ... -
build pyrun/python from source
2014-08-01 19:39 539quite easy on ubuntu. 1: ... -
build apsw manually
2014-01-06 01:22 507download sqlite sources and co ... -
python, vs 2010 & manifest problem
2013-11-02 13:33 587It looks like python com ... -
numpy 1.7.0 fails with cx_freeze 4.3.1
2013-02-24 16:13 825It is a work around: find ... -
build psycopg2 on windows with mingw64
2013-01-03 20:36 932caution: version match problem. ... -
Determining if a point lies on the interior of a polygon
2012-09-25 02:23 653link: http://paulbourke.net/geo ... -
a naive way to use dictcursor of psycopg2 with twisted adbapi
2012-05-03 03:14 1119make a new file called fakedb.p ... -
build psycopg2 on windows with vs
2012-05-02 02:16 832prerequisites: 1: postgresq ... -
twisted iocp reactor is still buggy---it was fixed on 23/10/2012
2012-03-19 14:53 1210I reported a bug on last wee ... -
One way to speed up Pb invoke.
2012-03-14 21:31 810Pb (stands for Perspecti ... -
change buffer size in order to send chunks data in ampoule
2011-12-03 16:08 763ampoule use name pipe to commun ... -
which one is thread safe?
2011-09-21 12:31 875quote: It's not so much tha ... -
cython的另类用途
2011-08-04 02:30 1515都知道py虽然方便但是却有个不是问题的问题:就是发布时的二进制 ... -
instructions for installing some python's pkgs on ubuntu
2011-07-23 00:54 755make sure python-dev, gcc and o ... -
a tedious way to build the latest pytables
2011-07-17 03:33 688pyTables is a great product. It ... -
再谈twisted
2011-06-29 17:03 1399现在我手头用的是11.0。 很好。没什么很大的问题,原来的版本 ... -
cython的效果
2011-06-29 00:29 769我有个用py写的 crc-ccitt的验证程序(实现效率并不高 ... -
the simplest way to use vs 2010 with python
2011-06-03 15:48 636edit py/Lib/distutils/msvc9comp ... -
speeding up python
2011-06-03 15:36 842python确实是十分慢的语 ...
相关推荐
PyPy还有一个单独的支持微线程的版本。 另外,PyPy 也有 每夜构建 版本供开发者测试。 PyPy是作为Specific Targeted Research Projects(特定领域研究项目)从2004年12月到2007年3月,开始接受欧盟的援助。
这个项目的核心是通过创建一个大的整数列表来测试 CPU 缓存的局部性,但只乘以每个第 n 个成员。 有关我要测试的内容的更深入的文章,请参阅: 喵喵 如何运行: ./mew.py <amount> <number> 例如,如果我们要创建...
离线安装包,测试可用。使用 pip install [完整包名] 进行安装
离线安装包,测试可用。使用 pip install [完整包名] 进行安装
profile性能测试,在相同的代码下测试pypy和cpython的运行时间,得到结果较为可靠,从得出的数据中可以看出两者的性能大概可以差距40倍左右。
PyPy.js网站 注意:目前,开发处于Hibernate状态。 在这里讨论: : pypyjs.github.io是网站的源代码,该网站通过github页面托管。 PyPy.js:在运行时将PyPy JIT编译为JavaScript。 因为为什么不。 主要的PyPy.js...
离线安装包,测试可用。使用 pip install [完整包名] 进行安装
离线安装包,测试可用。使用 pip install [完整包名] 进行安装
离线安装包,测试可用。使用 pip install [完整包名] 进行安装
离线安装包,测试可用。使用 pip install [完整包名] 进行安装
离线安装包,测试可用。使用 pip install [完整包名] 进行安装
离线安装包,测试可用。使用 pip install [完整包名] 进行安装
离线安装包,测试可用。使用 pip install [完整包名] 进行安装
pypyscheme 公然剽窃 peter norvig 的 lispy 以测试 pypy 运行时
我不会py
迅捷测试一个示例测试来说明 Swift 和其他流行编程语言之间的性能。 ##Basis 使用色尼计算小于 100,1000 的最大质数##Notice 本次测试为样本主观,请勿在准确的地方引用本次测试的结果。 ##Current 语言和分数...
经测试的设备: Volla电话 拱门:aarch64 取决于: 安装信息: 首先安装解释器,而安装 。 卸载pypy信息: sudo rm -r /opt/click.ubuntu.com/pypy.aarch64.knackwurstking 注意:此点击打包程序没有* .desktop...
pytest requires: Python 3.7+ or PyPy3. PyPI package name: pytest A quick example # content of test_sample.py def inc(x): return x + 1 def test_answer(): assert inc(3) == 5 To execute it: $ ...
离线安装包,测试可用
离线安装包,测试可用