vulcan 0.2.5 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. data/README.md +1 -80
  2. data/lib/vulcan/cli.rb +12 -33
  3. data/lib/vulcan/version.rb +1 -1
  4. data/server/bin/make +3 -1
  5. data/server/lib/spawner.js +4 -9
  6. data/server/node_modules/connect-form/node_modules/formidable/Readme.md +2 -13
  7. data/server/node_modules/connect-form/node_modules/formidable/lib/incoming_form.js +7 -19
  8. data/server/node_modules/connect-form/node_modules/formidable/lib/multipart_parser.js +1 -12
  9. data/server/node_modules/connect-form/node_modules/formidable/package.json +1 -1
  10. data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-chrome-13.http +10 -0
  11. data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-chrome-12.http +9 -0
  12. data/server/node_modules/connect-form/node_modules/formidable/test/legacy/simple/test-multipart-parser.js +1 -1
  13. data/server/node_modules/cradle/lib/cradle.js +1 -0
  14. data/server/node_modules/cradle/node_modules/vows/LICENSE +20 -0
  15. data/server/node_modules/cradle/node_modules/vows/Makefile +7 -0
  16. data/server/node_modules/cradle/node_modules/vows/README.md +39 -0
  17. data/server/node_modules/cradle/node_modules/vows/bin/vows +515 -0
  18. data/server/node_modules/cradle/node_modules/vows/lib/assert/error.js +27 -0
  19. data/server/node_modules/cradle/node_modules/vows/lib/assert/macros.js +215 -0
  20. data/server/node_modules/cradle/node_modules/vows/lib/assert/utils.js +77 -0
  21. data/server/node_modules/cradle/node_modules/vows/lib/vows.js +193 -0
  22. data/server/node_modules/cradle/node_modules/vows/lib/vows/console.js +131 -0
  23. data/server/node_modules/cradle/node_modules/vows/lib/vows/context.js +55 -0
  24. data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/file.js +29 -0
  25. data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/fragments/coverage-foot.html +2 -0
  26. data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/fragments/coverage-head.html +61 -0
  27. data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/report-html.js +54 -0
  28. data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/report-json.js +54 -0
  29. data/server/node_modules/cradle/node_modules/vows/lib/vows/coverage/report-plain.js +38 -0
  30. data/server/node_modules/cradle/node_modules/vows/lib/vows/extras.js +28 -0
  31. data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/dot-matrix.js +67 -0
  32. data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/json.js +16 -0
  33. data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/silent.js +8 -0
  34. data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/spec.js +44 -0
  35. data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/watch.js +39 -0
  36. data/server/node_modules/cradle/node_modules/vows/lib/vows/reporters/xunit.js +90 -0
  37. data/server/node_modules/cradle/node_modules/vows/lib/vows/suite.js +319 -0
  38. data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/LICENSE +20 -0
  39. data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/Makefile +4 -0
  40. data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/README.md +72 -0
  41. data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/lib/eyes.js +233 -0
  42. data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/package.json +14 -0
  43. data/server/node_modules/cradle/node_modules/vows/node_modules/eyes/test/eyes-test.js +55 -0
  44. data/server/node_modules/cradle/node_modules/vows/package.json +14 -0
  45. data/server/node_modules/cradle/node_modules/vows/test/assert-test.js +135 -0
  46. data/server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/failing.js +18 -0
  47. data/server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/log.js +18 -0
  48. data/server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/passing.js +17 -0
  49. data/server/node_modules/cradle/node_modules/vows/test/fixtures/isolate/stderr.js +18 -0
  50. data/server/node_modules/cradle/node_modules/vows/test/isolate-test.js +140 -0
  51. data/server/node_modules/cradle/node_modules/vows/test/testInherit.js +133 -0
  52. data/server/node_modules/cradle/node_modules/vows/test/vows-error-test.js +51 -0
  53. data/server/node_modules/cradle/node_modules/vows/test/vows-test.js +374 -0
  54. data/server/node_modules/cradle/package.json +3 -3
  55. data/server/node_modules/cradle/test/cache-test.js +7 -6
  56. data/server/node_modules/cradle/test/cradle-test.js +5 -4
  57. data/server/node_modules/cradle/test/response-test.js +6 -5
  58. data/server/node_modules/express/History.md +1 -53
  59. data/server/node_modules/express/Makefile +9 -3
  60. data/server/node_modules/express/Readme.md +1 -3
  61. data/server/node_modules/express/bin/express +66 -65
  62. data/server/node_modules/express/lib/express.js +1 -1
  63. data/server/node_modules/express/lib/request.js +9 -23
  64. data/server/node_modules/express/lib/response.js +2 -3
  65. data/server/node_modules/express/lib/utils.js +0 -13
  66. data/server/node_modules/express/lib/view.js +16 -19
  67. data/server/node_modules/express/lib/view/view.js +1 -2
  68. data/server/node_modules/express/node_modules/connect/lib/connect.js +1 -1
  69. data/server/node_modules/express/node_modules/connect/lib/http.js +0 -2
  70. data/server/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js +31 -135
  71. data/server/node_modules/express/node_modules/connect/lib/middleware/limit.js +1 -5
  72. data/server/node_modules/express/node_modules/connect/lib/middleware/session.js +2 -2
  73. data/server/node_modules/express/node_modules/connect/lib/middleware/static.js +21 -26
  74. data/server/node_modules/express/node_modules/connect/lib/middleware/staticCache.js +38 -91
  75. data/server/node_modules/express/node_modules/connect/lib/middleware/vhost.js +1 -1
  76. data/server/node_modules/express/node_modules/connect/lib/utils.js +4 -11
  77. data/server/node_modules/express/node_modules/connect/package.json +6 -7
  78. data/server/node_modules/express/node_modules/connect/test.js +31 -44
  79. data/server/node_modules/express/node_modules/mime/index.js +1 -0
  80. data/server/node_modules/express/node_modules/mime/mime.js +3 -3
  81. data/server/node_modules/express/node_modules/mime/{types/mime.types → mime.types} +0 -0
  82. data/server/node_modules/express/node_modules/mime/{types/node.types → node.types} +0 -17
  83. data/server/node_modules/express/node_modules/mime/package.json +10 -21
  84. data/server/node_modules/express/node_modules/mime/test.js +3 -2
  85. data/server/node_modules/express/node_modules/qs/History.md +0 -11
  86. data/server/node_modules/express/node_modules/qs/Makefile +3 -1
  87. data/server/node_modules/express/node_modules/qs/Readme.md +4 -2
  88. data/server/node_modules/express/node_modules/qs/lib/querystring.js +74 -100
  89. data/server/node_modules/express/node_modules/qs/package.json +2 -9
  90. data/server/node_modules/express/node_modules/qs/support/expresso/History.md +128 -0
  91. data/server/node_modules/express/node_modules/qs/support/expresso/Makefile +53 -0
  92. data/server/node_modules/express/node_modules/qs/support/expresso/Readme.md +61 -0
  93. data/server/node_modules/express/node_modules/qs/support/expresso/bin/expresso +856 -0
  94. data/server/node_modules/express/node_modules/qs/support/expresso/docs/api.html +1080 -0
  95. data/server/node_modules/express/node_modules/qs/support/expresso/docs/index.html +377 -0
  96. data/server/node_modules/express/node_modules/qs/support/expresso/docs/index.md +290 -0
  97. data/server/node_modules/express/node_modules/qs/support/expresso/docs/layout/foot.html +3 -0
  98. data/server/node_modules/express/node_modules/qs/support/expresso/docs/layout/head.html +42 -0
  99. data/server/node_modules/express/node_modules/qs/support/expresso/lib/bar.js +4 -0
  100. data/server/node_modules/express/node_modules/qs/support/expresso/lib/foo.js +16 -0
  101. data/server/node_modules/express/node_modules/qs/support/expresso/package.json +12 -0
  102. data/server/node_modules/express/node_modules/qs/support/expresso/test/assert.test.js +91 -0
  103. data/server/node_modules/express/node_modules/qs/support/expresso/test/async.test.js +12 -0
  104. data/server/node_modules/express/node_modules/qs/support/expresso/test/bar.test.js +13 -0
  105. data/server/node_modules/express/node_modules/qs/support/expresso/test/foo.test.js +14 -0
  106. data/server/node_modules/express/node_modules/qs/support/expresso/test/http.test.js +146 -0
  107. data/server/node_modules/express/node_modules/qs/support/expresso/test/serial/async.test.js +39 -0
  108. data/server/node_modules/express/node_modules/qs/support/expresso/test/serial/http.test.js +48 -0
  109. data/server/node_modules/express/node_modules/qs/support/should/History.md +22 -0
  110. data/server/node_modules/express/node_modules/qs/support/should/Makefile +6 -0
  111. data/server/node_modules/express/node_modules/qs/support/should/Readme.md +248 -0
  112. data/server/node_modules/express/node_modules/qs/support/should/examples/runner.js +53 -0
  113. data/server/node_modules/express/node_modules/qs/support/should/index.js +2 -0
  114. data/server/node_modules/express/node_modules/qs/support/should/lib/eql.js +91 -0
  115. data/server/node_modules/express/node_modules/qs/support/should/lib/should.js +548 -0
  116. data/server/node_modules/express/node_modules/qs/support/should/package.json +8 -0
  117. data/server/node_modules/express/node_modules/qs/support/should/test/should.test.js +358 -0
  118. data/server/node_modules/express/node_modules/qs/test/{parse.js → parse.test.js} +2 -1
  119. data/server/node_modules/express/node_modules/qs/test/{stringify.js → stringify.test.js} +0 -0
  120. data/server/node_modules/express/package.json +8 -9
  121. data/server/node_modules/node-uuid/README.md +67 -166
  122. data/server/node_modules/node-uuid/package.json +3 -5
  123. data/server/node_modules/node-uuid/{benchmark → test}/benchmark-native.c +0 -0
  124. data/server/node_modules/node-uuid/test/benchmark.js +27 -0
  125. data/server/node_modules/node-uuid/test/test.html +0 -3
  126. data/server/node_modules/node-uuid/test/test.js +57 -214
  127. data/server/node_modules/node-uuid/uuid.js +56 -225
  128. data/server/node_modules/restler/README.md +7 -20
  129. data/server/node_modules/restler/bin/restler +1 -1
  130. data/server/node_modules/restler/lib/multipartform.js +8 -9
  131. data/server/node_modules/restler/lib/restler.js +22 -64
  132. data/server/node_modules/restler/package.json +2 -2
  133. data/server/node_modules/restler/test/restler.js +2 -22
  134. data/server/node_modules/restler/test/test_helper.js +1 -20
  135. data/server/package.json +10 -10
  136. data/server/web.js +7 -30
  137. metadata +96 -89
  138. data/server/node_modules/connect-form/node_modules/formidable/test/fixture/file/plain.txt +0 -1
  139. data/server/node_modules/connect-form/node_modules/formidable/test/fixture/http/no-filename/generic.http +0 -13
  140. data/server/node_modules/connect-form/node_modules/formidable/test/fixture/js/no-filename.js +0 -3
  141. data/server/node_modules/express/node_modules/connect/node_modules/formidable/Makefile +0 -14
  142. data/server/node_modules/express/node_modules/connect/node_modules/formidable/Readme.md +0 -286
  143. data/server/node_modules/express/node_modules/connect/node_modules/formidable/TODO +0 -3
  144. data/server/node_modules/express/node_modules/connect/node_modules/formidable/benchmark/bench-multipart-parser.js +0 -70
  145. data/server/node_modules/express/node_modules/connect/node_modules/formidable/example/post.js +0 -43
  146. data/server/node_modules/express/node_modules/connect/node_modules/formidable/example/upload.js +0 -48
  147. data/server/node_modules/express/node_modules/connect/node_modules/formidable/index.js +0 -1
  148. data/server/node_modules/express/node_modules/connect/node_modules/formidable/lib/file.js +0 -61
  149. data/server/node_modules/express/node_modules/connect/node_modules/formidable/lib/incoming_form.js +0 -377
  150. data/server/node_modules/express/node_modules/connect/node_modules/formidable/lib/index.js +0 -3
  151. data/server/node_modules/express/node_modules/connect/node_modules/formidable/lib/multipart_parser.js +0 -312
  152. data/server/node_modules/express/node_modules/connect/node_modules/formidable/lib/querystring_parser.js +0 -25
  153. data/server/node_modules/express/node_modules/connect/node_modules/formidable/lib/util.js +0 -6
  154. data/server/node_modules/express/node_modules/connect/node_modules/formidable/package.json +0 -22
  155. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/common.js +0 -19
  156. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/funkyfilename.txt +0 -1
  157. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/plain.txt +0 -1
  158. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/no-filename/generic.http +0 -13
  159. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md +0 -3
  160. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-chrome-13.http +0 -26
  161. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-firefox-3.6.http +0 -24
  162. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/osx-safari-5.http +0 -23
  163. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-chrome-12.http +0 -24
  164. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-ie-7.http +0 -22
  165. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-ie-8.http +0 -22
  166. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/xp-safari-5.http +0 -22
  167. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/no-filename.js +0 -3
  168. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/special-chars-in-filename.js +0 -21
  169. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multi_video.upload +0 -0
  170. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multipart.js +0 -72
  171. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/integration/test-fixtures.js +0 -89
  172. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/common.js +0 -24
  173. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/integration/test-multipart-parser.js +0 -80
  174. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-file.js +0 -104
  175. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js +0 -715
  176. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js +0 -50
  177. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js +0 -45
  178. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js +0 -72
  179. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js +0 -2
  180. data/server/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js +0 -63
  181. data/server/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js +0 -47
  182. data/server/node_modules/express/node_modules/mkdirp/LICENSE +0 -21
  183. data/server/node_modules/express/node_modules/mkdirp/README.markdown +0 -21
  184. data/server/node_modules/express/node_modules/mkdirp/examples/pow.js +0 -6
  185. data/server/node_modules/express/node_modules/mkdirp/examples/pow.js.orig +0 -6
  186. data/server/node_modules/express/node_modules/mkdirp/examples/pow.js.rej +0 -19
  187. data/server/node_modules/express/node_modules/mkdirp/index.js +0 -20
  188. data/server/node_modules/express/node_modules/mkdirp/package.json +0 -23
  189. data/server/node_modules/express/node_modules/mkdirp/test/mkdirp.js +0 -28
  190. data/server/node_modules/express/node_modules/mkdirp/test/race.js +0 -41
  191. data/server/node_modules/express/node_modules/mkdirp/test/rel.js +0 -32
  192. data/server/node_modules/express/node_modules/qs/test/mocha.opts +0 -2
  193. data/server/node_modules/express/testing/foo/app.js +0 -35
  194. data/server/node_modules/express/testing/foo/package.json +0 -9
  195. data/server/node_modules/express/testing/foo/public/stylesheets/style.css +0 -8
  196. data/server/node_modules/express/testing/foo/routes/index.js +0 -10
  197. data/server/node_modules/express/testing/foo/views/index.jade +0 -2
  198. data/server/node_modules/express/testing/foo/views/layout.jade +0 -6
  199. data/server/node_modules/express/testing/index.js +0 -43
  200. data/server/node_modules/express/testing/public/test.txt +0 -2971
  201. data/server/node_modules/express/testing/views/page.html +0 -1
  202. data/server/node_modules/express/testing/views/page.jade +0 -3
  203. data/server/node_modules/express/testing/views/test.md +0 -1
  204. data/server/node_modules/express/testing/views/user/index.jade +0 -1
  205. data/server/node_modules/express/testing/views/user/list.jade +0 -1
  206. data/server/node_modules/node-uuid/benchmark/README.md +0 -53
  207. data/server/node_modules/node-uuid/benchmark/bench.gnu +0 -174
  208. data/server/node_modules/node-uuid/benchmark/bench.sh +0 -34
  209. data/server/node_modules/node-uuid/benchmark/benchmark.js +0 -84
  210. data/server/node_modules/node-uuid/test/benchmark-native +0 -0
  211. data/server/node_modules/node-uuid/test/compare_v1.js +0 -63
@@ -1 +0,0 @@
1
- p register test
@@ -1,3 +0,0 @@
1
- html
2
- body
3
- h1 test
@@ -1 +0,0 @@
1
- testing _some_ markdown
@@ -1 +0,0 @@
1
- p user page
@@ -1 +0,0 @@
1
- p user list page
@@ -1,53 +0,0 @@
1
- # node-uuid Benchmarks
2
-
3
- ### Results
4
-
5
- To see the results of our benchmarks visit https://github.com/broofa/node-uuid/wiki/Benchmark
6
-
7
- ### Run them yourself
8
-
9
- node-uuid comes with some benchmarks to measure performance of generating UUIDs. These can be run using node.js. node-uuid is being benchmarked against some other uuid modules, that are available through npm namely `uuid` and `uuid-js`.
10
-
11
- To prepare and run the benchmark issue;
12
-
13
- ```
14
- npm install uuid uuid-js
15
- node benchmark/benchmark.js
16
- ```
17
-
18
- You'll see an output like this one:
19
-
20
- ```
21
- # v4
22
- nodeuuid.v4(): 854700 uuids/second
23
- nodeuuid.v4('binary'): 788643 uuids/second
24
- nodeuuid.v4('binary', buffer): 1336898 uuids/second
25
- uuid(): 479386 uuids/second
26
- uuid('binary'): 582072 uuids/second
27
- uuidjs.create(4): 312304 uuids/second
28
-
29
- # v1
30
- nodeuuid.v1(): 938086 uuids/second
31
- nodeuuid.v1('binary'): 683060 uuids/second
32
- nodeuuid.v1('binary', buffer): 1644736 uuids/second
33
- uuidjs.create(1): 190621 uuids/second
34
- ```
35
-
36
- * The `uuid()` entries are for Nikhil Marathe's [uuid module](https://bitbucket.org/nikhilm/uuidjs) which is a wrapper around the native libuuid library.
37
- * The `uuidjs()` entries are for Patrick Negri's [uuid-js module](https://github.com/pnegri/uuid-js) which is a pure javascript implementation based on [UUID.js](https://github.com/LiosK/UUID.js) by LiosK.
38
-
39
- If you want to get more reliable results you can run the benchmark multiple times and write the output into a log file:
40
-
41
- ```
42
- for i in {0..9}; do node benchmark/benchmark.js >> benchmark/bench_0.4.12.log; done;
43
- ```
44
-
45
- If you're interested in how performance varies between different node versions, you can issue the above command multiple times.
46
-
47
- You can then use the shell script `bench.sh` provided in this directory to calculate the averages over all benchmark runs and draw a nice plot:
48
-
49
- ```
50
- (cd benchmark/ && ./bench.sh)
51
- ```
52
-
53
- This assumes you have [gnuplot](http://www.gnuplot.info/) and [ImageMagick](http://www.imagemagick.org/) installed. You'll find a nice `bench.png` graph in the `benchmark/` directory then.
@@ -1,174 +0,0 @@
1
- #!/opt/local/bin/gnuplot -persist
2
- #
3
- #
4
- # G N U P L O T
5
- # Version 4.4 patchlevel 3
6
- # last modified March 2011
7
- # System: Darwin 10.8.0
8
- #
9
- # Copyright (C) 1986-1993, 1998, 2004, 2007-2010
10
- # Thomas Williams, Colin Kelley and many others
11
- #
12
- # gnuplot home: http://www.gnuplot.info
13
- # faq, bugs, etc: type "help seeking-assistance"
14
- # immediate help: type "help"
15
- # plot window: hit 'h'
16
- set terminal postscript eps noenhanced defaultplex \
17
- leveldefault color colortext \
18
- solid linewidth 1.2 butt noclip \
19
- palfuncparam 2000,0.003 \
20
- "Helvetica" 14
21
- set output 'bench.eps'
22
- unset clip points
23
- set clip one
24
- unset clip two
25
- set bar 1.000000 front
26
- set border 31 front linetype -1 linewidth 1.000
27
- set xdata
28
- set ydata
29
- set zdata
30
- set x2data
31
- set y2data
32
- set timefmt x "%d/%m/%y,%H:%M"
33
- set timefmt y "%d/%m/%y,%H:%M"
34
- set timefmt z "%d/%m/%y,%H:%M"
35
- set timefmt x2 "%d/%m/%y,%H:%M"
36
- set timefmt y2 "%d/%m/%y,%H:%M"
37
- set timefmt cb "%d/%m/%y,%H:%M"
38
- set boxwidth
39
- set style fill empty border
40
- set style rectangle back fc lt -3 fillstyle solid 1.00 border lt -1
41
- set style circle radius graph 0.02, first 0, 0
42
- set dummy x,y
43
- set format x "% g"
44
- set format y "% g"
45
- set format x2 "% g"
46
- set format y2 "% g"
47
- set format z "% g"
48
- set format cb "% g"
49
- set angles radians
50
- unset grid
51
- set key title ""
52
- set key outside left top horizontal Right noreverse enhanced autotitles columnhead nobox
53
- set key noinvert samplen 4 spacing 1 width 0 height 0
54
- set key maxcolumns 2 maxrows 0
55
- unset label
56
- unset arrow
57
- set style increment default
58
- unset style line
59
- set style line 1 linetype 1 linewidth 2.000 pointtype 1 pointsize default pointinterval 0
60
- unset style arrow
61
- set style histogram clustered gap 2 title offset character 0, 0, 0
62
- unset logscale
63
- set offsets graph 0.05, 0.15, 0, 0
64
- set pointsize 1.5
65
- set pointintervalbox 1
66
- set encoding default
67
- unset polar
68
- unset parametric
69
- unset decimalsign
70
- set view 60, 30, 1, 1
71
- set samples 100, 100
72
- set isosamples 10, 10
73
- set surface
74
- unset contour
75
- set clabel '%8.3g'
76
- set mapping cartesian
77
- set datafile separator whitespace
78
- unset hidden3d
79
- set cntrparam order 4
80
- set cntrparam linear
81
- set cntrparam levels auto 5
82
- set cntrparam points 5
83
- set size ratio 0 1,1
84
- set origin 0,0
85
- set style data points
86
- set style function lines
87
- set xzeroaxis linetype -2 linewidth 1.000
88
- set yzeroaxis linetype -2 linewidth 1.000
89
- set zzeroaxis linetype -2 linewidth 1.000
90
- set x2zeroaxis linetype -2 linewidth 1.000
91
- set y2zeroaxis linetype -2 linewidth 1.000
92
- set ticslevel 0.5
93
- set mxtics default
94
- set mytics default
95
- set mztics default
96
- set mx2tics default
97
- set my2tics default
98
- set mcbtics default
99
- set xtics border in scale 1,0.5 mirror norotate offset character 0, 0, 0
100
- set xtics norangelimit
101
- set xtics ()
102
- set ytics border in scale 1,0.5 mirror norotate offset character 0, 0, 0
103
- set ytics autofreq norangelimit
104
- set ztics border in scale 1,0.5 nomirror norotate offset character 0, 0, 0
105
- set ztics autofreq norangelimit
106
- set nox2tics
107
- set noy2tics
108
- set cbtics border in scale 1,0.5 mirror norotate offset character 0, 0, 0
109
- set cbtics autofreq norangelimit
110
- set title ""
111
- set title offset character 0, 0, 0 font "" norotate
112
- set timestamp bottom
113
- set timestamp ""
114
- set timestamp offset character 0, 0, 0 font "" norotate
115
- set rrange [ * : * ] noreverse nowriteback # (currently [8.98847e+307:-8.98847e+307] )
116
- set autoscale rfixmin
117
- set autoscale rfixmax
118
- set trange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )
119
- set autoscale tfixmin
120
- set autoscale tfixmax
121
- set urange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
122
- set autoscale ufixmin
123
- set autoscale ufixmax
124
- set vrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
125
- set autoscale vfixmin
126
- set autoscale vfixmax
127
- set xlabel ""
128
- set xlabel offset character 0, 0, 0 font "" textcolor lt -1 norotate
129
- set x2label ""
130
- set x2label offset character 0, 0, 0 font "" textcolor lt -1 norotate
131
- set xrange [ * : * ] noreverse nowriteback # (currently [-0.150000:3.15000] )
132
- set autoscale xfixmin
133
- set autoscale xfixmax
134
- set x2range [ * : * ] noreverse nowriteback # (currently [0.00000:3.00000] )
135
- set autoscale x2fixmin
136
- set autoscale x2fixmax
137
- set ylabel ""
138
- set ylabel offset character 0, 0, 0 font "" textcolor lt -1 rotate by -270
139
- set y2label ""
140
- set y2label offset character 0, 0, 0 font "" textcolor lt -1 rotate by -270
141
- set yrange [ 0.00000 : 1.90000e+06 ] noreverse nowriteback # (currently [:] )
142
- set autoscale yfixmin
143
- set autoscale yfixmax
144
- set y2range [ * : * ] noreverse nowriteback # (currently [0.00000:1.90000e+06] )
145
- set autoscale y2fixmin
146
- set autoscale y2fixmax
147
- set zlabel ""
148
- set zlabel offset character 0, 0, 0 font "" textcolor lt -1 norotate
149
- set zrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
150
- set autoscale zfixmin
151
- set autoscale zfixmax
152
- set cblabel ""
153
- set cblabel offset character 0, 0, 0 font "" textcolor lt -1 rotate by -270
154
- set cbrange [ * : * ] noreverse nowriteback # (currently [8.98847e+307:-8.98847e+307] )
155
- set autoscale cbfixmin
156
- set autoscale cbfixmax
157
- set zero 1e-08
158
- set lmargin -1
159
- set bmargin -1
160
- set rmargin -1
161
- set tmargin -1
162
- set pm3d explicit at s
163
- set pm3d scansautomatic
164
- set pm3d interpolate 1,1 flush begin noftriangles nohidden3d corners2color mean
165
- set palette positive nops_allcF maxcolors 0 gamma 1.5 color model RGB
166
- set palette rgbformulae 7, 5, 15
167
- set colorbox default
168
- set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.05, 0.6, 0 front bdefault
169
- set loadpath
170
- set fontpath
171
- set fit noerrorvariables
172
- GNUTERM = "aqua"
173
- plot 'bench_results.txt' using 2:xticlabel(1) w lp lw 2, '' using 3:xticlabel(1) w lp lw 2, '' using 4:xticlabel(1) w lp lw 2, '' using 5:xticlabel(1) w lp lw 2, '' using 6:xticlabel(1) w lp lw 2, '' using 7:xticlabel(1) w lp lw 2, '' using 8:xticlabel(1) w lp lw 2, '' using 9:xticlabel(1) w lp lw 2
174
- # EOF
@@ -1,34 +0,0 @@
1
- #!/bin/bash
2
-
3
- # for a given node version run:
4
- # for i in {0..9}; do node benchmark.js >> bench_0.6.2.log; done;
5
-
6
- PATTERNS=('nodeuuid.v1()' "nodeuuid.v1('binary'," 'nodeuuid.v4()' "nodeuuid.v4('binary'," "uuid()" "uuid('binary')" 'uuidjs.create(1)' 'uuidjs.create(4)' '140byte')
7
- FILES=(node_uuid_v1_string node_uuid_v1_buf node_uuid_v4_string node_uuid_v4_buf libuuid_v4_string libuuid_v4_binary uuidjs_v1_string uuidjs_v4_string 140byte_es)
8
- INDICES=(2 3 2 3 2 2 2 2 2)
9
- VERSIONS=$( ls bench_*.log | sed -e 's/^bench_\([0-9\.]*\)\.log/\1/' | tr "\\n" " " )
10
- TMPJOIN="tmp_join"
11
- OUTPUT="bench_results.txt"
12
-
13
- for I in ${!FILES[*]}; do
14
- F=${FILES[$I]}
15
- P=${PATTERNS[$I]}
16
- INDEX=${INDICES[$I]}
17
- echo "version $F" > $F
18
- for V in $VERSIONS; do
19
- (VAL=$( grep "$P" bench_$V.log | LC_ALL=en_US awk '{ sum += $'$INDEX' } END { print sum/NR }' ); echo $V $VAL) >> $F
20
- done
21
- if [ $I == 0 ]; then
22
- cat $F > $TMPJOIN
23
- else
24
- join $TMPJOIN $F > $OUTPUT
25
- cp $OUTPUT $TMPJOIN
26
- fi
27
- rm $F
28
- done
29
-
30
- rm $TMPJOIN
31
-
32
- gnuplot bench.gnu
33
- convert -density 200 -resize 800x560 -flatten bench.eps bench.png
34
- rm bench.eps
@@ -1,84 +0,0 @@
1
- try {
2
- var nodeuuid = require('../uuid');
3
- } catch (e) {
4
- console.error('node-uuid require failed - skipping tests');
5
- }
6
-
7
- try {
8
- var uuid = require('uuid');
9
- } catch (e) {
10
- console.error('uuid require failed - skipping tests');
11
- }
12
-
13
- try {
14
- var uuidjs = require('uuid-js');
15
- } catch (e) {
16
- console.error('uuid-js require failed - skipping tests');
17
- }
18
-
19
- var N = 5e5;
20
-
21
- function rate(msg, t) {
22
- console.log(msg + ': ' +
23
- (N / (Date.now() - t) * 1e3 | 0) +
24
- ' uuids/second');
25
- }
26
-
27
- console.log('# v4');
28
-
29
- // node-uuid - string form
30
- if (nodeuuid) {
31
- for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v4();
32
- rate('nodeuuid.v4() - using node.js crypto RNG', t);
33
-
34
- for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v4({rng: nodeuuid.mathRNG});
35
- rate('nodeuuid.v4() - using Math.random() RNG', t);
36
-
37
- for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v4('binary');
38
- rate('nodeuuid.v4(\'binary\')', t);
39
-
40
- var buffer = new nodeuuid.BufferClass(16);
41
- for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v4('binary', buffer);
42
- rate('nodeuuid.v4(\'binary\', buffer)', t);
43
- }
44
-
45
- // libuuid - string form
46
- if (uuid) {
47
- for (var i = 0, t = Date.now(); i < N; i++) uuid();
48
- rate('uuid()', t);
49
-
50
- for (var i = 0, t = Date.now(); i < N; i++) uuid('binary');
51
- rate('uuid(\'binary\')', t);
52
- }
53
-
54
- // uuid-js - string form
55
- if (uuidjs) {
56
- for (var i = 0, t = Date.now(); i < N; i++) uuidjs.create(4);
57
- rate('uuidjs.create(4)', t);
58
- }
59
-
60
- // 140byte.es
61
- for (var i = 0, t = Date.now(); i < N; i++) 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(s,r){r=Math.random()*16|0;return (s=='x'?r:r&0x3|0x8).toString(16)});
62
- rate('140byte.es_v4', t);
63
-
64
- console.log('');
65
- console.log('# v1');
66
-
67
- // node-uuid - v1 string form
68
- if (nodeuuid) {
69
- for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v1();
70
- rate('nodeuuid.v1()', t);
71
-
72
- for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v1('binary');
73
- rate('nodeuuid.v1(\'binary\')', t);
74
-
75
- var buffer = new nodeuuid.BufferClass(16);
76
- for (var i = 0, t = Date.now(); i < N; i++) nodeuuid.v1('binary', buffer);
77
- rate('nodeuuid.v1(\'binary\', buffer)', t);
78
- }
79
-
80
- // uuid-js - v1 string form
81
- if (uuidjs) {
82
- for (var i = 0, t = Date.now(); i < N; i++) uuidjs.create(1);
83
- rate('uuidjs.create(1)', t);
84
- }
@@ -1,63 +0,0 @@
1
- var assert = require('assert'),
2
- nodeuuid = require('../uuid'),
3
- uuidjs = require('uuid-js'),
4
- libuuid = require('uuid').generate,
5
- util = require('util'),
6
- exec = require('child_process').exec,
7
- os = require('os');
8
-
9
- // On Mac Os X / macports there's only the ossp-uuid package that provides uuid
10
- // On Linux there's uuid-runtime which provides uuidgen
11
- var uuidCmd = os.type() === 'Darwin' ? 'uuid -1' : 'uuidgen -t';
12
-
13
- function compare(ids) {
14
- console.log(ids);
15
- for (var i = 0; i < ids.length; i++) {
16
- var id = ids[i].split('-');
17
- id = [id[2], id[1], id[0]].join('');
18
- ids[i] = id;
19
- }
20
- var sorted = ([].concat(ids)).sort();
21
-
22
- if (sorted.toString() !== ids.toString()) {
23
- console.log('Warning: sorted !== ids');
24
- } else {
25
- console.log('everything in order!');
26
- }
27
- }
28
-
29
- // Test time order of v1 uuids
30
- var ids = [];
31
- while (ids.length < 10e3) ids.push(nodeuuid.v1());
32
-
33
- var max = 10;
34
- console.log('node-uuid:');
35
- ids = [];
36
- for (var i = 0; i < max; i++) ids.push(nodeuuid.v1());
37
- compare(ids);
38
-
39
- console.log('');
40
- console.log('uuidjs:');
41
- ids = [];
42
- for (var i = 0; i < max; i++) ids.push(uuidjs.create(1).toString());
43
- compare(ids);
44
-
45
- console.log('');
46
- console.log('libuuid:');
47
- ids = [];
48
- var count = 0;
49
- var last = function() {
50
- compare(ids);
51
- }
52
- var cb = function(err, stdout, stderr) {
53
- ids.push(stdout.substring(0, stdout.length-1));
54
- count++;
55
- if (count < max) {
56
- return next();
57
- }
58
- last();
59
- };
60
- var next = function() {
61
- exec(uuidCmd, cb);
62
- };
63
- next();