Skip to content

Commit

Permalink
Fix report [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Oct 17, 2021
1 parent 4dec9f2 commit b493d86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-darwin20]

$ bundle exec ruby benchmark/parse_table.rb
Warming up --------------------------------------
RuboCop::Isucon::SqlParser#parse_tables
RuboCop::Isucon::SqlParser.parse_tables
4.966k i/100ms
RuboCop::Isucon::GDA::Client#table_names
87.000 i/100ms
Calculating -------------------------------------
RuboCop::Isucon::SqlParser#parse_tables
RuboCop::Isucon::SqlParser.parse_tables
49.124k (± 0.5%) i/s - 248.300k in 5.054728s
RuboCop::Isucon::GDA::Client#table_names
846.523 (± 1.5%) i/s - 4.263k in 5.037134s
Expand Down
2 changes: 1 addition & 1 deletion benchmark/parse_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@
SQL

Benchmark.ips do |x|
x.report("RuboCop::Isucon::SqlParser#parse_tables") { RuboCop::Isucon::SqlParser.parse_tables(sql) }
x.report("RuboCop::Isucon::SqlParser.parse_tables") { RuboCop::Isucon::SqlParser.parse_tables(sql) }
x.report("RuboCop::Isucon::GDA::Client#table_names") { RuboCop::Isucon::GDA::Client.new(sql).table_names }
end

0 comments on commit b493d86

Please sign in to comment.