From 6f2b7624cf0efe87fb7ea0a2570e90987dafd781 Mon Sep 17 00:00:00 2001 From: Gary Murakami Date: Tue, 24 Apr 2012 12:35:33 -0400 Subject: [PATCH] performance graphing and profiling improvements --- Gemfile | 1 + Rakefile | 10 ++++++++++ bench/exp_series.html | 8 +++----- bench/profile_array.rb | 26 ++++++++++++++++++++------ 4 files changed, 34 insertions(+), 11 deletions(-) diff --git a/Gemfile b/Gemfile index 2c12bbe..79f6d80 100644 --- a/Gemfile +++ b/Gemfile @@ -17,6 +17,7 @@ group :development, :test do gem "ci_reporter" gem "ruby-prof" unless RUBY_PLATFORM =~ /java/ gem "perftools.rb" unless RUBY_PLATFORM =~ /java/ + gem "rake-compiler" # Java platforms :jruby do diff --git a/Rakefile b/Rakefile index cf75565..547474d 100644 --- a/Rakefile +++ b/Rakefile @@ -7,6 +7,8 @@ end require 'fileutils' require 'rake/testtask' require 'rake' +require 'rake/extensiontask' +require 'rake/javaextensiontask' begin require 'git' @@ -20,6 +22,14 @@ end ENV['TEST_MODE'] = 'TRUE' +Rake::ExtensionTask.new('cbson') do |ext| + ext.lib_dir = "lib/bson_ext" +end + +#Rake::JavaExtensionTask.new('jbson') do |ext| # not yet functional +# ext.ext_dir = 'ext/src/org/jbson' +#end + task :java do Rake::Task['build:java'].invoke Rake::Task['test:ruby'].invoke diff --git a/bench/exp_series.html b/bench/exp_series.html index 72675e1..a2b9fb0 100644 --- a/bench/exp_series.html +++ b/bench/exp_series.html @@ -25,7 +25,7 @@

Exp Series Performance Tests

x-axis is power of 2, log base 2 of size
y-axis is operations per user-time CPU-second
- Note that this is not operations per real-time second that includes DB real-time
+ Note that this is not operations per real-time second that include DB real-time