Skip to content

Instantly share code, notes, and snippets.

View jrlemieux's full-sized avatar

Jacques Lemieux jrlemieux

  • CORE Migration
  • Montréal
View GitHub Profile
@jrlemieux
jrlemieux / Strange.scala
Created January 23, 2012 21:12
Very strange
object Strange {
def fmt(x: Double) = x.formatted("%.2f")
def run(f: => Any) = {
val n = 100000000L
val start = System.nanoTime
var i = 0L
while (i < n) {
f