Skip to content

Instantly share code, notes, and snippets.

View ijuma's full-sized avatar

Ismael Juma ijuma

View GitHub Profile
@ijuma
ijuma / gist:3972753
Created October 29, 2012 10:15
SBT hang with forked tests
Exception in thread "Thread-18" Exception in thread "main" java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2571)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1315)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at sbt.ForkTests$$anonfun$apply$2$Acceptor$2$.react$1(ForkTests.scala:52)
at sbt.ForkTests$$anonfun$apply$2$Acceptor$2$.react$1(ForkTests.scala:66)
at sbt.ForkTests$$anonfun$apply$2$Acceptor$2$.react$1(ForkTests.scala:56)
at sbt.ForkTests$$anonfun$apply$2$Acceptor$2$.react$1(ForkTests.scala:56)
at sbt.ForkTests$$anonfun$apply$2$Acceptor$2$.react$1(ForkTests.scala:56)
at sbt.ForkTests$$anonfun$apply$2$Acceptor$2$.react$1(ForkTests.scala:56)
@ijuma
ijuma / fastMathPerformance
Created February 23, 2011 06:37
StrictMath vs FastMath vs Math
Intel Core i7 CPU 860 2.80GHz
Running org.apache.commons.math.util.FastMathTestPerformance
Name StrictMath FastMath Math Runs=10000000 Java 1.6.0_25-ea (1.6.0_25-ea-b01) Java HotSpot(TM) 64-Bit Server VM (20.0-b08)
log 71 1.0 39 0.5555 21 0.2953
log10 94 1.0 108 1.1466 20 0.2174
log1p 74 1.0 103 1.3986 76 1.0269
pow 244 1.0 140 0.5726 238 0.9752
powII 159 1.0 120 0.7582 149 0.9415
exp 53 1.0 26 0.4959 39 0.7323