From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D99EC4332F for ; Thu, 2 Nov 2023 15:05:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 0313B43442; Thu, 2 Nov 2023 15:05:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 0313B43442 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xzCLuUsHX-Em; Thu, 2 Nov 2023 15:05:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 8F43E434A2; Thu, 2 Nov 2023 15:05:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 8F43E434A2 Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 250EF1BF3BB for ; Thu, 2 Nov 2023 15:05:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id EB7B28126C for ; Thu, 2 Nov 2023 15:05:15 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org EB7B28126C X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9pYsQjWjJP0V for ; Thu, 2 Nov 2023 15:05:11 +0000 (UTC) Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.122]) by smtp1.osuosl.org (Postfix) with ESMTP id C99B98123F for ; Thu, 2 Nov 2023 15:05:11 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org C99B98123F Received: by busybox.osuosl.org (Postfix, from userid 81) id A443486298; Thu, 2 Nov 2023 15:05:11 +0000 (UTC) From: bugzilla@busybox.net To: buildroot@uclibc.org Date: Thu, 02 Nov 2023 15:05:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: buildroot X-Bugzilla-Component: Other X-Bugzilla-Version: 2021.11.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fabien.nogue@etictelecom.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P5 X-Bugzilla-Assigned-To: unassigned@buildroot.uclibc.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.busybox.net/ Auto-Submitted: auto-generated MIME-Version: 1.0 Subject: [Buildroot] [Bug 15832] Low performance with python3 compare to python2 on the same platform X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" https://bugs.busybox.net/show_bug.cgi?id=15832 --- Comment #2 from fabien.nogue@etictelecom.com --- (In reply to Vincent Fazio from comment #1) Thank you for your reply. Here are the outputs of our test with the `cProfile` module: ``` # python2 -m cProfile test_python.py 10000000 2 function calls in 18.871 seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 1 18.871 18.871 18.871 18.871 test_python.py:3() 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects} # python3 -m cProfile test_python.py 10000000 3 function calls in 53.225 seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 1 53.224 53.224 53.224 53.224 test_python.py:3() 1 0.000 0.000 53.225 53.225 {built-in method builtins.exec} 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects} ``` Is the line `built-in method builtins.exec` relevant? On the other hand, I am attempting to profile the `cpython` interpreter. I recompiled `python3` with options `--enable-optimizations` and `--enable-profiling`, run my test and got the `gmon.out`. I have `no time accumulated` when I run `gprof` on the output. So far I have no idea why the profiling output has no result. I need to investigate further. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot