JDK-8143297 : Nashorn compilation time reported in nanoseconds
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
With the --log=compiler,time option enabled, compilation times are reported in nanoseconds, leading to unreasonably large numbers. The fix is to apply TimeUnit.NANOSECONDS.toMillis() in the place where the compiler logs its timing characteristics.