Permalink
Browse files

Added benchmarking script for Lexer.

  • Loading branch information...
1 parent 7fc30fe commit 9930b8f76340b20ece39afef1ef4c13cf2e9aeb0 @nene committed Jan 19, 2011
Showing with 11 additions and 0 deletions.
  1. +11 −0 benchmark/lex.rb
View
@@ -0,0 +1,11 @@
+# Script for benchmarking the lexer.
+#
+# Takes bunch of filenames as arguments and runs them all through lexer.
+#
+$:.unshift File.dirname(File.dirname(__FILE__)) + "/lib"
+require 'jsduck/lexer'
+
+ARGV.each do |fname|
+ JsDuck::Lexer.new(IO.read(fname))
+end
+

0 comments on commit 9930b8f

Please sign in to comment.