当前位置:网站首页>[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
边栏推荐
- Valentine's day limited withdrawal guide: for one in 200 million of you
- Objects. Requirenonnull method description
- 1115 counting nodes in a BST (30 points)
- Market status and development prospect prediction of the global fire alarm sensor industry in 2022
- Basic use of Metasploit penetration testing framework
- Market status and development prospect forecast of global heat curing adhesive industry in 2022
- 1110 complete binary tree (25 points)
- [research materials] 2021 annual report on mergers and acquisitions in the property management industry - Download attached
- 移动端——uniapp开发记录(公共请求request封装)
- 论文阅读_ICD编码_MSMN
猜你喜欢

Truncated sentences of leetcode simple questions

Handler understands the record

Apache MPM model and ab stress test
![[clock 223] [binary tree] [leetcode high frequency]: 102 Sequence traversal of binary tree](/img/0f/bc8c44aee7a2c9dccac050b1060017.jpg)
[clock 223] [binary tree] [leetcode high frequency]: 102 Sequence traversal of binary tree

STM32 reverse entry
![[tools run SQL blind note]](/img/c3/86db4568b221d2423914990a88eec2.png)
[tools run SQL blind note]

Sdl2 + OpenGL glsl practice (Continued)

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

带有注意力RPN和多关系检测器的小样本目标检测网络(提供源码和数据及下载)...

Symbol of array element product of leetcode simple problem
随机推荐
"Niuke brush Verilog" part II Verilog advanced challenge
[PHP vulnerability weak type] basic knowledge, PHP weak equality, error reporting and bypassing
Leetcode simple question: check whether the string is an array prefix
【SQL注入】联合查询(最简单的注入方法)
Silent authorization login and registration of wechat applet
【XSS绕过-防护策略】理解防护策略,更好的绕过
1118 birds in forest (25 points)
编译GCC遇到的“pthread.h” not found问题
Learn to use the idea breakpoint debugging tool
Current market situation and development prospect forecast of global UV sensitive resin 3D printer industry in 2022
Leetcode simple question: check whether two string arrays are equal
Why does I start with =1? How does this code work?
[set theory] relationship properties (symmetry | symmetry examples | symmetry related theorems | antisymmetry | antisymmetry examples | antisymmetry theorems)
RT thread flow notes I startup, schedule, thread
Market status and development prospect prediction of the global fire hose industry in 2022
MediaTek 2023 IC written examination approved in advance (topic)
Market status and development prospect forecast of global heat curing adhesive industry in 2022
Triangular rasterization
Problems encountered in fuzzy query of SQL statements
移动端——uniapp开发记录(公共请求request封装)