Skip to content

Instantly share code, notes, and snippets.

View oldmoe's full-sized avatar
💭
Slowly getting back to coding

Mohammad A. Ali oldmoe

💭
Slowly getting back to coding
View GitHub Profile
@oldmoe
oldmoe / benchmark.rb
Created April 19, 2025 02:53
Oj vs JSON vs Msgpack vs CBOR benchmark
require 'oj'
require 'json'
require 'msgpack'
require 'cbor'
require 'benchmark/ips'
RubyVM::YJIT.enable
mpacker = MessagePack::Packer.new