当前位置:网站首页>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
边栏推荐
- Integritee通过XCM集成至Moonriver,为其生态系统带来企业级隐私解决方案
- What financial products can you buy with a deposit of 100000 yuan?
- idea大小写快捷键
- 同事的接口文档我每次看着就头大,毛病多多。。。
- idea恢复默认快捷键
- Related concepts of federal learning and motivation (1)
- Après l'insertion de l'image dans le mot, il y a une ligne vide au - dessus de l'image, et la disposition est désordonnée après la suppression
- 什么叫内卷?
- 卷积神经网络在深度学习中新发展的5篇论文推荐
- Oracle database, numbers Force 2 decimal places to display-Alibaba Cloud
猜你喜欢

Alibaba testers use UI automated testing to achieve element positioning

Four traversal methods of binary tree, as well as the creation of binary tree from middle order to post order, pre order to middle order, pre order to post order, and sequence [specially created for t
Practical examples of node strong cache and negotiation cache

电脑怎么保存网页到桌面上使用

阿里测试师用UI自动化测试实现元素定位

Flet tutorial 06 basic introduction to textbutton (tutorial includes source code)

What should I do if my computer sharing printer refuses access

How does the computer save web pages to the desktop for use

What if the computer page cannot be full screen? The solution of win11 page cannot be full screen

Dynamic memory management
随机推荐
企业数字化转型最佳实践案例:基于云的数字化平台系统安全措施简介与参考
idea插件
关于联邦学习和激励的相关概念(1)
Practical examples of node strong cache and negotiation cache
BFC面试简述
[in-depth learning] review pytoch's 19 loss functions
Flet教程之 08 AppBar工具栏基础入门(教程含源码)
Lingyun going to sea | 10 jump &huawei cloud: jointly help Africa's inclusive financial services
Browser render page pass
同事的接口文档我每次看着就头大,毛病多多。。。
记一次 .NET 某工控数据采集平台 线程数 爆高分析
MySQL statement execution details
Talking about cookies of client storage technology
Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation
【深度学习】一文看尽Pytorch之十九种损失函数
15million employees are easy to manage, and the cloud native database gaussdb makes HR office more efficient
From automation to digital twins, what can Tupo do?
Every time I look at the interface documents of my colleagues, I get confused and have a lot of problems...
2022 version of stronger jsonpath compatibility and performance test (snack3, fastjson2, jayway.jsonpath)
Why is the maximum speed the speed of light