当前位置:网站首页>[backtrader source code analysis 5] rewrite several time number conversion functions in utils with Python
[backtrader source code analysis 5] rewrite several time number conversion functions in utils with Python
2022-07-03 04:56:00 【Yunjinqi】
The result of optimization
begin to compare python date2num and cython date2num
The start time is converted into a number
run 10000000 Time , The cycle time is :0.07014679908752441,cython Time consuming :2.2787744998931885,python The time spent is :5.630713939666748, Calculate the multiple of partial promotion :2.470939507147668
begin to compare python time2num and cython time2num
The start time is converted into a number
run 10000000 Time , The cycle time is :0.06908607482910156,cython Time consuming :1.1824824810028076,python The time spent is :2.6439661979675293, Calculate the multiple of partial promotion :2.2359453441756756
begin to compare python num2date and cython num2date
Start converting numbers into time
run 10000000 Time , The cycle time is :0.06380581855773926,cython Time consuming :6.739114761352539,python The time spent is :11.535799741744995, Calculate the multiple of partial promotion :1.7117678137639791
begin to compare python num2dt and cython num2dt
Start converting numbers into time
run 10000000 Time , The cycle time is :0.06438589096069336,cython Time consuming :8.041357517242432,python The time spent is :12.644205570220947, Calculate the multiple of partial promotion :1.5723968923293115
cython_func.pyx Code
边栏推荐
- The 19th Zhejiang I. barbecue
- 50 practical applications of R language (36) - data visualization from basic to advanced
- Distinguish between releases and snapshots in nexus private library
- Concurrent operation memory interaction
- [PHP vulnerability weak type] basic knowledge, PHP weak equality, error reporting and bypassing
- [research materials] 2021 annual report on mergers and acquisitions in the property management industry - Download attached
- Flutter monitors volume to realize waveform visualization of audio
- 第十九届浙江省 I. Barbecue
- 【PHP漏洞-弱类型】基础知识、php弱相等、报错绕过
- Day 51 - tree problem
猜你喜欢

【工具跑SQL盲注】

The reason why the entity class in the database is changed into hump naming

Leetcode simple question: check whether the string is an array prefix

Cross platform plug-in flutter for displaying local notifications_ local_ notifications

Small sample target detection network with attention RPN and multi relationship detector (provide source code, data and download)
![[PCL self study: filtering] introduction and use of various filters in PCL (continuously updated)](/img/36/53886b9d3b98f744be2b6aa6b5d3eb.jpg)
[PCL self study: filtering] introduction and use of various filters in PCL (continuously updated)
![[research materials] 2022q1 game preferred casual game distribution circular - Download attached](/img/13/5a67c5d08131745759fdc70a71cf0f.jpg)
[research materials] 2022q1 game preferred casual game distribution circular - Download attached
![[luatos sensor] 1 light sensing bh1750](/img/70/07f29e072c0b8630f92ec837fc12d5.jpg)
[luatos sensor] 1 light sensing bh1750

Without 50W bride price, my girlfriend was forcibly dragged away. What should I do

ZABBIX monitoring of lamp architecture (3): zabbix+mysql (to be continued)
随机推荐
Apache MPM model and ab stress test
Compile and decompile GCC common instructions
Cross platform plug-in flutter for displaying local notifications_ local_ notifications
[research materials] 2021 annual report on mergers and acquisitions in the property management industry - Download attached
On typescript and grammar
Market status and development prospect forecast of global button dropper industry in 2022
【XSS绕过-防护策略】理解防护策略,更好的绕过
Market status and development prospect prediction of the global fire extinguisher industry in 2022
ZABBIX monitoring of lamp architecture (2): ZABBIX basic operation
Web security - CSRF (token)
The 19th Zhejiang I. barbecue
LVS load balancing cluster of efficient multi-purpose cluster (NAT mode)
Leetcode simple question: check whether the string is an array prefix
Without 50W bride price, my girlfriend was forcibly dragged away. What should I do
Current market situation and development prospect prediction of global direct energy deposition 3D printer industry in 2022
[set theory] binary relation (example of binary relation operation | example of inverse operation | example of composite operation | example of limiting operation | example of image operation)
Market status and development prospect forecast of global heat curing adhesive industry in 2022
Hire cashier (differential constraint)
文献阅读_基于多模态数据语义融合的旅游在线评论有用性识别研究(中文文献)
Distinguish between releases and snapshots in nexus private library