omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Benchmarks: What new things does iOS 9 enable in Pythonista?

    Pythonista
    ios9
    10
    26
    22420
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dgelessus
      dgelessus last edited by

      @Phuket2 The Pythonista benchmark goes like this:

      import sympy
      

      ;)

      Phuket2 1 Reply Last reply Reply Quote 0
      • Phuket2
        Phuket2 @dgelessus last edited by

        @dgelessus , lol. 6.8 secs on my iPad Air 2 , on first run ;)

        1 Reply Last reply Reply Quote 0
        • blmacbeth
          blmacbeth last edited by

          @Phuket2 iPad 3 with iOS 9

          >>> import timeit
          >>> timeit.timeit('import sympy')
          30.62135100364685
          

          Not bad for an almost 4 year-old device.

          Phuket2 1 Reply Last reply Reply Quote 0
          • ccc
            ccc last edited by ccc

            >>> import platform, timeit
            >>> platform.platform()
            'Darwin-15.0.0-iPad3,4-32bit'
            >>> timeit.timeit('import sympy')
            19.643120050430298
            

            Darwin 15.0.0 is iOS9.

            1 Reply Last reply Reply Quote 0
            • Phuket2
              Phuket2 last edited by Phuket2

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • Phuket2
                Phuket2 last edited by Phuket2

                This is what I get

                import platform,timeit
                platform.platform()
                'Darwin-15.0.0-iPad5,4-64bit'
                timeit.timeit('import sympy')
                8.560050964355469

                1 Reply Last reply Reply Quote 0
                • Phuket2
                  Phuket2 @blmacbeth last edited by

                  @blmacbeth , agreed. Still ok, but I would say the increase in speed also worth the upgrade. I know, this is only one thing. Not sure how these Numbers translate generally. That's why I mentioned about a benchmark test for Pythonista specifically

                  1 Reply Last reply Reply Quote 0
                  • smath
                    smath last edited by

                    For reference against the other iPad 3s, here's one that's still on ios 8.3.

                    import platform
                    >>> platform.platform()
                    'Darwin-14.0.0-iPad3,1-32bit'
                    >>> import timeit
                    >>> timeit.timeit('import sympy')
                    >>> 
                    21.3953218460083
                    Phuket2 1 Reply Last reply Reply Quote 0
                    • JonB
                      JonB last edited by JonB

                      I suspect this has an awful lot to do with what other apps are open, whether or not you have internet turned on and thus whether background processes are going on, etc.

                      Phuket2 1 Reply Last reply Reply Quote 0
                      • Phuket2
                        Phuket2 @JonB last edited by

                        @JonB , true. I normally have a lot of apps running in the background. I closed them all down. I didn't restart the iPad though. Then with timeit i was getting consistent 6.33xxx. Also turned off mobile data and wifi. That made no difference still around 6.3xxx. Each time I shut down Pythonista before running timeit.

                        1 Reply Last reply Reply Quote 0
                        • Phuket2
                          Phuket2 @smath last edited by Phuket2

                          @smath , with the exact same code as yours on iPhone 6s, I get the following
                          Darwin-15.0.0-iPhone8,1-32bit
                          4.09668588638
                          Darwin-15.0.0-iPhone8,1-32bit
                          1.13581109047
                          Darwin-15.0.0-iPhone8,1-32bit
                          1.13619184494

                          First timing is with pythonista unloaded. Then subsequent timings just running after loaded

                          iOS 9.0.2

                          1 Reply Last reply Reply Quote 1
                          • omz
                            omz last edited by omz

                            Pystone might also be interesting for benchmarking. It's included in the beta, so you can simply run

                            from test import pystone
                            pystone.main()
                            

                            (if you're not in the beta, you can simply copy/paste the pystone module I linked above, it's a single file.)

                            I recently got my new iPhone 6s, and the performance improvements are quite remarkable. I now get pretty much exactly the same result as on my (2012) MacBook Pro, i.e. around 115,000 pystones/second. On the iPad Air 2, it's around 60,000.

                            komanguy 1 Reply Last reply Reply Quote 0
                            • Phuket2
                              Phuket2 last edited by

                              With pystone same as @omz
                              iPad Air 2, 128gb, iOS 9.02 (62,000)
                              IPhone 6s 128gb, iOS 9.02 115,00

                              I will be interested to try in on my Mac Pro

                              Old screenshot, the OS has been updated of course

                              1 Reply Last reply Reply Quote 0
                              • Phuket2
                                Phuket2 last edited by

                                Wow, only got this on my MacPro.

                                /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/ianjoicey/PycharmProjects/untitled1/main.py
                                Pystone(1.1) time for 50000 passes = 0.525893
                                This machine benchmarks at 95076.4 pystones/second

                                Process finished with exit code 0

                                I am pretty sure it was run without debugging. Seems very slow compared to the other numbers.

                                1 Reply Last reply Reply Quote 0
                                • MartinPacker
                                  MartinPacker last edited by

                                  Well I'm using Pythonista on my iPad running an HTTP Server script to serve HTML (also edited in Pythonista) as (localhost) to Safari running in iOS 9 Slide Over mode.

                                  This is functioning as (a basic but) nice sidebar for augmenting text. For example wrapping text in quotes, composing Markdown links from text+URL.

                                  It's basic now; It might not be so basic later on.

                                  Not sure if this counts as the 1 iOS 9 element is I'm targeting Slide Over (which IS new in 9). And I'm doing it from Pythonista.

                                  1 Reply Last reply Reply Quote 1
                                  • Phuket2
                                    Phuket2 last edited by

                                    Pystone for iPad Pro, 128gb , wifi/cell iOS 9.1

                                    Pystone(1.1) time for 50000 passes = 0.35624
                                    This machine benchmarks at 140355 pystones/second

                                    thats a nice increase

                                    platform.platform()
                                    'Darwin-15.0.0-iPad6,8-64bit'
                                    import timeit
                                    timeit.timeit('import sympy')
                                    2.832141160964966

                                    1 Reply Last reply Reply Quote 0
                                    • Phuket2
                                      Phuket2 last edited by

                                      New iPad Pro 12.5' , time for new benchmark :) I had to run with 2.7, the map object in Pystone apparently does support subscripts in 3.x something. I didn't know how to fix, so I just ran with python 2.7

                                      It seems like @omz had a test built in before, but that looks like it's gone.

                                      My test below is a single run with Pythonista started fresh

                                      Pystone(1.1) time for 50000 passes = 0.246699
                                      This machine benchmarks at 202676 pystones/second
                                      Platform Darwin-16.7.0-iPad7,2-64bit
                                      timeit.timeit('import sympy')
                                      1.65520620346

                                      1 Reply Last reply Reply Quote 0
                                      • komanguy
                                        komanguy last edited by

                                        Ipad 12.5! Never heard about it.

                                        cvp 1 Reply Last reply Reply Quote 0
                                        • komanguy
                                          komanguy @omz last edited by

                                          @omz

                                          iPhone 7 Plus - iOS 10.3.2
                                          Pythonista 3

                                          146063 pystones/second

                                          1 Reply Last reply Reply Quote 0
                                          • cvp
                                            cvp @komanguy last edited by

                                            @komanguy Promo on 12,9" 😇

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums | Contributors