Kouhei Sutou
null+****@clear*****
Sun May 4 23:13:09 JST 2014
Kouhei Sutou 2014-05-04 23:13:09 +0900 (Sun, 04 May 2014) New Revision: 6f560d64dc1d6e8af4b40429adcefbf0eaa619d9 https://github.com/ranguba/rroonga/commit/6f560d64dc1d6e8af4b40429adcefbf0eaa619d9 Message: Remove needless script Removed files: run-benchmark.sh Modified files: .travis.yml Modified: .travis.yml (+0 -2) =================================================================== --- .travis.yml 2014-05-04 23:01:11 +0900 (8eed610) +++ .travis.yml 2014-05-04 23:13:09 +0900 (a687229) @@ -12,5 +12,3 @@ rvm: # - rvm: 2.1.0 before_install: - curl --silent --location https://github.com/groonga/groonga/raw/master/data/travis/setup.sh | sh -after_script: - - bundle exec ./run-benchmark.sh Deleted: run-benchmark.sh (+0 -51) 100755 =================================================================== --- run-benchmark.sh 2014-05-04 23:01:11 +0900 (edfec13) +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -cat <<EOF > column-benchmark.rb -# -*- coding: utf-8 -*- -require 'benchmark' -require 'groonga' - -def measure(try) - n = 50000 - - puts try - table = Groonga[:Test] - Benchmark.bm(12) do |x| - x.report('empty loop') do - n.times { } - end - x.report('column:') do - n.times { table.column('col') } - end - x.report('columns:') do - n.times { table.columns('col') } - end - x.report('have_column?') do - n.times { table.have_column?('col') } - end - end -end - -path = './test-table-column.db' -database = Groonga::Database.create(:path => path) -table = Groonga::Array.create(:name => 'Test') -table.define_column('col', 'ShortText') - -puts 'immediate after column created' -measure '1st' -measure '2nd' - -puts '----' - -database.close -database = Groonga::Database.open(path) - -puts 'after close/open' -measure '1st' -measure '2nd' - -table.remove -database.remove -EOF - -ruby -I lib -I ext/groogna column-benchmark.rb -------------- next part -------------- HTML����������������������������...Download