I hereby claim:
- I am pd on github.
- I am pd (https://keybase.io/pd) on keybase.
- I have a public key ASCAInw0XoV-EBb31ilHLmST9jfq84TBV-T06XS-XnJtVAo
To claim this, I am signing this object:
# Don't use bundle. Run from your api_auth checkout. | |
# | |
# ENV: | |
# V = {local, gem} | |
# use an installed gem, or the current working dir | |
# M = {bench, object, cpu, wall} | |
# run benchmark/ips, or choose to profile object allocations or cpu cost | |
require 'benchmark/ips' | |
require 'pry' |
require 'benchmark/ips' | |
SYM = :magic_key | |
MYS = :key_magic | |
STR = 'magic_key' | |
RTS = 'key_magic' | |
Benchmark.ips do |x| | |
x.config(time: 2, warmup: 1) |
class A | |
def hi | |
'hi' | |
end | |
def many(n) | |
1.upto(n) do |i| | |
puts "hi #{i}" | |
end | |
end |
Using worker: worker-linux-docker-25563cc4.prod.travis-ci.org:travis-linux-8 | |
Build system information | |
Build language: ruby | |
$ git clone --depth=50 git://github.com/ruby-json-schema/json-schema.git ruby-json-schema/json-schema | |
Cloning into 'ruby-json-schema/json-schema'... | |
remote: Counting objects: 2030, done. | |
remote: Compressing objects: 100% (797/797), done. | |
remote: Total 2030 (delta 1301), reused 1897 (delta 1187) |
def kw(a: 0); end | |
N = Integer(ARGV[0]) rescue 250_000 | |
N.times { kw } |
I hereby claim:
To claim this, I am signing this object:
require 'json-schema' | |
require 'digest/sha1' | |
require 'benchmark' | |
N = 5000 | |
SCHEMAS = Dir['test/schemas/*.json'].map { |f| File.read(f) } | |
Benchmark.bmbm do |x| | |
x.report('v5') do | |
N.times do |
# https://github.com/hoxworth/json-schema/issues/96 | |
require 'json-schema' | |
schema = { | |
:type => :object, | |
:required => [ | |
:id, | |
:name, | |
:real_name, |
$ npm i esprima falafel | |
$ node sib.js | node | |
{ '4': [ [ 2, 'big' ], [ 2, 'big' ] ], | |
'8': [ [ 6, 'little' ] ], | |
'11': [ [ 11, 'big' ], [ 11, 'little' ] ] } |
puzzle 0 solved in 111ms | |
puzzle 1 solved in 387ms | |
puzzle 2 solved in 403ms | |
puzzle 3 solved in 18174ms | |
puzzle 4 solved in 5284ms | |
puzzle 5 solved in 59081ms | |
puzzle 6 solved in 17535ms | |
puzzle 7 solved in 240ms | |
puzzle 8 solved in 13946ms | |
puzzle 9 solved in 19302ms |