My Recent Pastes (891 and counting)
Pastes by headius (891 and counting)
Below are the 15 most recent pasties by headius.
October 09, 2008
3:56PM EDT
by headius
View all 116 lines
## bench_send.rb require 'benchmark' class Foo def foo; self; end
October 09, 2008
3:36PM EDT
by headius
View all 18 lines
## JRuby 1.1.4
user system total real
1m foo calls 2.503000 0.000000 2.503000 ( 2.502973)
1m send :foo 4.828000 0.000000 4.828000 ( 4.827949)
1m send 'foo' 4.966000 0.000000 4.966000 ( 4.965629)
October 07, 2008
4:00PM EDT
by headius
View all 20 lines
diff --git a/src/org/jruby/java/invokers/RubyToJavaInvoker.java b/src/org/jruby/java/invokers/RubyToJavaInvoker.java index 7dedb88..02d4829 100644 --- a/src/org/jruby/java/invokers/RubyToJavaInvoker.java +++ b/src/org/jruby/java/invokers/RubyToJavaInvoker.java @@ -4,6 +4,7 @@ import org.jruby.javasupport.*;
October 06, 2008
4:55PM EDT
by headius
View all 106 lines
000 N3274: # B1 <- BLOCK HEAD IS JUNK Freq: 10000
000 CMP EAX,[ECX+4] # Inline cache check
JNE SharedRuntime::handle_ic_miss_stub
NOP
NOP
October 06, 2008
4:42PM EDT
by headius
View all 101 lines
- klass: {other class}
- method holder: 'org/jruby/RubyFixnum'
- constants: 0x06b82a64{constant pool}
- access: 0x81000001 public
- name: '<init>'
October 06, 2008
4:18PM EDT
by headius
View all 18 lines
0ea B21: # B111 B22 <- B20 Freq: 9999.87
0ea PUSH [ESP + #148]
POP [ESP + #60]
0f5 MOV [ESP + #148],EDX
0fc MOV EBP,[EDI + #8] ! Field org/jruby/runtime/CallSite.methodName
October 06, 2008
1:57PM EDT
by headius
View all 6 lines
457 CALL,static org.jruby.RubyFixnum::<init>
# org.jruby.RubyFixnum::newFixnum @ bci:25 L[0]=_ L[1]=_ L[2]=_ STK[0]=esp + #20
# org.jruby.RubyFixnum::subtractFixnum @ bci:39 L[0]=_ L[1]=_ L[2]=_ L[3]=_ L[4]=_ L[5]=_ L[6]=_
# org.jruby.RubyFixnum::op_minus @ bci:13 L[0]=_ L[1]=_ L[2]=_
# org.jruby.test.bench.BenchFixnumFibRecursive::boxedFib @ bci:28 L[0]=esp + #36 L[1]=esp + #24 STK[0]=esp + #36
October 06, 2008
1:51PM EDT
by headius
abababab N1: # B1 <- B752 B751 B750 B436 B608 B434 B435 B747 B746 B745 B744 B619 B602 B444 B439 B438 B437 B742 B741 B740 B739 B450 B627 B448 B449 B737 B736 B735 B734 B620 B458 B453 B452 B451 B732 B731 B730 B729 B464 B628 B462 B463 B727 B726 B725 B724 B433 B472 B467 B466 B465 B722 B721 B719 B718 B613 B483 B478 B477 B476 B716 B715 B713 B711 B710 B709 B708 B601 B495 B490 B489 B488 B706 B705 B704 B703 B501 B592 B499 B500 B701 B700 B699 B698 B603 B509 B504 B503 B502 B696 B695 B693 B692 B622 B520 B515 B514 B513 B690 B689 B687 B685 B684 B682 B681 B680 B679 B630 B614 B532 B527 B526 B525 B677 B676 B675 B674 B538 B631 B536 B537 B672 B671 B670 B669 B624 B546 B541 B540 B539 B667 B666 B665 B664 B552 B590 B550 B551 B662 B661 B660 B659 B749 B560 B555 B554 B553 B657 B656 B654 B653 B616 B571 B566 B565 B564 B651 B650 B648 B646 B645 B644 B643 B617 B583 B578 B577 B576 B641 B640 B639 B638 B589 B591 B587 B588 B636 B635 B634 B633 B625 B597 Freq: 10000 abababab
October 05, 2008
2:42PM EDT
by headius
View all 16 lines
094 B10: # B16 <- B9 Freq: 8981.96
094 MOV EBP.lo,[ESI + #40]
MOV EBP.hi,[ESI + #40]+4 ! Field org/jruby/RubyFixnum.value
09a MOV ESI,EBX
09c MOV ECX.lo,[ESI + #40]
October 03, 2008
8:30PM EDT
by headius
View all 96 lines
## code procs = [proc {}] bench_1 = proc { 1000000.times {
October 03, 2008
7:15PM EDT
by headius
View all 186 lines
diff --git a/src/org/jruby/compiler/impl/StandardInvocationCompiler.java b/src/org/jruby/compiler/impl/StandardInvocationCompiler.java index 5a64695..ff7340d 100644 --- a/src/org/jruby/compiler/impl/StandardInvocationCompiler.java +++ b/src/org/jruby/compiler/impl/StandardInvocationCompiler.java @@ -36,6 +36,8 @@ import org.jruby.runtime.CallSite;
October 02, 2008
1:17PM EDT
by headius
View all 21 lines
public boolean smartLoad(final String file) {
checkEmptyLoad(file);
SearchState state = new SearchState(file);
September 23, 2008
2:42PM EDT
by headius
View all 13 lines
~/projects/jruby ➔ ruby -rubygems -rbenchmark -e "require 'activerecord'; 5.times { puts Benchmark.measure { 100.times { ObjectSpace.each_object(Class) {|c| } } } }" 0.890000 0.010000 0.900000 ( 0.969958) 0.890000 0.010000 0.900000 ( 0.980614) 0.900000 0.010000 0.910000 ( 0.981848) 0.890000 0.010000 0.900000 ( 1.056299)
September 22, 2008
1:01AM EDT
by headius
View all 26 lines
~/projects/rbx_cpp ➔ ruby -S rake run_ruby[bench_fib_recursive.rb] (in /Users/headius/projects/rbx_cpp) Compiling bench_fib_recursive.rb vm/vm bench_fib_recursive.rbc vm(1851) malloc: *** error for object 0x1322200: incorrect checksum for freed object - object was probably modified after being freed.
September 14, 2008
12:57AM EDT
by headius
View all 80 lines
## before, constant access triggers heap scope ~/NetBeansProjects/jruby ➔ jruby --server bench_fib_recursive.rb 10 0.903000 0.000000 0.903000 ( 0.902921) 0.477000 0.000000 0.477000 ( 0.477733) 0.450000 0.000000 0.450000 ( 0.450443)