Skip to content

Instantly share code, notes, and snippets.

@garybernhardt
Last active August 29, 2015 14:01
Show Gist options
  • Save garybernhardt/b465d3d248b58e26a6f6 to your computer and use it in GitHub Desktop.
Save garybernhardt/b465d3d248b58e26a6f6 to your computer and use it in GitHub Desktop.
bench "paths", :without_gc => true, :gc_time => true do
PATHS[0, 1000].each { |choice| Score.score(choice, "x" * 16) }
end
Output:
...!.!.!.!..............................................
filtering paths
Before: | --X----------------------- |
After: | ---------X-------------------------|
0 14.1
filtering paths (GC Disabled)
Before: | -X---------------- |
After: | --X---------------------------------|
0 14.6
filtering paths (GC Time)
Before: | ----X------ |
After: | ---X----------------|
0 0.00161
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment