g****t 发帖数: 31659 | 1 impressive
http://blog.johnnovak.net/2017/04/22/nim-performance-tuning-for-the-uninitiated/
blog.johnnovak.net/2017/04/22/nim-performance-tuning-for-the-uninitiated/ |
N*****m 发帖数: 42603 | 2 现在不如python的uvloop了
【在 g****t 的大作中提到】 : impressive : http://blog.johnnovak.net/2017/04/22/nim-performance-tuning-for-the-uninitiated/ : blog.johnnovak.net/2017/04/22/nim-performance-tuning-for-the-uninitiated/
|
g****t 发帖数: 31659 | 3 The blog is mainly about numerical computation.
========================================
Precalculate T number of random triangles so that all points of the
triangles lie on the surface of the unit sphere.
Precalculate R number of random rays so that each ray goes through two
points randomly selected on the surface of the unit sphere.
Intersect each ray with the whole set of triangles, so there will be R
10005; T intersection tests in total.
========================================
【在 N*****m 的大作中提到】 : 现在不如python的uvloop了
|
N*****m 发帖数: 42603 | 4 昏,用nodejs搞数值计算?
【在 g****t 的大作中提到】 : The blog is mainly about numerical computation. : ======================================== : Precalculate T number of random triangles so that all points of the : triangles lie on the surface of the unit sphere. : Precalculate R number of random rays so that each ray goes through two : points randomly selected on the surface of the unit sphere. : Intersect each ray with the whole set of triangles, so there will be R : 10005; T intersection tests in total. : ========================================
|
g****t 发帖数: 31659 | 5 If nodejs is as fast as JVM, why not?
Of course the "If" is still questionable.
【在 N*****m 的大作中提到】 : 昏,用nodejs搞数值计算?
|
N*****m 发帖数: 42603 | 6 不一样。nodejs快是对io-bound的任务来说的。
如果是cpu-bound,没有多线程,速度就比不上jvm了。
【在 g****t 的大作中提到】 : If nodejs is as fast as JVM, why not? : Of course the "If" is still questionable.
|
g****t 发帖数: 31659 | 7 As I quoted earlier, the Blog used numerical examples to do the test and
that is why I think it is impressive.
Below is the step 1 of the test:
"
Precalculate T number of random triangles so that all points of the
triangles lie on the surface of the unit sphere.
"
【在 N*****m 的大作中提到】 : 不一样。nodejs快是对io-bound的任务来说的。 : 如果是cpu-bound,没有多线程,速度就比不上jvm了。
|
N*****m 发帖数: 42603 | 8 怀疑这些测试没有利用多核。
【在 g****t 的大作中提到】 : As I quoted earlier, the Blog used numerical examples to do the test and : that is why I think it is impressive. : Below is the step 1 of the test: : " : Precalculate T number of random triangles so that all points of the : triangles lie on the surface of the unit sphere. : "
|
c******n 发帖数: 16666 | 9 汗。。我正在写的一个就是nodejs和java的微服务。。。
cpython是啥情况 |
N*****m 发帖数: 42603 | 10 没啥情况,就是最早的python implementation,跟pypy之类的以示区别。
【在 c******n 的大作中提到】 : 汗。。我正在写的一个就是nodejs和java的微服务。。。 : cpython是啥情况
|