Sha256: df2e628289219de2aef5bda52200642fa9846c21dba8b82cb323176536f36965

Contents?: true

Size: 508 Bytes

Versions: 21

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'duckdb'
require 'benchmark/ips'

db = DuckDB::Database.open
con = db.connect
con.query('CREATE TABLE hugeints (hugeint_value HUGEINT)')
con.query('INSERT INTO hugeints VALUES (123456789012345678901234567890123456789)')
result = con.query('SELECT hugeint_value FROM hugeints')

Benchmark.ips do |x|
  x.report('_to_hugeint') { result.send(:_to_hugeint, 0, 0) }
  x.report('_to_hugeint_internal') { result.send(:_to_hugeint_internal, 0, 0) }
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
duckdb-1.0.0.2 benchmark/to_hugeint_ips.rb
duckdb-1.0.0.1 benchmark/to_hugeint_ips.rb
duckdb-1.0.0.0 benchmark/to_hugeint_ips.rb
duckdb-0.10.2.0 benchmark/to_hugeint_ips.rb
duckdb-0.10.1.1 benchmark/to_hugeint_ips.rb
duckdb-0.10.1.0 benchmark/to_hugeint_ips.rb
duckdb-0.10.0.0 benchmark/to_hugeint_ips.rb
duckdb-0.9.2.3 benchmark/to_hugeint_ips.rb
duckdb-0.9.2.2 benchmark/to_hugeint_ips.rb
duckdb-0.9.2.1 benchmark/to_hugeint_ips.rb
duckdb-0.9.2 benchmark/to_hugeint_ips.rb
duckdb-0.9.1.2 benchmark/to_hugeint_ips.rb
duckdb-0.9.1.1 benchmark/to_hugeint_ips.rb
duckdb-0.9.1 benchmark/to_hugeint_ips.rb
duckdb-0.9.0.1 benchmark/to_hugeint_ips.rb
duckdb-0.9.0 benchmark/to_hugeint_ips.rb
duckdb-0.8.1.3 benchmark/to_hugeint_ips.rb
duckdb-0.8.1.2 benchmark/to_hugeint_ips.rb
duckdb-0.8.1.1 benchmark/to_hugeint_ips.rb
duckdb-0.8.1 benchmark/to_hugeint_ips.rb