~ubuntu-branches/ubuntu/natty/nodejs/natty

« back to all changes in this revision

Viewing changes to benchmark/io.js

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard, Jérémy Lal, Jonas Smedegaard
  • Date: 2011-01-21 21:00:24 UTC
  • mfrom: (1.1.10 upstream)
  • mto: (7.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20110121210024-hyhy73i8hu7nzzrg
Tags: 0.2.6-1
[ Jérémy Lal ]
* New upstream release.
* nodejs is an alternative to js. (Closes: #597572)
* Use upstream binary names for node and node-waf,
  conflicts with node package. (Closes: #597571)
* Global modules search paths :
  /usr/local/lib/nodejs
  /usr/lib/nodejs
  Custom paths can be set through NODE_PATH.
  The reason is to support future npm package, giving higher
  priority to modules installed by npm as root.
* Repackage using CDBS.  Enable regression testing.
* Add a note about importing upstream tarball in README.source.
* Update TODO

[ Jonas Smedegaard ]
* Add myself as uploader.
* Limit watch file to stable releases.
* Enable CDBS build-dependency autoresolving.
* Tighten build-dependency on cdbs to versions properly supporting
  debhelper compat level 7.
* Tighten build-dependency on debhelper to versions fully supporting
  compat level 7.
* Build-depend on dh-buildinfo to include buildinfo hints with binary
  packages for easier troubleshooting.
* Build-depend on curl: Needed for regression tests (testing on
  loopback, so should be Policy compliant).
* Newline-delimit package relations for improved readability.
* Add patch 2001 to skip TTY-needing regression test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
var fs = require('fs');
 
2
var sys = require('sys');
2
3
var Buffer = require('buffer').Buffer;
3
4
 
4
5
var path = "/tmp/wt.dat";
21
22
  emitter.addListener(name, incb);
22
23
}
23
24
 
 
25
c = 0
 
26
 
24
27
function writetest(size, bsize) {
25
28
  var s = fs.createWriteStream(path, {'flags': 'w', 'mode': 0644});
26
29
  var remaining = size;
40
43
 
41
44
  s.on('drain', function () {
42
45
    dowrite();
 
46
    if (c++ % 2000 == 0) sys.print(".");
43
47
  });
44
48
 
45
49
  dowrite();