Skip to main content
edited tags
Link
t3chb0t
  • 44.7k
  • 9
  • 85
  • 191
edited tags
Link
added 461 characters in body
Source Link

my run eviroment is

  1. python3.6.4 MSC v.1900 32 bit (Intel)
  2. win8.1 64 bit

I i run ipython in the script file direcotry and input below:

from gen_cylinder_pressure_data_from_csv import *
In [5]: %timeit main_pure_python()
153 ms ± 1.11 ms per loop (mean ± std. dev. of 7 runs, 10 loops each

In [6]: %timeit main_with_numpy()
627 ms ± 3.51 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

python code is below:

my run eviroment is

  1. python3.6.4 MSC v.1900 32 bit (Intel)
  2. win8.1 64 bit

I i run ipython in the script file direcotry and input below:

from gen_cylinder_pressure_data_from_csv import *
In [5]: %timeit main_pure_python()
153 ms ± 1.11 ms per loop (mean ± std. dev. of 7 runs, 10 loops each

In [6]: %timeit main_with_numpy()
627 ms ± 3.51 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

python code is below:

Tweeted twitter.com/StackCodeReview/status/1059777497267605504
added 8 characters in body
Source Link
t3chb0t
  • 44.7k
  • 9
  • 85
  • 191
Loading
added 627 characters in body
Source Link
Loading
Source Link
Loading