From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: On elisp running native Date: Tue, 25 Feb 2020 12:59:56 +0000 Message-ID: References: <838smzq9iz.fsf@gnu.org> <8336d6rfgy.fsf@gnu.org> <83woagonl9.fsf@gnu.org> <83sgl4ojci.fsf@gnu.org> <83sgizgm56.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="29690"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: emacs-devel@gnu.org, yyoncho , monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 25 14:01:43 2020 Return-path: Envelope-to: ged-emacs-devel@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 1j6ZqI-0007Vl-W7 for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Feb 2020 14:01:42 +0100 Original-Received: from localhost ([::1]:55116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6ZqH-00040p-VR for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Feb 2020 08:01:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35006) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6Zon-0002Af-SD for emacs-devel@gnu.org; Tue, 25 Feb 2020 08:00:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6Zoj-0002lU-Ub for emacs-devel@gnu.org; Tue, 25 Feb 2020 08:00:09 -0500 Original-Received: from mx.sdf.org ([205.166.94.20]:56027) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j6Zod-0002Ry-8j; Tue, 25 Feb 2020 07:59:59 -0500 Original-Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 01PCxvMs019240 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 25 Feb 2020 12:59:57 GMT Original-Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 01PCxu5q032074; Tue, 25 Feb 2020 12:59:56 GMT In-Reply-To: <83sgizgm56.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 25 Feb 2020 09:29:41 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 205.166.94.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245064 Archived-At: Eli Zaretskii writes: >> From: yyoncho >> Date: Tue, 25 Feb 2020 08:14:02 +0200 >> Cc: Eli Zaretskii , Stefan Monnier , >> emacs-devel >> >> I did benchmarks of json parsing here it is what I get: >> >> | test | non-gc avg (s) | gc avg (s) | gcs avg | tot avg (s) | tot avg err (s) | >> |--------------+----------------+------------+---------+-------------+-----------------| >> | json-parsing | 2.57 | 3.32 | 318 | 5.89 | 0.10 | >> |--------------+----------------+------------+---------+-------------+-----------------| >> | total | 2.57 | 3.32 | 318 | 5.89 | 0.10 | >> >> Native: >> >> | test | non-gc avg (s) | gc avg (s) | gcs avg | tot avg (s) | tot avg err (s) | >> |--------------+----------------+------------+---------+-------------+-----------------| >> | json-parsing | 1.71 | 4.31 | 343 | 6.02 | 0.01 | >> |--------------+----------------+------------+---------+-------------+-----------------| >> | total | 1.71 | 4.31 | 343 | 6.02 | 0.01 | >> >> It looks like this is bellow the average speedup you might wanna take a look: > > I think this might be expected, since most of the heavy processing in > this benchmark is in C, and thus not affected by the compiling Lisp > into native machine code. Yeah, the interesting part would be the GC one. I'm wondering if that's just a noise artifact or not. Andrea -- akrl@sdf.org