Announcement

Collapse
No announcement yet.

Pyston 2.1 Is Blowing Past Python 3.8/3.9 Performance

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    50% is impressive, but not good enough for production.
    Like what Dropbox has done, replacing performance critical part with compiled language (C/C++/Go/Rust) is more practical and efficient.
    Originally posted by Setif View Post

    I think for the most ML programs, python is just an interface while the core is written in C/C++.
    It's not only ML. This is the standard practice for any performance-demanding python package. (numpy, scipy, etc)

    Comment


    • #12
      Originally posted by Anarchy View Post

      because a lot of python extensions don't work with pypy. it would break a lot of code.
      I didn’t say it could replace it tomorrow, i said they should starts preparing a cpython replacement with pypy (and complete it with what’s needed for this).

      Comment


      • #13
        Originally posted by lyamc View Post
        I wonder how tcc as a JIT compiler would perform vs python, ruby, javascript, etc.
        The code that tcc produces is not very optimised, that is why the compile time is so fast.

        Comment


        • #14
          Originally posted by Raka555 View Post

          The code that tcc produces is not very optimised, that is why the compile time is so fast.
          Yeah, I know. I want to know how does it compare to python in execution time if it were used as a JIT compiler.

          Comment


          • #15
            Originally posted by lyamc View Post
            I wonder how [URL="https://github.com/run4flat/C-TinyCompiler"]tcc as a JIT[URL]
            Dang it, I am waiting until the day Python gets a JIT... just like most Java VMs...

            Comment


            • #16
              Originally posted by tildearrow View Post
              Dang it, I am waiting until the day Python gets a JIT... just like most Java VMs...
              That's what PyPy is. Improvements to it have levelled off around 4.25x CPython speed because Python, as a language, has a level of dynamism to it that's inherently difficult to optimize.

              (And because some of the benchmarks that get geometric-averaged together really don't make up the difference after taking the hit from the overhead of the runtime figuring out what to JIT. For example, sphinx and sympy_integrate slam into the "150% of CPython runtime" mark at the top of the graph.)
              Last edited by ssokolow; 24 January 2021, 09:13 PM.

              Comment


              • #17
                Originally posted by zxy_thf View Post
                50% is impressive, but not good enough for production.
                Like what Dropbox has done, replacing performance critical part with compiled language (C/C++/Go/Rust) is more practical and efficient.
                What Dropbox is doing isn't that impressive. At least the Linux client is huge. It's almost as large as the whole Nextcloud suite (server side), which contains tons of functionality.

                Comment


                • #18
                  Originally posted by Viki Ai View Post
                  No source, no interest.

                  Life is too short to be bogged down by code you can't fix yourself.
                  While I agree that I wouldn't use a closed-source solution, I still appreciate having benchmarks against it.

                  Comment


                  • #19
                    Originally posted by ssokolow View Post
                    That's what PyPy is. Improvements to it have levelled off around 4.25x CPython speed because Python, as a language, has a level of dynamism to it that's inherently difficult to optimize.
                    Excuse my ignorance, but does it perform any form of profile-driven optimization? Wikipedia mentions that it uses a "tracing JIT", which seems to imply some level of feedback.

                    Comment


                    • #20
                      Nice to see some benchmarks. It's a fairly impressive jump. I would be happier when they release the source code, though.

                      Comment

                      Working...
                      X