Rakefile in lorekeeper-1.4.1 vs Rakefile in lorekeeper-1.5.0
- old
+ new
@@ -46,9 +46,16 @@
contents = 'This is a test, this is only a test. Do not worry about these contents.'
long_contents = contents * 100
log = create_logger
simple_log = create_simple_logger
+ Benchmark.ips do |bm|
+ bm.report('short content') { Time.now }
+ bm.report('Logger short content') { Time.now.utc }
+ bm.report('long content') { Time.now.strftime('%FT%T.%6NZ') }
+ bm.report('Logger long content') { Time.now.utc.strftime('%FT%T.%6NZ') }
+ bm.compare!
+ end
Benchmark.ips do |bm|
bm.report('short content') { log.error(contents) }
bm.report('Logger short content') { simple_log.info(contents) }
bm.report('long content') { log.info(long_contents) }