Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Nov 11, 2023
1 parent d5e84e7 commit 1b0f04a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
20 changes: 12 additions & 8 deletions example/benchmark_insert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ def statement
end

Benchmark.ips do |x|
x.warmup = 1
x.time = 2
BenchmarkCassandra.new.run_execute(x)
BenchmarkCassandra.new.run_execute_async(x)
end
Expand All @@ -143,6 +145,8 @@ def statement

puts ''
Benchmark.ips do |x|
x.warmup = 1
x.time = 2
BenchmarkIlios.new.run_execute(x)
BenchmarkIlios.new.run_execute_async(x)
end
Expand All @@ -157,19 +161,19 @@ def statement
## Results
Warming up --------------------------------------
cassandra-driver:execute
304.000 i/100ms
344.000 i/100ms
cassandra-driver:execute_async
3.679k i/100ms
2.771k i/100ms
Calculating -------------------------------------
cassandra-driver:execute
3.332k34.1%) i/s - 10.032k in 5.040480s
2.685k45.2%) i/s - 3.096k in 2.043627s
cassandra-driver:execute_async
34.484k26.6%) i/s - 150.839k in 5.003236s
34.770k28.9%) i/s - 60.962k in 2.030142s
Warming up --------------------------------------
ilios:execute 457.000 i/100ms
ilios:execute_async 17.478k i/100ms
ilios:execute 449.000 i/100ms
ilios:execute_async 14.783k i/100ms
Calculating -------------------------------------
ilios:execute 4.622k (± 1.6%) i/s - 23.307k in 5.044216s
ilios:execute_async 167.010k 3.4%) i/s - 838.944k in 5.029271s
ilios:execute 4.626k (± 1.9%) i/s - 9.429k in 2.038940s
ilios:execute_async 130.974k36.4%) i/s - 221.745k in 2.015077s
=end
20 changes: 12 additions & 8 deletions example/benchmark_select.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ def statement
end

Benchmark.ips do |x|
x.warmup = 1
x.time = 2
BenchmarkCassandra.new.run_execute(x)
BenchmarkCassandra.new.run_execute_async(x)
end
Expand All @@ -125,6 +127,8 @@ def statement

puts ''
Benchmark.ips do |x|
x.warmup = 1
x.time = 2
BenchmarkIlios.new.run_execute(x)
BenchmarkIlios.new.run_execute_async(x)
end
Expand All @@ -139,19 +143,19 @@ def statement
## Results
Warming up --------------------------------------
cassandra-driver:execute
13.000 i/100ms
10.000 i/100ms
cassandra-driver:execute_async
7.621k i/100ms
3.684k i/100ms
Calculating -------------------------------------
cassandra-driver:execute
48.62720.6%) i/s - 247.000 in 5.301501s
48.11522.9%) i/s - 100.000 in 2.183978s
cassandra-driver:execute_async
77.896k31.4%) i/s - 304.840k in 5.063101s
78.647k30.0%) i/s - 117.888k in 2.014176s
Warming up --------------------------------------
ilios:execute 15.000 i/100ms
ilios:execute_async 10.000 i/100ms
ilios:execute 9.000 i/100ms
ilios:execute_async 26.000 i/100ms
Calculating -------------------------------------
ilios:execute 166.764 (±28.2%) i/s - 735.000 in 5.135326s
ilios:execute_async 539.420k24.4%) i/s - 90.870k in 5.656643s
ilios:execute 168.780 (±28.4%) i/s - 288.000 in 2.029783s
ilios:execute_async 453.181k32.9%) i/s - 10.660k in 3.549510s
=end

0 comments on commit 1b0f04a

Please sign in to comment.