incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kurka (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1478) FileReader vs XHR bench
Date Thu, 20 Sep 2012 23:40:08 GMT

    [ https://issues.apache.org/jira/browse/CB-1478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460056#comment-13460056
] 

Daniel Kurka commented on CB-1478:
----------------------------------

I drafted a small benchmark (so far only for android) to demonstrate the issue. XHR is somewhat
12 to 80 times faster compared to FileReader.

Some results from my Nexus S with Android 4.1:

100kB with XHR took: 9ms
100kB with FileReader took: 446ms
1MB with XHR took: 37ms
1MB with FileReader took: 2664ms


The code for the benchmark can be found here: https://github.com/dankurka/cordova-io-benchmark

I have also attached an apk file that should run on many devices so we can get a better feeling.



                
> FileReader vs XHR bench
> -----------------------
>
>                 Key: CB-1478
>                 URL: https://issues.apache.org/jira/browse/CB-1478
>             Project: Apache Cordova
>          Issue Type: Task
>          Components: Android, BlackBerry, iOS, WP7
>    Affects Versions: 2.2.0
>            Reporter: Brian LeRoux
>            Assignee: Joe Bowser
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: IOBench-debug.apk
>
>
> Long standing rumor that FileReader is/was faster than XHR debunked at PhoneGap Day EU.
Before we do anything to optimize our i/o, we need some actual science on which is faster,
on which platforms.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message