This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= BEFORE = | |
jruby ../snippets/unpack1.rb | |
Ignoring bcrypt-ruby-3.0.0-java because its extensions are not built. Try: gem pristine bcrypt-ruby --version 3.0.0 | |
Warming up -------------------------------------- | |
unpack m short 6.479k i/100ms | |
unpack1 m short 9.154k i/100ms | |
unpack m long 22.000 i/100ms | |
unpack1 m long 23.000 i/100ms | |
Calculating ------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int next = safeGet(format); | |
if (next == 'm') { | |
byte[] src = encodedString.getUnsafeBytes(); | |
int length = src.length*3/4; | |
byte[] dest = new byte[length]; | |
int index = Base64.getDecoder().decode(src, dest); | |
return runtime.newArray(runtime.newString(new ByteList(dest, 0, index, ASCII, false))); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p Java::Util | |
module Java | |
module Java | |
class Foo | |
end | |
module Util | |
class Bar | |
end | |
class HashMap | |
Foo = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p Java::Util | |
module Java | |
module Util | |
class Foo | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'includes :line event when event is not specified' do | |
event_name = nil | |
TracePoint.new() { |tp| $stderr.puts "EN: #{tp.event}"; event_name = tp.event }.enable do | |
$stderr.puts "AAAAAAAA.1 #{event_name}" | |
event_name.should equal(:line) | |
event_name = nil | |
TracePointSpec.test | |
$stderr.puts "AAAAAAAA.2 #{event_name}" | |
event_name.should equal(:line) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TracePoint.trace { |tp| puts tp.inspect } # 1 | |
class Foo | |
def to_ary | |
proc { [1,2] }.call | |
end | |
end | |
proc { |a,| }.call(Foo.new) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Rakefile b/Rakefile | |
index 2bd2499f..9e36cb96 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -1,3 +1,29 @@ | |
+# Common usage | |
+# | |
+# rake build:adapters - to build all specific adapter gems and the base gem | |
+# rake release:do - build:adapters + git tag + push gems | |
+# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,4689 | |
2,2389 | |
3,2141 | |
4,3286 | |
5,2059 | |
6,2263 | |
7,1874 | |
8,2041 | |
9,1388 | |
10,1509 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system ~/work/jruby (9.2.7.0) 1155% time jruby --dev -S gem list >output 2>&1 | |
real 0m5.405s | |
user 0m7.731s | |
sys 0m0.399s | |
system ~/work/jruby (9.2.7.0) 1156% time jruby --dev -S gem list >output 2>&1 | |
real 0m5.507s | |
user 0m7.873s | |
sys 0m0.395s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system ~/work/jruby (9.2.7.0) 1242% time jruby -S gem list >/dev/null 2>&1 | |
real 0m8.199s | |
user 0m32.067s | |
sys 0m0.579s | |
system ~/work/jruby (9.2.7.0) 1243% time jruby -S gem list >/dev/null 2>&1 | |
real 0m8.302s | |
user 0m32.462s | |
sys 0m0.636s |