Skip to content

Instantly share code, notes, and snippets.

@jairojunior
Created April 28, 2015 01:22
Show Gist options
  • Select an option

  • Save jairojunior/071a5256abeb1d39e54a to your computer and use it in GitHub Desktop.

Select an option

Save jairojunior/071a5256abeb1d39e54a to your computer and use it in GitHub Desktop.
archive benchmark
#HTTP checksum 12s in the second run
archive { '/tmp/hawtio-web-1.4.36.war':
ensure => present,
extract => false,
extract_path => '/tmp',
source => 'https://oss.sonatype.org/service/local/artifact/maven/content?g=io.hawt&a=hawtio-web&v=1.4.36&p=war&r=releases',
checksum_url => 'http://oss.sonatype.org/service/local/artifact/maven/content?g=io.hawt&a=hawtio-web&v=1.4.36&p=war.md5&r=releases',
checksum_type => 'md5',
}
#HTTPS checksum 6s in the second run
archive { '/tmp/hawtio-web-1.4.36.war':
ensure => present,
extract => false,
extract_path => '/tmp',
source => 'https://oss.sonatype.org/service/local/artifact/maven/content?g=io.hawt&a=hawtio-web&v=1.4.36&p=war&r=releases',
checksum_url => 'https://oss.sonatype.org/service/local/artifact/maven/content?g=io.hawt&a=hawtio-web&v=1.4.36&p=war.md5&r=releases',
checksum_type => 'md5',
}
#Hardcoded checksum 0.4s
archive { '/tmp/hawtio-web-1.4.36.war':
ensure => present,
extract => false,
extract_path => '/tmp',
source => 'https://oss.sonatype.org/service/local/artifact/maven/content?g=io.hawt&a=hawtio-web&v=1.4.36&p=war&r=releases',
checksum => 'ee9bb866260ff1ce7ae55f71e7de4f70',
checksum_type => 'md5',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment