Compare pypy/CPython numpy

PyPy

  • Python 2.7.8 (07ae676d67c6, Feb 07 2015, 23:01:22)
  • [PyPy 2.5.0 with GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)]

CPython

  • Python 3.4.2 :: Anaconda 2.1.0 (x86_64)
  • Numpy version 1.9.0
##  [1] "a **= 2.1"                   "a *= 2.3"                   
##  [3] "a /= 2.2"                    "a += 3.1"                   
##  [5] "a-=b"                        "a.copy()"                   
##  [7] "a.cumprod(out=out)"          "a.cumsum(out=out)"          
##  [9] "a.dot(b)"                    "a.sort()"                   
## [11] "a*=b"                        "a/=b"                       
## [13] "a+=b"                        "M **= 2.1"                  
## [15] "M *= 2.3"                    "M /= 2.2"                   
## [17] "M += 3.1"                    "M-=P"                       
## [19] "M.argmax()"                  "M.argmax(axis=0, out=out)"  
## [21] "M.argmax(axis=1, out=out)"   "M.argsort()"                
## [23] "M.argsort(axis=0)"           "M.argsort(axis=1)"          
## [25] "M.copy()"                    "M.cumprod(axis=0, out=Mout)"
## [27] "M.cumprod(axis=1, out=Mout)" "M.cumprod(out=Mout_ravel)"  
## [29] "M.cumsum(axis=0, out=Mout)"  "M.cumsum(axis=1, out=Mout)" 
## [31] "M.cumsum(out=Mout_ravel)"    "M.dot(a, out=out)"          
## [33] "M.max()"                     "M.max(axis=0, out=out)"     
## [35] "M.max(axis=1, out=out)"      "M.prod()"                   
## [37] "M.prod(axis=0, out=out)"     "M.prod(axis=1, out=out)"    
## [39] "M.sort(axis=0)"              "M.sort(axis=1)"             
## [41] "M.std()"                     "M.std(axis=0, out=out)"     
## [43] "M.std(axis=1, out=out)"      "M.sum()"                    
## [45] "M.sum(axis=0, out=out)"      "M.sum(axis=1, out=out)"     
## [47] "M.var()"                     "M.var(axis=0, out=out)"     
## [49] "M.var(axis=1, out=out)"      "M*=P"                       
## [51] "M/=P"                        "M+=P"                       
## [53] "np.cross(a3, b3)"            "np.linalg.norm(a)"          
## [55] "np.log(a, out=out)"          "np.log(M, out=Mout)"        
## [57] "np.maximum(a, b, out=out)"   "np.maximum(M, P, out=Mout)" 
## [59] "np.minimum(a, b, out=out)"   "np.minimum(M, P, out=Mout)" 
## [61] "np.ones((N, N))"             "np.ones(N)"                 
## [63] "np.random.rand(N)"           "np.random.rand(N*N)"        
## [65] "np.sin(a, out=out)"          "np.sin(M, out=Mout)"        
## [67] "np.sort(a)"                  "np.sort(M, axis=0)"         
## [69] "np.sort(M, axis=1)"          "np.sort(M, axis=None)"      
## [71] "np.sqrt(a, out=out)"         "np.sqrt(M, out=Mout)"       
## [73] "np.zeros((N, N))"            "np.zeros(N)"

Array creation

Vector/Scalar arithmetic

Vector/Vector Math

C Math Funcs

Math Funcs

Accumulation

Sorting

Max/min

benchmarks
## character(0)