From owner-freebsd-questions@freebsd.org Fri May 1 21:39:24 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EF0C72B077A for ; Fri, 1 May 2020 21:39:24 +0000 (UTC) (envelope-from arne@Steinkamm.COM) Received: from mail.steinkamm.com (mail.steinkamm.com [194.127.175.194]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "steinkamm.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49DQcq3DYnz48ky for ; Fri, 1 May 2020 21:39:22 +0000 (UTC) (envelope-from arne@Steinkamm.COM) Received: from trajan.stk.cx (trajan.stk.cx [10.8.8.110]) by basis.steinkamm.com (8.15.2/8.15.2) with ESMTPS id 041LdCPe022183 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 1 May 2020 23:39:13 +0200 (CEST) (envelope-from arne@steinkamm.com) Received: from trajan.stk.cx (localhost [127.0.0.1]) by trajan.stk.cx (8.15.2/8.15.2) with ESMTPS id 041LdCBf019860 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 1 May 2020 23:39:12 +0200 (CEST) (envelope-from arne@trajan.stk.cx) Received: (from arne@localhost) by trajan.stk.cx (8.15.2/8.15.2/Submit) id 041LdCik019787; Fri, 1 May 2020 23:39:12 +0200 (CEST) (envelope-from arne) Date: Fri, 1 May 2020 23:39:12 +0200 From: Arne Steinkamm To: Christoph Kukulies Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD-speedometer? Message-ID: <20200501213912.GB83180@trajan.stk.cx> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt@Trajan/1.12.1 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on basis.steinkamm.com X-Rspamd-Queue-Id: 49DQcq3DYnz48ky X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of arne@Steinkamm.COM has no SPF policy when checking 194.127.175.194) smtp.mailfrom=arne@Steinkamm.COM X-Spamd-Result: default: False [3.25 / 15.00]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(-0.00)[country: DE(-0.02)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[Steinkamm.COM]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.09)[0.086,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.97)[0.971,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[freebsd-questions@Steinkamm.COM,arne@Steinkamm.COM]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:34646, ipnet:194.127.175.0/24, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[]; FROM_NEQ_ENVFROM(0.00)[freebsd-questions@Steinkamm.COM,arne@Steinkamm.COM] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2020 21:39:25 -0000 On Fri, May 01, 2020 at 10:28:54AM +0200, Christoph Kukulies wrote: > I???m wondering whether there is some kind of performance meter for FreeBSD to give the hardware some kind of rating. > I???m compiling virtualbox-ose now from sources and it lasts already half a day. > > I???m running on an SSD with a 2 core AMD64 2GHz Athlon on an ASRock board. Has come into age of course but > would be nice if one could compare and get an idea what is possible today (e.g. make buildworld times, but better to figure out before having to run make buildworld :) In early days we had this: Jun 8 00:36:02 oldman kernel: BSDI BSD/386 1.1 Kernel #16: Wed Jun 8 00:18:30 MET DST 1994 Jun 8 00:36:02 oldman kernel: arne@oldman:/usr/src/sys/compile/OLDMAN Jun 8 00:36:02 oldman kernel: cpu = 80486 (about 50 MHz) Jun 8 00:36:03 oldman kernel: delay multiplier 1023 Jun 8 00:36:03 oldman kernel: real mem = 16777216 Jun 8 00:36:03 oldman kernel: avail mem = 15187968 Jun 8 00:36:03 oldman kernel: buffer cache = 1638400 Jun 8 00:36:03 oldman kernel: isa0 (root): eisa This delay multiplier was a fast and convenient tool to get an idea how fast the system is. With SMP and technologies like hyperthreading and friends this indicator became more and more unreliable and was removed. My command line tool to get a first idea of the integer(!) single-core(!) performance is this (attention: "time" is also in most shells a builtin) % echo '99999^99999' | time bc > /dev/null A few examples: CPU: Intel(R) Xeon(R) CPU E3-1225 v5 @ 3.30GHz (3312.16-MHz K8-class CPU) 1.83 real 1.83 user 0.00 sys Raspberry Pi 3 running FreeBSD 17.05 real 17.01 user 0.03 sys This is fast and fancy but be warned: GNU bc is much different in it's use of floating arithmetics: Raspberry Pi 3 running raspian: real 0m1,064s user 0m1,038s sys 0m0,010s .//. Arne -- Arne Steinkamm | Home: Mail: arnesteinkammcom