Created
April 9, 2013 14:48
-
-
Save jcheype/5346288 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def main(args: Array[String]) { | |
| val kryo = new KryoInjection2(new Output(1024 * 4)) | |
| kryo.register(classOf[String]) | |
| for (_ <- 1 to 100000) { | |
| kryo("toto") | |
| } | |
| Thread.sleep(1000) | |
| start = System.nanoTime() | |
| for (_ <- 1 to 1000){ | |
| val v: Array[Byte] = kryo("toto") | |
| } | |
| println("delay: " + (System.nanoTime() - Main.start)) | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
delay: 23099000