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