Skip to content

Instantly share code, notes, and snippets.

@gerjantd
Created May 26, 2014 16:57
Show Gist options
  • Save gerjantd/6a7541dfde33c7bea89b to your computer and use it in GitHub Desktop.
Save gerjantd/6a7541dfde33c7bea89b to your computer and use it in GitHub Desktop.
Groovy: simple loop to generate some web server load
groovy -e 'for (i in 1..10) { u = "http://www.rivm.nl/carma?i=${i}"; println "${u}"; println "-".multiply(80); println "${u.toURL().text}" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment