Skip to content

Instantly share code, notes, and snippets.

@rdp
rdp / gist:447325
Created June 21, 2010 19:10
mysql rails benchmarks
C:\dev\ruby\old\ruby-benchmark-suite\benchmarks\rails>ruby -r ..\..\utils\fake_bench.rb bm_substruct_request_root.rb
database appears initialized
Warming up once
GET /
9705 ms, 1 requests, 0 req/sec
Benchmarking 1x
.
18 ms, 1 requests, 55 req/sec
C:\dev\ruby\old\ruby-benchmark-suite>rake bench:file FILE=benchmarks/micro-benchmarks/bm_pi.rb VERBOSE=1 VM=ir ITERATIONS=2
(in C:/dev/ruby/old/ruby-benchmark-suite)
Running benchmark benchmarks/micro-benchmarks/bm_pi.rb
Writing report to results/rbs/RBS-ir-100625.144135.yaml
Running bm_pi.rb
ruby C:/dev/ruby/old/ruby-benchmark-suite/utils/timeout2.rb -t 300 ir C:/dev/ruby/old/ruby-benchmark-suite/utils/bench.rb benchmarks/micro-benchmarks/bm_pi.rb 2 C:/dev/ruby/old/ruby-benchmark-suite/results/rbs/RBS-ir-100625.144135.yaml yes
---
name: benchmarks/micro-benchmarks/bm_pi.rb
parameters:
- 1000
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x01b7b7c3, pid=3372, tid=5564
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode, sharing windows-x86 )
# Problematic frame:
# J com.kenai.jffi.Foreign.invokeArrayReturnInt(J[B)I
#
Couldnt find Setting class for textmate setting: spellchecking
Couldnt find Setting class for textmate setting: spellchecking
indent setting without scope! #<Redcar::Textmate::UnIndentedLinePatternSettix1912a56 @plist="^\\s*$", @scope=nil>
*** ERROR in Document controller: <Redcar::AutoIndenter::DocumentController>ArgumentError: negative argument
D:/ruby18/lib/ruby/gems/1.8/gems/redcar-0.3.8dev/plugins/edit_view/lib/edit_/document/indentation.rb:22:in `set_level'
project start took 2.36s
XULRunner path: D:\ruby18\lib\ruby\gems\1.8\gems\redcar-0.3.8dev\vendor\xulrunner\xpcom.dll
Error in command Redcar::PluginManagerUi::OpenCommand
NativeException: org.eclipse.swt.SWTError: XPCOM error -2147467259
org.eclipse.swt.browser.Mozilla:-1:in `error'
org.eclipse.swt.browser.Mozilla:-1:in `create'
org.eclipse.swt.browser.Browser:-1:in `<init>'
sun.reflect.NativeConstructorAccessorImpl:-2:in `newInstance0'
sun.reflect.NativeConstructorAccessorImpl:-1:in `newInstance'
sun.reflect.DelegatingConstructorAccessorImpl:-1:in `newInstance'
Downloading >10MB of jar files. This may take a while.
* Checking JRuby dependencies
copying jcodings.jar...
copying jdom.jar...
copying joni.jar...
copying jruby-complete-1.5.0.jar...
downloading bcmail-jdk14-139.jar... done!
copying bcmail-jdk14-139.jar...
downloading bcprov-jdk14-139.jar... done!
copying bcprov-jdk14-139.jar...
first without a space:
C:\dev\ruby\downloads\vacationManager>\installs\Ruby187\bin\spork --help
Usage: spork [test framework name] [options]
Options:
-b, --bootstrap
-d, --diagnose
-h, --help
-p, --port [PORT]
C:\dev\ruby>ruby-prof load_full_rg.rb
Thread ID: 10125888
Total: 5.412000
%self total self wait child calls name
46.21 2.50 2.50 0.00 0.00 226 <Class::IO>#read
24.80 1.60 1.34 0.00 0.25 224 Gem::Specification#initialize
5.43 1.89 0.29 0.00 1.60 224 Kernel#eval
3.60 0.20 0.20 0.00 0.00 136 <Class::Dir>#[]
2.33 0.15 0.13 0.00 0.03 17 Kernel#require_original_non_prelude(d5)
@rdp
rdp / extra before and after(:all)'s
Created July 21, 2010 01:18
rspec before and after stressor
describe 'ScreenTracker' do
before(:all) do
p 'before all'
end
before do
end
it "can take a regex or string" do
*** ERROR in Document controller: <Redcar::AutoPairer::DocumentController>
NativeException: org.eclipse.jface.text.BadLocationException: null
org/eclipse/jface/text/AbstractDocument.java:1145:in `replace'
org/eclipse/jface/text/AbstractDocument.java:1176:in `replace'
D:/ruby18/lib/ruby/gems/1.8/gems/redcar-0.3.8.1/plugins/edit_view_swt/lib/edit_view_swt/document.rb:58:in `replace'
D:/ruby18/lib/ruby/gems/1.8/gems/redcar-0.3.8.1/plugins/edit_view/lib/edit_view/document.rb:195:in `replace'
D:/ruby18/lib/ruby/gems/1.8/gems/redcar-0.3.8.1/plugins/edit_view/lib/edit_view/document.rb:185:in `delete'
D:/ruby18/lib/ruby/gems/1.8/gems/redcar-0.3.8.1/plugins/auto_pairer/lib/auto_pairer/document_controller.rb:102:in `after_modify'
D:/ruby18/lib/ruby/gems/1.8/gems/redcar-0.3.8.1/plugins/auto_indenter/lib/auto_indenter/document_controller.rb:11:in `disable'
D:/ruby18/lib/ruby/gems/1.8/gems/redcar-0.3.8.1/plugins/auto_pairer/lib/auto_pairer/document_controller.rb:96:in `after_modify'