[Pkg-javascript-commits] [node-lexical-scope] 23/83: benchmarking results
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:45:47 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-lexical-scope.
commit 72be8dd7941569f4345eb64971a3974f2cc14f23
Author: James Halliday <mail at substack.net>
Date: Fri Mar 1 22:01:34 2013 -0800
benchmarking results
---
bench/jquery.js | 4 ++++
bench/results.txt | 15 +++++++++++++++
bench/run.js | 7 +++++++
3 files changed, 26 insertions(+)
diff --git a/bench/jquery.js b/bench/jquery.js
new file mode 100644
index 0000000..198b3ff
--- /dev/null
+++ b/bench/jquery.js
@@ -0,0 +1,4 @@
+/*! jQuery v1.7.1 jquery.com | jquery.org/license */
+(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close();d=cm.createElement( [...]
+f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]| [...]
+{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replac [...]
\ No newline at end of file
diff --git a/bench/results.txt b/bench/results.txt
new file mode 100644
index 0000000..2a68ff8
--- /dev/null
+++ b/bench/results.txt
@@ -0,0 +1,15 @@
+$ git log|head -n1
+commit ae85dfd4cc0284679ce21bb662427340fa966666
+$ time node run.js >/dev/null
+
+real 0m6.551s
+user 0m6.336s
+sys 0m0.288s
+
+$ git log|head -n1
+commit 9125bf1ec0cf78c77a852e0547a4cc69db7797bf
+$ time node run.js>/dev/null
+
+real 0m1.702s
+user 0m1.644s
+sys 0m0.084s
diff --git a/bench/run.js b/bench/run.js
new file mode 100755
index 0000000..3c0ca06
--- /dev/null
+++ b/bench/run.js
@@ -0,0 +1,7 @@
+#!/usr/bin/env node
+var detect = require('../');
+var fs = require('fs');
+var src = fs.readFileSync(__dirname + '/jquery.js');
+
+var scope = detect(src);
+console.dir(scope);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-lexical-scope.git
More information about the Pkg-javascript-commits
mailing list