Giter VIP home page Giter VIP logo

Comments (16)

harrycheung avatar harrycheung commented on June 26, 2024

Of course. I downloaded it today, and took a stab at it, and I'm already running into something. Would you mind taking a look? It's under the Titanium directory.

from mobile-app-performance.

FokkeZB avatar FokkeZB commented on June 26, 2024

I've done some fixes to make the app work, but I don't know how exactly your test itself is supposed to work. Please give it a try now and let me know if I can help.

from mobile-app-performance.

harrycheung avatar harrycheung commented on June 26, 2024

Perfect. Thanks for the patch. I just needed to understand how code was imported. I'll finish the port and get the results up.

from mobile-app-performance.

harrycheung avatar harrycheung commented on June 26, 2024

@FokkeZB I decided to structure my js a little differently, but I'm worried there's a performance impact. I ported my all of my logic to JS and set it up so I can run in a browser. As a result, I didn't use the CommonJS module structure. I then put the JS logic in the assets folder, and used Ti.include to bring it into the Titanium app. Is this ok or am I going to experience a performance impact vs using require?

from mobile-app-performance.

harrycheung avatar harrycheung commented on June 26, 2024

Btw, it's checked in right now if you want to take a look.

from mobile-app-performance.

FokkeZB avatar FokkeZB commented on June 26, 2024

I've made all JS libs CommonJS compatible so they can be used in both the JS test and the Titanium test. I also took running the actual test and reading the multi data out of run.js so this file can be shared as well. See #3

from mobile-app-performance.

harrycheung avatar harrycheung commented on June 26, 2024

Thanks for the patch. However, I'm still seeing the same performance as before. It's taking about 5.5 seconds to run the 1000 iteration loop (all the other apps do it at around 1 second). I'm seeing if there's an optimization flag I need to set in Titanium to speed things up, but I'm not being successful.

from mobile-app-performance.

FokkeZB avatar FokkeZB commented on June 26, 2024

What are you running it on? I get that 1s.

from mobile-app-performance.

harrycheung avatar harrycheung commented on June 26, 2024

iPhone 6/8.1.2

On Fri, Feb 20, 2015 at 7:39 AM, Fokke Zandbergen [email protected]
wrote:

What are you running it on? I get that 1s.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from mobile-app-performance.

FokkeZB avatar FokkeZB commented on June 26, 2024

Mmm, wait... was running in iOS Simulator.

Getting 5.3s on an iPhone 6 as well.

But then, running the JS version on http://dev.fokkezb.nl/benchmark in Safari on the same phone also gets me no lower then 2.8s.

The difference between Titanium and the others are that Titanium runs the JS as is, while the other compile to the native language or even bytecode.

So I guess it's comparing apples and pears ;)

from mobile-app-performance.

harrycheung avatar harrycheung commented on June 26, 2024

Yeah, the code isn't that complicated, and I verified it with unit tests in
JavaScript/test.html. Btw, I get the same 3s in Safari.

On Fri, Feb 20, 2015 at 7:45 AM, Fokke Zandbergen [email protected]
wrote:

Mmm, wait... was running in iOS Simulator.

Getting 5.3s on an iPhone 6 as well.

But then, running the JS version on http://dev.fokkezb.nl/benchmark in
Safari on the same phone also gets me no lower then 3s.

Are you sure the tests on the others are identical?


Reply to this email directly or view it on GitHub
#1 (comment)
.

from mobile-app-performance.

FokkeZB avatar FokkeZB commented on June 26, 2024

So what your benchmarks really are comparing is the efficiency of different languages, including different bytecode compilations.

from mobile-app-performance.

harrycheung avatar harrycheung commented on June 26, 2024

Yup. Out of curiosity, what did you think I was measuring?
On Fri, Feb 20, 2015 at 1:30 PM Fokke Zandbergen [email protected]
wrote:

So what your benchmarks really are comparing is the efficiency of
different languages, including different bytecode compilations.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from mobile-app-performance.

FokkeZB avatar FokkeZB commented on June 26, 2024

Good one.. I guess I was mislead by the "Mobile App Performance" title ;)

What would be more interesting then is to test Appcelerator's new Hyperloop Abstraction Layer. This new JS2Native compiler will replace the current interpreter.

Hyperloop is currently only available through the Windows Phone SDK developer preview:
http://www.tidev.io/2015/01/12/how-to-try-the-titanium-windows-platform-preview-for-free/

I will try to port the test to it.

from mobile-app-performance.

harrycheung avatar harrycheung commented on June 26, 2024

Ah, yeah. Sorry for the misunderstanding. It was a trade off of the short
title vs writing a super long descriptive one. Have an idea when the
JS2Native compiler will be available for iOS or Android? Hard for me to
compare results otherwise.

On Sat, Feb 21, 2015 at 10:39 AM, Fokke Zandbergen <[email protected]

wrote:

Good one.. I guess I was mislead by the "Mobile App Performance" title
;)

What would be more interesting then is to test Appcelerator's new
Hyperloop Abstraction Layer. This new JS2Native compiler will replace the
current interpreter.

Hyperloop is currently only available through the Windows Phone SDK
developer preview:

http://www.tidev.io/2015/01/12/how-to-try-the-titanium-windows-platform-preview-for-free/

I will try to port the test to it.


Reply to this email directly or view it on GitHub
#1 (comment)
.

from mobile-app-performance.

FokkeZB avatar FokkeZB commented on June 26, 2024

The Windows Phone SDK based on Hyperloop is not feature complete yet and the tests fail to work.

The iOS/Android version is only available in previous iteration of hyperloop:

We'll have to wait for Windows to be stable and/or iOS/Android to be finished later this year.

from mobile-app-performance.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.