当前位置:网站首页>[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
边栏推荐
- Use Sqlalchemy module to obtain the table name and field name of the existing table in the database
- 并发操作-内存交互操作
- 50 practical applications of R language (36) - data visualization from basic to advanced
- 逆袭大学生的职业规划
- Market status and development prospects of the global automatic tea picker industry in 2022
- [luatos sensor] 2 air pressure bmp180
- "Niuke brush Verilog" part II Verilog advanced challenge
- [research materials] 2021 annual report on mergers and acquisitions in the property management industry - Download attached
- Number of uniform strings of leetcode simple problem
- @RequestMapping
猜你喜欢

LVS load balancing cluster of efficient multi-purpose cluster (NAT mode)

MediaTek 2023 IC written examination approved in advance (topic)

The programmer resigned and was sentenced to 10 months for deleting the code. JD came home and said that it took 30000 to restore the database. Netizen: This is really a revenge

Automatic voltage rise and fall 5-40v multi string super capacitor charging chip and solution

The consumption of Internet of things users is only 76 cents, and the price has become the biggest obstacle to the promotion of 5g industrial interconnection

Source insight garbled code solution

Three representations of signed numbers: original code, inverse code and complement code

2022-02-12 daily clock in: problem fine brush

Thesis reading_ ICD code_ MSMN

UiPath实战(08) - 选取器(Selector)
随机推荐
Truncated sentences of leetcode simple questions
Preparation for school and professional cognition
RT thread flow notes I startup, schedule, thread
@RequestMapping
Hire cashier (differential constraint)
112 stucked keyboard (20 points)
1118 birds in forest (25 points)
[SQL injection] joint query (the simplest injection method)
Market status and development prospect prediction of the global forward fluorescent microscope industry in 2022
Day 51 - tree problem
关于开学的准备与专业认知
[set theory] relationship properties (symmetry | symmetry examples | symmetry related theorems | antisymmetry | antisymmetry examples | antisymmetry theorems)
普通本科大学生活避坑指南
文献阅读_基于多模态数据语义融合的旅游在线评论有用性识别研究(中文文献)
Notes | numpy-10 Iterative array
Market status and development prospect forecast of global button dropper industry in 2022
The consumption of Internet of things users is only 76 cents, and the price has become the biggest obstacle to the promotion of 5g industrial interconnection
The usage of micro service project swagger aggregation document shows all micro service addresses in the form of swagger grouping
[set theory] relation properties (reflexivity | reflexivity theorem | reflexivity | reflexivity theorem | example)
Concurrent operation memory interaction