alibaba / alibaba/testable-mock

从0.7.7升级到0.7.9,启用OmniConstructor的字节码增强模式效率变得非常慢

Open
#327 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.8k
Forks
306
PR merge metrics
No merged PRs in 30d

Description

从0.7.7升级到0.7.9之后,单测时间基本从15秒增加到240秒,效率慢太多了,而且有很多testable相关的打印,关掉OmniConstructor的字节码增强模式效率就正常了,不过会影响部分依赖增强模式的用例
![image](https://github.com/alibaba/testable-mock/assets/25277783/eefcbf68-38de-4b23-a8d9-faa7f93796f6)
![image](https://github.com/alibaba/testable-mock/assets/25277783/7731d557-783f-40be-b6e6-b00fd792fa05)
![image](https://github.com/alibaba/testable-mock/assets/25277783/f446e9c5-1203-4e0b-a982-3a967f9edce6)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the unit-test timing difference after upgrading from 0.7.7 to 0.7.9, comparing OmniConstructor bytecode-enhancement enabled and disabled. Use the reported testable output and screenshots as evidence; done means identifying the regression and restoring normal test speed without breaking cases that depend on enhancement mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
performance, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.