Sha256: d4b5d340c2a9c03c0ec86891904bb3f1095df0eaba995055ce2018e0c7ec5d37

Contents?: true

Size: 860 Bytes

Versions: 28

Compression:

Stored size: 860 Bytes

Contents

$LOAD_PATH << 'lib'
require 'oniguruma' if RUBY_VERSION < '1.9.0'
require 'language_sniffer'
gem 'plist'
require 'plist'
gem 'textpow1x'
require 'textpow'
gem 'ultraviolet1x'
require 'uv'

file = ARGV[0]
text = File.read(file)
language = LanguageSniffer.detect(file).language

require 'ruco/syntax_parser'
require 'ruco/array_processor'
t = Time.now.to_f
Ruco::SyntaxParser.syntax_for_lines(text.split("\n"), [language.name.downcase, language.lexer])
Ruco::SyntaxParser.syntax_for_lines(text.split("\n"), [language.name.downcase, language.lexer])
Ruco::SyntaxParser.syntax_for_lines(text.split("\n"), [language.name.downcase, language.lexer])
Ruco::SyntaxParser.syntax_for_lines(text.split("\n"), [language.name.downcase, language.lexer])
Ruco::SyntaxParser.syntax_for_lines(text.split("\n"), [language.name.downcase, language.lexer])
puts (Time.now.to_f - t)

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ruco-0.2.16 playground/benchmark_syntax_parser.rb
ruco-0.2.15 playground/benchmark_syntax_parser.rb
ruco-0.2.14 playground/benchmark_syntax_parser.rb
ruco-0.2.13 playground/benchmark_syntax_parser.rb
ruco-0.2.12 playground/benchmark_syntax_parser.rb
ruco-0.2.11 playground/benchmark_syntax_parser.rb
ruco-0.2.10 playground/benchmark_syntax_parser.rb
ruco-0.2.9 playground/benchmark_syntax_parser.rb
ruco-0.2.8 playground/benchmark_syntax_parser.rb
ruco-0.2.7 playground/benchmark_syntax_parser.rb
ruco-0.2.6 playground/benchmark_syntax_parser.rb
ruco-0.2.5 playground/benchmark_syntax_parser.rb
ruco-0.2.4 playground/benchmark_syntax_parser.rb
ruco-0.2.3 playground/benchmark_syntax_parser.rb
ruco-0.2.2 playground/benchmark_syntax_parser.rb
ruco-0.2.1 playground/benchmark_syntax_parser.rb
ruco-0.2.0 playground/benchmark_syntax_parser.rb
ruco-0.2.0.beta12 playground/benchmark_syntax_parser.rb
ruco-0.2.0.beta11 playground/benchmark_syntax_parser.rb
ruco-0.2.0.beta10 playground/benchmark_syntax_parser.rb