You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the measuring of the time I used the time module for python. The reason is that there were some problems with parameters using the timeit implementation.
773
-
According to the measurements the Dataoriented Approach (without Numpy) is the fastest one for loading the date and numpy is the slowest. That's obvious because numpy is not designed for single element operations, it's designed to work on enormous datasets.
774
-
That's the reason why numpy is in finding the mean for a certain month, week and year the fastest.
793
+
According to the measurements the Dataoriented Approach (without Numpy) is the fastest one for loading the date and a few miliseconds numpy slower. That's obvious because numpy is not designed for single element operations, it's designed to work on enormous datasets which are already preloaded.
794
+
Therefore the numpy (and also the Dataoriented) approach are a lot slower doing single element operations than the objectoriented one.
795
+
On the other side numpy is in finding the mean for a certain month, week and year the fastest, because in thoose scenarios the way its working is at its best.
775
796
Among the data oriented and object oriented approach is nearly no differences. Sometimes the object oriented is 0.002 seconds faster and sometimes the other way around
776
-
All in all it's safe to say that numpy isn't that fast loading the data, but it can work really fast on aggregated Data.
797
+
All in all it's safe to say that numpy isn't that fast loading the data, but it can work really fast on aggregated Data. On the other hand it is better to use objects for single element operations
0 commit comments