Obsolete
/
ipcd
Archived
3
0
Fork 0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
ipcd/tests/performances/puts.cr

19 lines
283 B
Crystal
Raw Normal View History

2020-02-04 02:06:13 +01:00
require "benchmark"
require "ipc"
message = IPC::Message.from_json(%({ "mtype" : 3, "utype" : 30, "payload" : "coucou" }))
Benchmark.ips do |bm|
bm.report("puts") do
puts "coucou"
end
bm.report("puts vide") do
puts
end
bm.report("pp! message") do
pp! message
end
end