Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. configuration.addCompilationCustomizers(
  2. new ASTTransformationCustomizer(CompileStatic))
  3.  
  4. withConfig(configuration) {
  5. ast(groovy.transform.CompileStatic)
  6. }
  7.  
  8. import groovy.transform.CompileStatic
  9.  
  10.  
  11. @CompileStatic
  12. void loop() {
  13. def d1 = new Date();
  14.  
  15. int[] t = new int[32*1024*1024]
  16. (0 .. 32*1024*1024-1).each {
  17. it -> t[it] = it
  18. }
  19.  
  20. def d2 = new Date();
  21.  
  22. println d2.getTime() - d1.getTime()
  23. }
  24.  
  25. loop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement