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
package com.avenuecode.snippet; | |
import org.openjdk.jmh.annotations.Benchmark; | |
public class MyBenchmark { | |
@Benchmark | |
public void testMethod() { | |
// This is a demo/sample template for building your JMH benchmarks. Edit as needed. | |
// Put your benchmark code here. |
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
mvn archetype:generate \ | |
-DinteractiveMode=false \ | |
-DarchetypeGroupId=org.openjdk.jmh \ | |
-DarchetypeArtifactId=jmh-java-benchmark-archetype \ | |
-DgroupId=com.avenuecode.snippet \ | |
-DartifactId=first-benchmark \ | |
-Dversion=1.0 \ |
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
#!/usr/bin/python | |
import urllib2 | |
import re | |
import ssl | |
import sys | |
# # find generic mirrors | |
mirrors = urllib2.urlopen('http://www.debian.org/mirror/list') | |
https = [] |
NewerOlder