GC occurs at the worst time in tight loop (Garbage Collection)

Did you give Julia a hint?

–heap-size-hint