Permalink
Browse files

remove makefile

  • Loading branch information...
1 parent df8bcee commit 5de9d628401ff2a32f860e4dbeec24cfce7ceefb @tj committed Jul 26, 2012
Showing with 0 additions and 44 deletions.
  1. +0 −8 Makefile
  2. +0 −36 benchmark.js
View
@@ -1,8 +0,0 @@
-
-test:
- @node test
-
-benchmark:
- @node benchmark
-
-.PHONY: test benchmark
View
@@ -1,36 +0,0 @@
-
-var css = require('./')
- , fs = require('fs')
- , read = fs.readFileSync
- , str = read('examples/ui.css', 'utf8');
-
-var n = 5000;
-var ops = 200;
-var t = process.hrtime(t);
-var results = [];
-
-while (n--) {
- css.stringify(css.parse(str));
- if (n % ops == 0) {
- t = process.hrtime(t);
- var ms = t[1] / 1000 / 1000;
- var persec = (ops * (1000 / ms) | 0);
- results.push(persec);
- process.stdout.write('\r [' + persec + ' ops/s] [' + n + ']');
- t = process.hrtime();
- }
-}
-
-function sum(arr) {
- return arr.reduce(function(sum, n){
- return sum + n;
- });
-}
-
-function mean(arr) {
- return sum(arr) / arr.length | 0;
-}
-
-console.log();
-console.log(' avg: %d ops/s', mean(results));
-console.log(' size: %d kb', (str.length / 1024).toFixed(2));

0 comments on commit 5de9d62

Please sign in to comment.