Path: csiph.com!aioe.org!.POSTED.O5hsyUvK01te0L/SZurVSQ.user.gioia.aioe.org!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Starting jshell takes about 15 seconds Date: Thu, 1 Aug 2019 21:03:50 -0400 Organization: Aioe.org NNTP Server Lines: 39 Message-ID: References: <87tvb6no0u.fsf@munus.decebal.nl> NNTP-Posting-Host: O5hsyUvK01te0L/SZurVSQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: en-US Xref: csiph.com comp.lang.java.programmer:39058 On 7/29/2019 4:01 AM, Andreas Leitgeb wrote: > Arne Vajhøj wrote: >> On 7/28/2019 12:04 PM, Cecil Westerhof wrote: >>> I have played with jshell before, but at the moment I am a bit more >>> serious with it. Starting jshell between 15 and 20 seconds. Executing >>> /reset takes 7 to 10 seconds. >>> This seems a bit long to me. For example starting ipython3 takes less >>> as two seconds. Is this normal, or is there a problem with my system? >>> I am working with Debian 9. >> Here starting jshell takes 1-3 seconds depending on the >> system. Windows 7 and Ubuntu 18.04 both with Java 11. > > The machine's RAM and # of cores may be more significant here > than the OS or even the CPU or bogomips. > > (And in case of enough RAM, then also whether jshell is already > in the cache versus first-start.) > > PS: Ubuntu here with 8GB on core i7 2.80GHz (HW about 10 years old): > first jshell start: roughly 6 secs, second one roughly 2 secs > > $ time $JAVA12_HOME/bin/jshell <<< "/exit" > | Welcome to JShell -- Version 12.0.2 > | For an introduction type: /help intro > > jshell> | Goodbye > > real 0m1.708s <-- > user 0m4.728s <-- that's where # of cores comes in. > sys 0m0.264s Ah - it is multi-threaded. My fast numbers were on 4c 12GB - the slow were on 1c 4GB. Not first start. Arne