README.md in graphql-idl-parser-0.1.0 vs README.md in graphql-idl-parser-0.1.1
- old
+ new
@@ -23,13 +23,30 @@
## Usage
``` ruby
# feed it a file
-parser = GraphQL::IDLParser.new(filename: contents)
+parser = GraphQL::IDLParser.new(filename: filename)
# or feed it a string
parser = GraphQL::IDLParser.new(schema: contents)
# execute!
results = parser.process
+```
+
+## Benchmarks
+
+Check it out with `bundle exec rake benchmark`:
+
+```
+Warming up --------------------------------------
+ pure ruby 1.000 i/100ms
+ this gem 7.000 i/100ms
+Calculating -------------------------------------
+ pure ruby 6.527 (± 0.0%) i/s - 33.000 in 5.082540s
+ this gem 73.511 (± 5.4%) i/s - 371.000 in 5.064868s
+
+Comparison:
+ this gem : 73.5 i/s
+ pure ruby: 6.5 i/s - 11.26x slower
```