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

EasyHttp动态代理方案测试 #6

Closed
liudaac opened this issue Apr 23, 2023 · 1 comment
Closed

EasyHttp动态代理方案测试 #6

liudaac opened this issue Apr 23, 2023 · 1 comment

Comments

@liudaac
Copy link
Owner

liudaac commented Apr 23, 2023

实现jdk动态代理和byte-buddy双方案,进行调用性能Benchmark测试

@liudaac
Copy link
Owner Author

liudaac commented Apr 25, 2023

Already done in the package [[https://github.com/liudaac/aradin/tree/main/aradin-easy/aradin-easy-http-buddy/src/test/java/cn/aradin/easy/http/compare/result]]

可以看出来最大的区别在于生成的执行方法是否使用当前对象作为入参,从这个角度来看,理论上ByteBuddy面对注解Http这个需求的调用开销虽小,但相差不大。

另外,可以看到这两种代理类型生成方案,全部使用了static方式来缓存Method,避免重复构造问题。

@liudaac liudaac closed this as completed Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant