schelleyyuki / m1-test Goto Github PK
View Code? Open in Web Editor NEWJava编译速度对比测试: M1 MacBook Air vs Intel Core i9 MacBook Pro
Home Page: https://youtu.be/o6q8zPmfVLU
Java编译速度对比测试: M1 MacBook Air vs Intel Core i9 MacBook Pro
Home Page: https://youtu.be/o6q8zPmfVLU
我是帝八哥, 过来和你建立一个连接,哈哈
晚上看见测试视频,我觉得蛮有意思,自己也找不同环境的测试了一番
包括Sun JDK11,Zulu JDK16
在我的MacBook Pro (15-inch, 2016) 的测试成绩如下:
配置信息:
CPU 2.7 GHz 四核Intel Core i7
OS:Big Sur
内存:16 GB 2133 MHz LPDDR3
JDK:OpenJDK Runtime Environment Zulu16+59-CA (build 16-ea+24)
mvn clean -T 1C -Drat.skip=true compile -offline
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.443 s (Wall Clock)
[INFO] Finished at: 2020-12-15T14:24:27+08:00
[INFO] ------------------------------------------------------------------------
在一台48线程96核的AMD EPYC 7642 服务器上
CPU:EPYC 7642 2.3G 96线程
内存:1TB
OS:CentOS 8
JDK:OpenJDK Runtime Environment Zulu16+59-CA (build 16-ea+24)
mvn clean -T 1C -Drat.skip=true compile -offline
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.583 s (Wall Clock)
[INFO] Finished at: 2020-12-15T02:42:15-05:00
[INFO] ------------------------------------------------------------------------
从监控上看,mvn还是很难利用服务器CPU这么多核心并行编译,基本上就是利用了4个C左右
M1 从多线程性能上肯定比不过96线程的服务器CPU,只是说在相对线程数量不多的情况下,优化的确不错
可以再做一些更多的benchmark,common-lang的代码还是太少
Hi,
Not sure had you tested the Liberica JVM for M1?
https://bell-sw.com/pages/downloads/#/java-11-lts
They do provide a stable M1 JVM
https://download.bell-sw.com/java/11.0.11+9/bellsoft-jre11.0.11+9-macos-aarch64-full.pkg
Nice if you can do a test on this JVM. Not only that the JVM come with JavaFX as well.
Thanks and best regards
Ivan
I remember you recommended a terminal hyper in a video, and I guess you should customize the software appropriately because the default settings are a little too simple. Can you tell me how you customize it?
In addition, I recently found a similar terminal terminus, also very useful.
https://github.com/Eugeny/terminus
Nom du modèle : MacBook Pro
Identifiant du modèle : MacBookPro18,3
Puce : Apple M1 Pro
Nombre total de cœurs : 8 (6 performance et 2 efficacité)
Mémoire : 16 Go
openjdk version "17" 2021-09-14
OpenJDK Runtime Environment Microsoft-26987 (build 17+35)
OpenJDK 64-Bit Server VM Microsoft-26987 (build 17+35, mixed mode)
MAVEN_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1" \
mvn clean -T 1C -Drat.skip=true compile -offline
[INFO] Total time: 1.964 s (Wall Clock)
[INFO] Finished at: 2021-10-30T05:18:06+08:00
我在想是不是M1是ARM架构的,本身比X86架构在这点上有优势,因此我在huawei cloud上开通了kc1.2xlarge.2 实例
CPU Huawei Kunpeng 920 2.6GHz 8vCPU
内存 16G
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.965 s (Wall Clock)
[INFO] Finished at: 2020-12-16T14:17:22+08:00
[INFO] ------------------------------------------------------------------------
GC策略 猜测CMS
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.541 s (Wall Clock)
[INFO] Finished at: 2020-12-16T14:18:10+08:00
[INFO] ------------------------------------------------------------------------
GC策略G1
JDK15默认慢一些,而且比我的Macbook Pro 16 2016款更慢
华为自带JDK不认 Unrecognized option: -Xlog:gc*
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.