From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#44674: 28.0.50; Adding current-cpu-time for performance tests Date: Mon, 16 Nov 2020 19:32:35 +0100 Message-ID: References: <83y2j1rz2f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24682"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 44674@debbugs.gnu.org, Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 16 19:51:41 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kejbI-0006Ig-Td for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Nov 2020 19:51:40 +0100 Original-Received: from localhost ([::1]:39982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kejbH-0007Qe-RI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Nov 2020 13:51:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kejJH-0005AD-4t for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2020 13:33:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kejJG-0006iF-Qa for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2020 13:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kejJG-0008LT-Nu for bug-gnu-emacs@gnu.org; Mon, 16 Nov 2020 13:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Nov 2020 18:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44674 X-GNU-PR-Package: emacs Original-Received: via spool by 44674-submit@debbugs.gnu.org id=B44674.160555157532057 (code B ref 44674); Mon, 16 Nov 2020 18:33:02 +0000 Original-Received: (at 44674) by debbugs.gnu.org; 16 Nov 2020 18:32:55 +0000 Original-Received: from localhost ([127.0.0.1]:57178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kejJ9-0008Kz-2J for submit@debbugs.gnu.org; Mon, 16 Nov 2020 13:32:55 -0500 Original-Received: from mail-ot1-f53.google.com ([209.85.210.53]:40993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kejJ6-0008Km-KN for 44674@debbugs.gnu.org; Mon, 16 Nov 2020 13:32:53 -0500 Original-Received: by mail-ot1-f53.google.com with SMTP id o3so6431906ota.8 for <44674@debbugs.gnu.org>; Mon, 16 Nov 2020 10:32:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=alJ5VrglCrDR6X8ia5BwHkRmmKsRHYGVv7DZjFAermo=; b=at8Uw+klcd6r9wcQ6g0rHm+xzZcRpdisWXPX/0QMwsJIK4MJpeaJ7zOzyQsr1cT8oG +yXQCIJvQMxODWq1jSW8R4TGocd32Jh7/wadlgtz4VBfzhDVg1dkDvESo+ygUbJkjyXh trzvIpDLMArH4eImWiszXTHMFNj4tcumK7G7GlNsP9ru+oNEP8dsqCT1vPFdvbVU9zh8 F5FET7OFuIGRjCUYyJH+UVmXegAzeDY+8JyPbWPC3iBw9YqyKa3BfGIMZunW+6sQJfYR iNY0offlcJO+HDAYtz97JFxnujVkgEOH8usSWr/wsD7lEfb0kEtXiKk0QDktE5HcuisE jf8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=alJ5VrglCrDR6X8ia5BwHkRmmKsRHYGVv7DZjFAermo=; b=Ox01WuOlkim1PEerNaTRu/GY9n7mGSH+X7lWef+qSB54+G6KspwkT/OKAmKyG9vdsb 39BdSR1tDInhPDWDnzTrM2fjTAu4yRZZuwsdR37M0hOPallLwP2vO7fGVE9f0n0FHsv1 OlButGVDQeAbISmGJNti8BM70aWTqx5TWenkRyhULc4SBhl+U81McoqlNxC5R9GEHBN4 N33N2143OjvZqpE1UwkUZiSQpyYqH8GsAv+sAP+6g08sHetnauqQqHb6xJz4NWcJyh8j V/qYdtkxXZIePnlhfERkaeulNHz8QQS0GoFqUn//wKLEtK8w21OsImDW+AT9nMlRMR2q La2g== X-Gm-Message-State: AOAM532A5HbHJFBRHlAWvfiiEXh890CZ7ECmK8FzzpnA+ggFQariBLBN rCIV+bpppSHJ6naK3TC+5/c1udP5mdfRw7g6lnA= X-Google-Smtp-Source: ABdhPJxrfQNJ/Lp3Gfux+jGMjq0uHLBfRAA+2mqy+eGN3n2601tX7aR6eTr57DJuLMUD9ZXuhUCHDkvAdT4qd+r9O8Q= X-Received: by 2002:a9d:d73:: with SMTP id 106mr470439oti.36.1605551567023; Mon, 16 Nov 2020 10:32:47 -0800 (PST) In-Reply-To: <83y2j1rz2f.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193455 Archived-At: Am Mo., 16. Nov. 2020 um 18:28 Uhr schrieb Eli Zaretskii : > > > From: Stefan Monnier > > Cc: Eli Zaretskii , 44674@debbugs.gnu.org, Philipp Stephani > > > > Date: Mon, 16 Nov 2020 10:27:29 -0500 > > > > > AFAIU, using 'clock' here is not the best idea, as there are caveats wrt to > > > calling 'system', and the origin of the returned value is not well defined > > > to be portable. > > > > What do you mean by "origin" and by "calling 'system'"? > > Quoting https://pubs.opengroup.org/onlinepubs/9699919799/: > > The clock() function shall return the implementation's best > approximation to the processor time used by the process > since the beginning of an implementation-defined era > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > related only to the process invocation. > > How do you write portable Lisp code that returns consistent results > based on such shaky foundations? For non-walltime clocks, only the difference between two measurements is meaningful.