Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Delay Test | 时延测试 #5

Open
sky5454 opened this issue Apr 12, 2020 · 0 comments
Open

Time Delay Test | 时延测试 #5

sky5454 opened this issue Apr 12, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@sky5454
Copy link
Owner

sky5454 commented Apr 12, 2020

Use the test code as follow in BookManage

long a = System.currentTimeMillis();
 // the code you need test
System.out.println("TIME: " + (System.currentTimeMillis()-a));

Result

String sqlString = ClassUtil.getValue(method);

useTime < 30ms

ResultWrapper.convert(rs, method.getGenericReturnType());

useTime < 30ms


DBConnecter.printfResult(rs, true);

useTime < 2ms

public class MapperInvoHander implements InvocationHandler {

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable 

useTime < 100ms, 30~50ms mostly

@sky5454 sky5454 added the documentation Improvements or additions to documentation label Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant