Question about --lazy-comopilation=false in JDK-8u40-b25 (original) (raw)
Kunal Cholera kcholera at linkedin.com
Wed Mar 11 02:07:20 UTC 2015
- Previous message: Question about --lazy-comopilation=false in JDK-8u40-b25
- Next message: Effective warmup strategy for Nashorn - JDK-8u40-b25
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
zip location - https://drive.google.com/file/d/0B5PpdCJ7YycqMWlVQ0FsNlozcTA/view?usp=sharing
From: nashorn-dev [nashorn-dev-bounces at openjdk.java.net] on behalf of Kunal Cholera [kcholera at linkedin.com] Sent: Tuesday, March 10, 2015 6:42 PM To: nashorn-dev at openjdk.java.net Subject: Question about --lazy-comopilation=false in JDK-8u40-b25
Hello Nahsorn dev team,
Is it a good idea to turn off lazy compilation to get faster warmup and better overall performance over long run ? Execution time on our javascript shows that turning off lazy outperforms persistent code cache and optimistic types. See data with column_name “lazy=false” in https://plot.ly/~usckmc/182 [1] .Here is the graph comparing8u40 with and without lazy compilation(lazy=false) https://drive.google.com/file/d/0B5PpdCJ7YycqVlhlSnJfTl9ac00/view . Is that expected ?
From xhelp we got very little information about what lazy-compilation is doing: --lazy-compilation (do not compile the entire script at once, default: true). Can you provide more insights about what this feature does and what scenarios might benefit from its use?
[1] Steps to reproduce these performance numbers - Download this zip https://drive.google.com/file/d/0B5PpdCJ7YycqMWlVQ0FsNlozcTA/view?usp=sharing which has the following four files
- bench.js - the benchmarking script
- hp.js - the javascript we want to execute on Nashorn
- hp.json - the data we want to use while executing our script hp.js
- dust-full.js - library needed to execute hp.js script
run jjs bench.js -scripting --lazy-compilation=false -- 10000
I am using "1.8.0_40-ea" Java(TM) SE Runtime Environment (build 1.8.0_40-ea-b25 on 8 core redhat linux machine ).
Please advise.
Thanks Kunal Cholera
- Previous message: Question about --lazy-comopilation=false in JDK-8u40-b25
- Next message: Effective warmup strategy for Nashorn - JDK-8u40-b25
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]