Skip to content

Instantly share code, notes, and snippets.

@korny
Last active December 19, 2015 17:29
Show Gist options
  • Save korny/5992006 to your computer and use it in GitHub Desktop.
Save korny/5992006 to your computer and use it in GitHub Desktop.
CodeRay scanning / highlighting speed
$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]
$ ruby test/scanners/suite.rb | grep Average
Average speed for C scanner: 2997 kB/s scanning / 1315 kB/s highlighting to HTML page.
Average speed for Clojure scanner: 3103 kB/s scanning / 1051 kB/s highlighting to HTML page.
Average speed for C++ scanner: 4761 kB/s scanning / 1180 kB/s highlighting to HTML page.
Average speed for CSS scanner: 3160 kB/s scanning / 1494 kB/s highlighting to HTML page.
Average speed for Delphi scanner: 2865 kB/s scanning / 991 kB/s highlighting to HTML page.
Average speed for diff output scanner: 1433 kB/s scanning / 668 kB/s highlighting to HTML page.
Average speed for Go scanner: 5671 kB/s scanning / 1622 kB/s highlighting to HTML page.
Average speed for Groovy scanner: 2978 kB/s scanning / 1401 kB/s highlighting to HTML page.
Average speed for HAML Template scanner: 1482 kB/s scanning / 407 kB/s highlighting to HTML page.
Average speed for HTML scanner: 3108 kB/s scanning / 695 kB/s highlighting to HTML page.
Average speed for Java scanner: 3855 kB/s scanning / 1718 kB/s highlighting to HTML page.
Average speed for JavaScript scanner: 2466 kB/s scanning / 1125 kB/s highlighting to HTML page.
Average speed for JSON scanner: 5117 kB/s scanning / 752 kB/s highlighting to HTML page.
Average speed for Lua scanner: 1419 kB/s scanning / 627 kB/s highlighting to HTML page.
Average speed for PHP scanner: 2552 kB/s scanning / 1256 kB/s highlighting to HTML page.
Average speed for Python scanner: 3069 kB/s scanning / 981 kB/s highlighting to HTML page.
Average speed for CodeRay Token Dump scanner: 6648 kB/s scanning / 969 kB/s highlighting to HTML page.
Average speed for Ruby scanner: 2924 kB/s scanning / 1525 kB/s highlighting to HTML page.
Average speed for Sass scanner: 1538 kB/s scanning / 954 kB/s highlighting to HTML page.
Average speed for SQL scanner: 3433 kB/s scanning / 1131 kB/s highlighting to HTML page.
Average speed for XML scanner: 3157 kB/s scanning / 1002 kB/s highlighting to HTML page.
Average speed for YAML scanner: 2125 kB/s scanning / 1170 kB/s highlighting to HTML page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment