当前位置:网站首页>GVM use
GVM use
2022-07-04 20:47:00 【The great man ate a Kun on the day he was alive】
1.GVM What is it
GraalVM Is a high-performance runtime , Significantly improve application performance and efficiency , Great for microservices . It is designed to Java,JavaScript, be based on LLVM Language ( for example C and C ++) And other applications written in dynamic languages . It eliminates the isolation between programming languages , The interoperability of shared runtime is realized .
Refer to official documentation https://www.graalvm.org/docs/introduction/
GraalVM It can run independently , It can also be used as OpenJDK or Node.js Part of the platform is embedded , Even in Oracle Execute... In the database .
Use GraalVM Can be Java The machine code directly compiled into binary is applied to generate a Native Image, Let this program run like a general binary file ,Native Image You can start a faster Java application , Native Image Quick start feature , It can achieve the purpose of server free computing .
2. What's the advantage
GraalVM It can run independently , It can also be used as OpenJDK or Node.js Part of the platform is embedded , Even in Oracle Execute... In the database . It's hanging anyway .
Use GraalVM Can be Java The machine code directly compiled into binary is applied to generate a Native Image, Let this program run like a general binary file ,Native Image You can start a faster Java application , Native Image Quick start feature , It can achieve the purpose of server free computing .
You can also reuse data from Java、R or Python The library of , It doesn't have to be used in jython,j++, That kind of Library .
And it can be based on jvm Create a native image for your application . The image generation process uses static analysis to find slave images Java Method can access any code , Then execute completely in advance (AOT) compile . The generated native binary file contains the whole program in the form of machine code , For immediate execution . It can be linked to other local programs , You can also choose to include GraalVM compiler , To provide real-time monitoring (JIT) Supplementary support for compilation , To run any based on graalvm High performance language for . For additional performance , The native image can be built by optimizing the configuration file collected in the previous run of the application
3. Use
gu --version
gu install native-image
gu list Check for success :
./helloworld perform
jar --create --verbose --file HelloWorld.jar --main-class HelloWorld *.class
time java -jar HelloWorld.jar
time ./helloworld
边栏推荐
- Why is the maximum speed the speed of light
- MySQL中的日期时间类型与格式化方式
- 面对同样复杂的测试任务为什么大老很快能梳理解决方案,阿里十年测试工程师道出其中的技巧
- 分析伦敦银走势图的技巧
- C # better operation mongodb database
- Win11亮度被锁定怎么办?Win11亮度被锁定的解决方法
- Managed service network: application architecture evolution in the cloud native Era
- 同事的接口文档我每次看着就头大,毛病多多。。。
- 《动手学深度学习》(三) -- 卷积神经网络 CNN
- tcp为啥是三次握手和四次挥手
猜你喜欢
What if the computer page cannot be full screen? The solution of win11 page cannot be full screen
Aiming at the "amnesia" of deep learning, scientists proposed that based on similarity weighted interleaved learning, they can board PNAS
#夏日挑战赛#带你玩转HarmonyOS多端钢琴演奏
FS4061A升压8.4V充电IC芯片和FS4061B升压12.6V充电IC芯片规格书datasheet
字节测试工程师十年经验直击UI 自动化测试痛点
Qt五子棋人机对战画棋子之QPainter的使用误区总结
FS8B711S14电动红酒开瓶器单片机IC方案开发专用集成IC
Win11无法将值写入注册表项如何解决?
Flet教程之 04 FilledTonalButton基础入门(教程含源码)
Automatic generation of interface automatic test cases by actual operation
随机推荐
How to solve the problem that win11 cannot write the value to the registry key?
Why is the maximum speed the speed of light
剑指 Offer II 80-100(持续更新)
Integritee通过XCM集成至Moonriver,为其生态系统带来企业级隐私解决方案
idea恢复默认快捷键
Flet tutorial 06 basic introduction to textbutton (tutorial includes source code)
After inserting a picture into word, there is a blank line above the picture, and the layout changes after deletion
See how Tencent does interface automation testing
What if win11u disk refuses access? An effective solution to win11u disk access denial
Flet tutorial 05 outlinedbutton basic introduction (tutorial includes source code)
B2B mall system development of electronic components: an example of enabling enterprises to build standardized purchase, sale and inventory processes
PermissionError: [Errno 13] Permission denied: ‘data.csv‘
Reinforcement learning - learning notes 2 | value learning
Flet tutorial 07 basic introduction to popupmenubutton (tutorial includes source code)
栈:如何实现有效括号的判断?
LeetCode 871. 最低加油次数
什么是区块哈希竞猜游戏系统开发?哈希竞猜游戏系统开发(案例成熟)
【深度学习】一文看尽Pytorch之十九种损失函数
实践示例理解js强缓存协商缓存
FS8B711S14电动红酒开瓶器单片机IC方案开发专用集成IC