GNU bug report logs - #32728
Xemacs 23 times as fast as GNU Emacs

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Benninghofen, Benjamin Dr." <benjamin.benninghofen@HIDDEN>; merged with #32729; dated Thu, 13 Sep 2018 15:14:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 32728 32729. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Sep 2018 15:13:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 13 11:13:42 2018
Received: from localhost ([127.0.0.1]:39367 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g0TJO-0006HD-58
	for submit <at> debbugs.gnu.org; Thu, 13 Sep 2018 11:13:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49839)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <benjamin.benninghofen@HIDDEN>)
 id 1g0NDB-0002R8-PM
 for submit <at> debbugs.gnu.org; Thu, 13 Sep 2018 04:42:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <benjamin.benninghofen@HIDDEN>)
 id 1g0ND5-000819-IV
 for submit <at> debbugs.gnu.org; Thu, 13 Sep 2018 04:42:48 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:38881)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <benjamin.benninghofen@HIDDEN>)
 id 1g0ND5-00080w-Bo
 for submit <at> debbugs.gnu.org; Thu, 13 Sep 2018 04:42:47 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42580)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <benjamin.benninghofen@HIDDEN>)
 id 1g0ND4-0003gz-71
 for bug-gnu-emacs@HIDDEN; Thu, 13 Sep 2018 04:42:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <benjamin.benninghofen@HIDDEN>)
 id 1g0ND0-0007yl-41
 for bug-gnu-emacs@HIDDEN; Thu, 13 Sep 2018 04:42:46 -0400
Received: from mo3.myeers.net ([87.190.7.238]:58927)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <benjamin.benninghofen@HIDDEN>)
 id 1g0NCz-0007x1-Ew
 for bug-gnu-emacs@HIDDEN; Thu, 13 Sep 2018 04:42:42 -0400
X-IronPort-AV: E=Sophos;i="5.53,368,1531778400"; 
 d="txt'?scan'208,217";a="39114592"
Received: from unknown (HELO DE0-03HUB-P01.central.mail.corp) ([44.225.67.170])
 by de0-03iro-p04-out.myeers.net with ESMTP/TLS/AES256-SHA;
 13 Sep 2018 10:42:37 +0200
Received: from esa2e.demail.de.airbusds.corp (10.67.144.34) by
 DE0-03HUB-P01.central.mail.corp (44.225.67.172) with Microsoft SMTP Server id
 15.0.1365.1; Thu, 13 Sep 2018 10:42:32 +0200
Received: from unknown (HELO CD1-4DDAG02-P01.cdmail.common.airbusds.corp)
 ([10.67.164.142])
 by esa2i.demail.de.airbusds.corp with ESMTP; 13 Sep 2018 10:42:32 +0200
Received: from CD1-4DDAG02-P01.cdmail.common.airbusds.corp (10.67.164.142) by
 CD1-4DDAG02-P01.cdmail.common.airbusds.corp (10.67.164.142) with
 Microsoft
 SMTP Server (TLS) id 15.0.1365.1; Thu, 13 Sep 2018 10:42:32 +0200
Received: from CD1-4DDAG02-P01.cdmail.common.airbusds.corp ([10.67.164.142])
 by CD1-4DDAG02-P01.cdmail.common.airbusds.corp ([10.67.164.142]) with mapi id
 15.00.1365.000; Thu, 13 Sep 2018 10:42:32 +0200
From: "Benninghofen, Benjamin Dr." <benjamin.benninghofen@HIDDEN>
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Subject: Xemacs 23 times as fast as GNU Emacs
Thread-Topic: Xemacs 23 times as fast as GNU Emacs
Thread-Index: AdRLPalnSe9KPpEWS6qma41+du5D7Q==
Date: Thu, 13 Sep 2018 08:42:32 +0000
Message-ID: <08c31622831a463da10ca3750f3d54fa@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-ms-exchange-transport-fromentityheader: Hosted
Content-Type: multipart/mixed;
 boundary="_004_08c31622831a463da10ca3750f3d54faCD14DDAG02P01cdmailcomm_"
MIME-Version: 1.0
X-GM-Security: forwarded
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 13 Sep 2018 11:13:41 -0400
Cc: Kevin Layer <layer@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.1 (-----)

--_004_08c31622831a463da10ca3750f3d54faCD14DDAG02P01cdmailcomm_
Content-Type: multipart/alternative;
	boundary="_000_08c31622831a463da10ca3750f3d54faCD14DDAG02P01cdmailcomm_"

--_000_08c31622831a463da10ca3750f3d54faCD14DDAG02P01cdmailcomm_
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable



The versions of Xemacs and GNU Emacs are those that come with RHEL 7.5.

The attachment contains 2 files:

demo.el   : to be evaluated in Emacs Lisp
prog.sh  :  to be placed in the home directory

Furthermore a large text file "input.txt"  is needed in the home directory.=
 The file should have 1000000 lines, each line longer than 80 characters. T=
he file is not included in the attachment because this would be too big.


The file I used was created with the following ANSI-COMMON-LISP function:

(defun print-nums (&key (first 1) (last 1000000))
  (check-type first fixnum)
  (check-type last fixnum)
  (loop for k of-type fixnum from first to last do (format t "~%~B ^3 =3D ~=
B" k (expt k 3)))
  t)

Alternatively the "input.txt" file can be created as follows:

#! /bin/bash
  last=3D1000000
  function base2 {
      echo "obase=3D2;$1" | bc
  }
  for k in $(seq 1 $last); do
      x=3D$(( k * k * k ))
      echo $(base2 $k) '^3 =3D' $(base2 $x)
  done

generate the input like this:

  $ ./gen.sh > input.txt



The benchmark is executed by
(M-x) demo

At the end the time is printed and I received the following results:

Xemacs    : 51 seconds
GNU Emacs : 1205 seconds

So the Xemacs is more than 23 times as fast as the GNU Emacs.

---
Benjamin Benninghofen


The information in this e-mail is confidential. The contents may not be dis=
closed or used by anyone other than the addressee. Access to this e-mail by=
 anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and=
 delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of=
 this e-mail as it has been sent over public networks. If you have any conc=
erns over the content of this message or its Accuracy or Integrity, please =
contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus =
scanning software but you should take whatever measures you deem to be appr=
opriate to ensure that this message and any attachments are virus free.

--_000_08c31622831a463da10ca3750f3d54faCD14DDAG02P01cdmailcomm_
Content-Type: text/html; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii">
<meta name=3D"Generator" content=3D"Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left:=
 #800000 2px solid; } --></style>
</head>
<body>
<font face=3D"Calibri" size=3D"2"><span style=3D"font-size:11pt;">
<div> </div>
<div>&nbsp;</div>
<div>The versions of Xemacs and GNU Emacs are those that come with RHEL 7.5=
.</div>
<div>&nbsp;</div>
<div>The attachment contains 2 files:</div>
<div>&nbsp;</div>
<div>demo.el&nbsp;&nbsp; : to be evaluated in Emacs Lisp</div>
<div>prog.sh&nbsp; :&nbsp; to be placed in the home directory</div>
<div>&nbsp;</div>
<div>Furthermore a large text file &quot;input.txt&quot;&nbsp; is needed in=
 the home directory. The file should have 1000000 lines, each line longer t=
han 80 characters. The file is not included in the attachment because this =
would be too big.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>The file I used was created with the following ANSI-COMMON-LISP functi=
on:</div>
<div>&nbsp;</div>
<div>(defun print-nums (&amp;key (first 1) (last 1000000))</div>
<div>&nbsp; (check-type first fixnum)</div>
<div>&nbsp; (check-type last fixnum)</div>
<div>&nbsp; (loop for k of-type fixnum from first to last do (format t &quo=
t;~%~B ^3 =3D ~B&quot; k (expt k 3)))</div>
<div>&nbsp; t)</div>
<div>&nbsp;</div>
<div>Alternatively the &quot;input.txt&quot; file can be created as follows=
:</div>
<div>&nbsp;</div>
<div>#! /bin/bash</div>
<div>&nbsp; last=3D1000000</div>
<div>&nbsp; function base2 {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;obase=3D2;$1&quot; | bc</div>
<div>&nbsp; }</div>
<div>&nbsp; for k in $(seq 1 $last); do</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x=3D$(( k * k * k ))</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo $(base2 $k) '^3 =3D' $(base2 $x)</=
div>
<div>&nbsp; done</div>
<div>&nbsp;</div>
<div>generate the input like this:</div>
<div>&nbsp;</div>
<div>&nbsp; $ ./gen.sh &gt; input.txt</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>The benchmark is executed by </div>
<div>(M-x) demo</div>
<div>&nbsp;</div>
<div>At the end the time is printed and I received the following results:</=
div>
<div>&nbsp;</div>
<div>Xemacs&nbsp;&nbsp;&nbsp; : 51 seconds</div>
<div>GNU Emacs : 1205 seconds</div>
<div>&nbsp;</div>
<div>So the Xemacs is more than 23 times as fast as the GNU Emacs.</div>
<div>&nbsp;</div>
<div>---</div>
<div>Benjamin Benninghofen</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</span></font>
<font style=3D"font-size: 9px;">The information in this e-mail is confident=
ial. The contents may not be disclosed or used by anyone other than the add=
ressee. Access to this e-mail by anyone else is unauthorised.<br>If you are=
 not the intended recipient, please notify Airbus immediately and delete th=
is e-mail.<br>Airbus cannot accept any responsibility for the accuracy or c=
ompleteness of this e-mail as it has been sent over public networks. If you=
 have any concerns over the content of this message or its Accuracy or Inte=
grity, please contact Airbus immediately.<br>All outgoing e-mails from Airb=
us are checked using regularly updated virus scanning software but you shou=
ld take whatever measures you deem to be appropriate to ensure that this me=
ssage and any attachments are virus free.</font></body>
</html>

--_000_08c31622831a463da10ca3750f3d54faCD14DDAG02P01cdmailcomm_--

--_004_08c31622831a463da10ca3750f3d54faCD14DDAG02P01cdmailcomm_
Content-Type: text/plain;
	name="A_POLICY_VIOLATED_FILE_WAS_DETECTED_AND_REMOVED.TXT"
Content-Description: A_POLICY_VIOLATED_FILE_WAS_DETECTED_AND_REMOVED.TXT
Content-Disposition: attachment;
	filename="A_POLICY_VIOLATED_FILE_WAS_DETECTED_AND_REMOVED.TXT"; size=189;
	creation-date="Thu, 13 Sep 2018 08:27:00 GMT";
	modification-date="Thu, 13 Sep 2018 08:18:47 GMT"
Content-Transfer-Encoding: base64

77u/U2Nhbk1haWwgZGV0ZWN0ZWQgYW5kIHJlbW92ZWQgYSBmaWxlIG5hbWVkICJmaWxlczIudGd6
IiB0aGF0IHZpb2xhdGVkIGF0dGFjaG1lbnQgYmxvY2tpbmcgcG9saWN5IGZyb20gdGhlIG9yaWdp
bmFsIG1haWwgZW50aXR5LiBZb3UgY2FuIHNhZmVseSBzYXZlIG9yIGRlbGV0ZSB0aGlzIHJlcGxh
Y2VtZW50IGF0dGFjaG1lbnQu

--_004_08c31622831a463da10ca3750f3d54faCD14DDAG02P01cdmailcomm_--





Acknowledgement sent to "Benninghofen, Benjamin Dr." <benjamin.benninghofen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#32728; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 13 Sep 2018 15:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.