From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: profiling emacs-23.1 vs emacs-22.3 Date: Wed, 5 Aug 2009 00:47:34 -0700 (PDT) Message-ID: <200908050747.n757lYkr008988@godzilla.ics.uci.edu> References: <200908032029.n73KTi9h017528@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249458642 4288 80.91.229.12 (5 Aug 2009 07:50:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Aug 2009 07:50:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 05 09:50:35 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MYbGc-0007ue-L7 for ged-emacs-devel@m.gmane.org; Wed, 05 Aug 2009 09:50:34 +0200 Original-Received: from localhost ([127.0.0.1]:40917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYbGb-0003zW-OD for ged-emacs-devel@m.gmane.org; Wed, 05 Aug 2009 03:50:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYbGW-0003zH-Sd for emacs-devel@gnu.org; Wed, 05 Aug 2009 03:50:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYbGS-0003v6-3Z for emacs-devel@gnu.org; Wed, 05 Aug 2009 03:50:28 -0400 Original-Received: from [199.232.76.173] (port=55107 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYbGR-0003v1-V1 for emacs-devel@gnu.org; Wed, 05 Aug 2009 03:50:23 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:42666) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MYbGR-0004Zv-CC for emacs-devel@gnu.org; Wed, 05 Aug 2009 03:50:23 -0400 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYbEy-0001mt-DA for emacs-devel@gnu.org; Wed, 05 Aug 2009 03:48:52 -0400 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n757lZdU013921 for ; Wed, 5 Aug 2009 00:47:35 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n757lYkr008988; Wed, 5 Aug 2009 00:47:34 -0700 (PDT) Original-Lines: 62 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n757lZdU013921 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-Detected-Operating-System: by mx20.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113711 Archived-At: Here's another data point. This time from running a process (a recursive grep for setq in the lisp subdirectory): emacs --batch --eval '(progn (call-process "grep" nil (get-buffer-create "tmp") t "--color=never" "-r" "setq" "/tmp/Emacs-CVS/emacs/lisp/") (set-buffer "tmp") (write-file "/tmp/23"))' emacs-22.3: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls ms/call ms/call name 20.59 0.07 0.07 111 0.63 0.63 decode_eol 14.71 0.12 0.05 5018 0.01 0.01 re_search_2 14.71 0.17 0.05 138 0.36 1.12 decode_coding 11.76 0.21 0.04 1 40.00 40.00 find_safe_codings 8.82 0.24 0.03 224 0.13 0.13 detect_coding_mask 5.88 0.26 0.02 1 20.00 20.00 unencodable_char_position 2.94 0.27 0.01 1401155 0.00 0.00 Faref 2.94 0.28 0.01 1396772 0.00 0.00 translate_char 2.94 0.29 0.01 6955 0.00 0.00 Fstring_equal 2.94 0.30 0.01 3180 0.00 0.00 allocate_vector 2.94 0.31 0.01 2062 0.00 0.00 mark_object 2.94 0.32 0.01 509 0.02 0.02 analyze_first 2.94 0.33 0.01 392 0.03 0.03 buf_charpos_to_bytepos 2.94 0.34 0.01 5 2.00 2.51 Faccessible_keymaps 0.00 0.34 0.00 84102 0.00 0.00 readchar 0.00 0.34 0.00 22523 0.00 0.00 re_match_2_internal [snip] CVS HEAD: Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls ms/call ms/call name 18.18 0.06 0.06 2097964 0.00 0.00 mark_object 15.15 0.11 0.05 966 0.05 0.05 consume_chars 9.09 0.14 0.03 388 0.08 0.08 encode_coding_raw_text 9.09 0.17 0.03 219 0.14 0.15 produce_chars 6.06 0.19 0.02 140 0.14 0.21 detect_coding 6.06 0.21 0.02 98 0.20 0.20 decode_coding_iso_2022 6.06 0.23 0.02 1 20.00 20.00 Funencodable_char_position 3.03 0.24 0.01 377383 0.00 0.00 read_hex 3.03 0.25 0.01 219810 0.00 0.00 char_table_ref 3.03 0.26 0.01 8391 0.00 0.00 mem_insert 3.03 0.27 0.01 7036 0.00 0.00 Fcar 3.03 0.28 0.01 1472 0.01 0.01 emacs_read 3.03 0.29 0.01 467 0.02 0.02 Ftext_properties_at 3.03 0.30 0.01 201 0.05 0.05 gap_left 3.03 0.31 0.01 64 0.16 0.43 load_charset_map 3.03 0.32 0.01 4 2.50 2.50 Fkill_buffer 3.03 0.33 0.01 4 2.50 2.50 detect_coding_iso_2022 0.00 0.33 0.00 221420 0.00 0.00 char_table_set 0.00 0.33 0.00 106914 0.00 0.00 readchar 0.00 0.33 0.00 82427 0.00 0.00 Faref [snip] so we have a lot more calls to mark_object. They do not matter much from the performance point of view in this particular case, but it should be interesting to find out why we get them now.