当前位置:网站首页>[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
边栏推荐
- STM32 reverse entry
- 5-36v input automatic voltage rise and fall PD fast charging scheme drawing 30W low-cost chip
- [SQL injection] joint query (the simplest injection method)
- document. The problem of missing parameters of referer is solved
- 第十九届浙江省 I. Barbecue
- String matching: find a substring in a string
- Compile and decompile GCC common instructions
- Automatic voltage rise and fall 5-40v multi string super capacitor charging chip and solution
- Truncated sentences of leetcode simple questions
- ZABBIX monitoring of lamp architecture (2): ZABBIX basic operation
猜你喜欢
![[luatos sensor] 1 light sensing bh1750](/img/70/07f29e072c0b8630f92ec837fc12d5.jpg)
[luatos sensor] 1 light sensing bh1750

论文阅读_ICD编码_MSMN

The usage of micro service project swagger aggregation document shows all micro service addresses in the form of swagger grouping

Handling record of electric skateboard detained by traffic police

Leetcode simple problem delete an element to strictly increment the array

【工具跑SQL盲注】

5-36v input automatic voltage rise and fall PD fast charging scheme drawing 30W low-cost chip

Truncated sentences of leetcode simple questions

Thesis reading_ Tsinghua Ernie

逆袭大学生的职业规划
随机推荐
[research materials] annual report of China's pension market in 2021 - Download attached
编译GCC遇到的“pthread.h” not found问题
Concurrent operation memory interaction
The current market situation and development prospect of the global gluten tolerance test kit industry in 2022
General undergraduate college life pit avoidance Guide
The 19th Zhejiang I. barbecue
论文阅读_中文医疗模型_ eHealth
"Niuke brush Verilog" part II Verilog advanced challenge
[set theory] relational representation (relational matrix | examples of relational matrix | properties of relational matrix | operations of relational matrix | relational graph | examples of relationa
Market status and development prospect prediction of the near infrared sensor industry of the global Internet of things in 2022
UiPath实战(08) - 选取器(Selector)
[set theory] relation properties (reflexivity | reflexivity theorem | reflexivity | reflexivity theorem | example)
Distinguish between releases and snapshots in nexus private library
I stepped on a foundation pit today
I've seen a piece of code in the past. I don't know what I'm doing. I can review it when I have time
STM32 reverse entry
Do you know UVs in modeling?
2022-02-11 daily clock in: problem fine brush
Market status and development prospect prediction of global colorimetric cup cover industry in 2022
Oracle SQL table data loss