Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 15832] Low performance with python3 compare to python2 on the same platform
       [not found] <bug-15832-163@https.bugs.busybox.net/>
@ 2023-10-27 17:27 ` bugzilla
  2023-11-02 15:05 ` bugzilla
  2024-06-15 15:13 ` bugzilla
  2 siblings, 0 replies; 3+ messages in thread
From: bugzilla @ 2023-10-27 17:27 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=15832

--- Comment #1 from Vincent Fazio <vfazio@xes-inc.com> ---
What's the output of `python -m cProfile test_python.py 10000000` on each?

I do see some variances even in Docker containers but not to that degree. On an
rpi CM3 it doesn't take anywhere near the numbers you're posting below (only
8s).

One option would be to profile the python interpreter itself. 3.12 has hooks
for `perf` but they may not be representative of the situation you're seeing as
recent interpreters try to perform opcode specialization. Otherwise you may
have to build the interpreter with profiling enabled and use another external
tool to collect that data.

-- 
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [Bug 15832] Low performance with python3 compare to python2 on the same platform
       [not found] <bug-15832-163@https.bugs.busybox.net/>
  2023-10-27 17:27 ` [Buildroot] [Bug 15832] Low performance with python3 compare to python2 on the same platform bugzilla
@ 2023-11-02 15:05 ` bugzilla
  2024-06-15 15:13 ` bugzilla
  2 siblings, 0 replies; 3+ messages in thread
From: bugzilla @ 2023-11-02 15:05 UTC (permalink / raw)
  To: 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(<module>)
        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(<module>)
        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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [Bug 15832] Low performance with python3 compare to python2 on the same platform
       [not found] <bug-15832-163@https.bugs.busybox.net/>
  2023-10-27 17:27 ` [Buildroot] [Bug 15832] Low performance with python3 compare to python2 on the same platform bugzilla
  2023-11-02 15:05 ` bugzilla
@ 2024-06-15 15:13 ` bugzilla
  2 siblings, 0 replies; 3+ messages in thread
From: bugzilla @ 2024-06-15 15:13 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=15832

Yann E. MORIN <yann.morin.1998@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yann.morin.1998@free.fr
         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #3 from Yann E. MORIN <yann.morin.1998@free.fr> ---
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!

-- 
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-15 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <bug-15832-163@https.bugs.busybox.net/>
2023-10-27 17:27 ` [Buildroot] [Bug 15832] Low performance with python3 compare to python2 on the same platform bugzilla
2023-11-02 15:05 ` bugzilla
2024-06-15 15:13 ` bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox