harrycheung / mobile-app-performance Goto Github PK
View Code? Open in Web Editor NEWSource for this
Home Page: https://medium.com/@harrycheung/cross-platform-mobile-performance-testing-d0454f5cd4e9
License: GNU General Public License v3.0
Source for this
Home Page: https://medium.com/@harrycheung/cross-platform-mobile-performance-testing-d0454f5cd4e9
License: GNU General Public License v3.0
I noticed that Point.swift used struct
instead of class
, while Point.cs uses class
when it can use struct
. It appears that when applying that optimization to Swift, the same optimization was missed for the C# version. I think that if Swift is able to gain the performance benefits that come from using value types, then C#/Xamarin should as well.
The change should be fairly simple, probably just changing the type declaration to use struct
instead of class
:
public struct Point
{
....
}
Double values should be parsed using double.Parse(value, CultureInfo.InvariantCulture)
instead. Otherwise it can fail on cultures with different decimal separator. It should speed up the code a bit as well.
I'm actually just interested in your helper method. In your article you said that UTC now is very expensive / slow. what makes your helper method faster? I'm intrigued.
Should this break be removed?
https://github.com/harrycheung/Mobile-App-Performance/blob/master/JavaScript/session_manager.js#L73
It would be great if you clarify if the beautiful graphs here:
https://medium.com/@harrycheung/mobile-app-performance-redux-e512be94f976#.1v6ezq7su
are based on 1,000 or 10,000 iterations runs. Maybe I missed it somewhere, but it's not 100% obvious to me since the source code for the different implementations support both variants.
Hi! I noticed your note about adding support for React Native when it's released. I wonder if you'd be interested in including NativeScript the up and coming (and stable) JS runtime for iOS and android. It is supposed to be pretty performant and anecdotally it feels hugely better than Cordova and a bit better than Xamarin, but I'd love to see this numerically.
If it's of interest, I'd be happy to prepare a PR, if you can give me some guidance on what the app must do and how the tests are executed?
Can I help you to add Appcelerator Titanium?
I've tested your Swift version on iPhone6 (and iPhone 4s), but get different results than you. My result on
iPhone 6 on 8.3 was 1.571 sec. When running on the IOS Simulator I get similar results: .201 sec.
Any idea why there is such a big difference?
Hi nice metrics, though it would be useful if Xamarin Classic and Forms could both be seen side by side?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.