QuantConnect / pythonnet

Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers.
http://pythonnet.github.io
MIT License
28 stars 27 forks source link

Fixes and performance improvement #58

Closed Martin-Molinero closed 2 years ago

Martin-Molinero commented 2 years ago

Master

Python.EmbeddingTest.TestConverter.ConvertDateTimeRoundTripPerformance(Utc) Took: 2996 Took: 2899 Took: 2907 Python.EmbeddingTest.TestConverter.ConvertDateTimeRoundTripPerformance(Unspecified) Took: 1319 Took: 1297 Took: 1275 Python.EmbeddingTest.TestMethodBinder.NumericalArgumentMethodNumpy64FloatPerformance Took: 878 Took: 867 Took: 865 Python.EmbeddingTest.TestMethodBinder.MethodWithParamsPerformance Took: 1427 Took: 1490 Took: 1522 Python.EmbeddingTest.TestConverter.ConvertDecimalPerformance Took: 1039 Took: 1086 Took: 1044

PR

Python.EmbeddingTest.TestConverter.ConvertDateTimeRoundTripPerformance(Utc) Took: 1193 Took: 1215 Took: 1190 Python.EmbeddingTest.TestConverter.ConvertDateTimeRoundTripPerformance(Unspecified) Took: 761 Took: 778 Took: 728 Python.EmbeddingTest.TestMethodBinder.NumericalArgumentMethodNumpy64FloatPerformance Took: 567 Took: 610 Took: 568 Python.EmbeddingTest.TestMethodBinder.MethodWithParamsPerformance Took: 926 Took: 1039 Took: 990 Python.EmbeddingTest.TestConverter.ConvertDecimalPerformance Took: 632 Took: 621 Took: 642

Lean HistoryRequestBenchmark 2013 to 2016

PR 29.56 seconds at 23k data points per second. Processing total of 683,564 data points. 29.77 seconds at 23k data points per second. Processing total of 683,564 data points. 29.97 seconds at 23k data points per second. Processing total of 683,564 data points. MASTER 36.55 seconds at 19k data points per second. Processing total of 683,564 data points. 35.54 seconds at 19k data points per second. Processing total of 683,564 data points. 36.01 seconds at 19k data points per second. Processing total of 683,564 data points.