Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D26310067 for ; Mon, 15 Jul 2013 14:52:07 +0000 (UTC) Received: (qmail 30492 invoked by uid 500); 15 Jul 2013 14:52:07 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 30386 invoked by uid 500); 15 Jul 2013 14:52:04 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 30364 invoked by uid 99); 15 Jul 2013 14:52:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jul 2013 14:52:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of drkemp@google.com designates 209.85.214.177 as permitted sender) Received: from [209.85.214.177] (HELO mail-ob0-f177.google.com) (209.85.214.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jul 2013 14:51:56 +0000 Received: by mail-ob0-f177.google.com with SMTP id ta17so13932482obb.8 for ; Mon, 15 Jul 2013 07:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=TEv/Np663jk6+Dwv2PCOeQ8C+G56AeCdJNzNQfLaFTs=; b=VwZyLBupcKBBC+3Uese5dYDNUCE03d3ZeQegqA3+gZirJ/nEe1j8CB2woKZOMhxHFb 5JcIHN0mAxR79n9LQ7hrJvD9rw8SJsL1COOzljZ9DFUqS+7A0pJ5L6QMFHNtw1QhttzP kva9E/ezTUEiSc7X8yDaeuDJPM0aGpmCo/YQc8xQqREd1dIjBe3D1nysfoPIX2ZTgGIN f+gkA+FiTrx1SI9kPy00LCJWS+Q7abRCDpgslXb1PD7v+gYXPqaUIfUgnK2uBHEE8MgP E2kOgiBYPCpOo1JAebP+kCdE/8bPsaxh8+O5JeQNGRP0rCW3hf4KiMk7FJ+e9Cq1YLX7 IRVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=TEv/Np663jk6+Dwv2PCOeQ8C+G56AeCdJNzNQfLaFTs=; b=WV3EeBFd9tVBgRfPxB/BIFh8ZcWZvhy96Z+fMs3kD025DCV6H3l9rcKmc8P0cGCfSo MvAE1bJhfKIK/mvIYJcGnA7CnkNA7mTouv0GHOOkTs07CI3xd4+mwrYkMllMwgEhw94n KybejMwvBDt+47UVDcdoQ+6jBu1g6UxXahKT++ZMjKqJN8IPWu60tWzrXBeb10vot/9P 3Qub5lWS4BEHRwaQwLY7kEQOeO4EjPPicSfF8eORJx5G+lkbrbFnmfTkAuA8sQLmG39+ gmzgfGPg4d1pEvdB8nsMSfpfIoHjy+AFxY8GTFKkf5GAZXh6iCApsPhsAWnx3O60kPk3 sROw== MIME-Version: 1.0 X-Received: by 10.60.92.165 with SMTP id cn5mr43714965oeb.53.1373899896237; Mon, 15 Jul 2013 07:51:36 -0700 (PDT) Received: by 10.182.137.193 with HTTP; Mon, 15 Jul 2013 07:51:36 -0700 (PDT) Date: Mon, 15 Jul 2013 10:51:36 -0400 Message-ID: Subject: Plugin loading times - Android From: David Kemp To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=047d7b33d5b245c47504e18dffe6 X-Gm-Message-State: ALoCoQmIWNAzvGmQ7bPzrF3q25rAHU57/2Oe/SxG0nhVdm2aAwkn45llxMTg0a8BT3muqkzKYPBRAUBVKKbdmvVZMQfr1eRHzgXXY5qZQNMCeFrDO6aRgyX5cRL2U6/uqxeJFk8CjTutSMc3dfbpL8flVE0H3MHQdpL0JAGnyZP+hS7SZeAnyiTzPjM9JxsaqCgDKkZOAILO X-Virus-Checked: Checked by ClamAV on apache.org --047d7b33d5b245c47504e18dffe6 Content-Type: text/plain; charset=ISO-8859-1 The following are obtained by running the mobilespec suite - all tests The tests were run on a physical nexus 7 Summary: * on Android , removing the xhr trims off about 250ms on load of mobilespec. * the multi-file plugin loading takes about 1.6 times as long as a single file Details In each case below: * the first log line is written immediately on load. * the second line is written when you press 'Automatic Test' * the third line is written when you press 'Run All Tests' The times are different because of caching that takes place, so the first one is most interesting. Case 1: This case is manually constructed, lumping all plugin js files together. With plugins loaded in a single file + cordova_plugins.js(no xhr): - plugin loading took 211ms - plugin loading took 56ms - plugin loading took 83ms Case 2: This case is what the 3.0 version did until: CB-4016 / https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;h=0ce4718 With plugins loaded separately (about 60 files): - plugin loading took 598ms - plugin loading took 124ms - plugin loading took 279ms Case 3: This case is what the 3.0 version does after: CB-4016 / https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;h=0ce4718 With plugins loaded separately *withou*t xhr (about 60 files): - plugin loading took 336ms - plugin loading took 112ms - plugin loading took 260ms --047d7b33d5b245c47504e18dffe6--