diff options
author | Ed Heyl <edheyl@google.com> | 2014-07-14 23:03:36 -0700 |
---|---|---|
committer | Ed Heyl <edheyl@google.com> | 2014-07-14 23:03:36 -0700 |
commit | 7fdd2c384f5b419e360017ffe640af1246123534 (patch) | |
tree | c580bdc140a89e25021be28cb86153fdc07619ed /benchmarks | |
parent | 4712ed1beef51839910098a4db1e4eb933d4d517 (diff) | |
download | libcore-7fdd2c384f5b419e360017ffe640af1246123534.zip libcore-7fdd2c384f5b419e360017ffe640af1246123534.tar.gz libcore-7fdd2c384f5b419e360017ffe640af1246123534.tar.bz2 |
reconcile aosp (86eae8dd1e7405394f0e9efe1252575ef9a9674c) after branching. Please do not merge.
Change-Id: Iae444b6b2840916ef9a4d0962a55a74f650bd5a5
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/src/benchmarks/regression/SSLSocketFactoryBenchmark.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/benchmarks/src/benchmarks/regression/SSLSocketFactoryBenchmark.java b/benchmarks/src/benchmarks/regression/SSLSocketFactoryBenchmark.java new file mode 100644 index 0000000..d0448d6 --- /dev/null +++ b/benchmarks/src/benchmarks/regression/SSLSocketFactoryBenchmark.java @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package benchmarks.regression; + +import com.google.caliper.Param; +import com.google.caliper.SimpleBenchmark; +import javax.net.ssl.SSLSocketFactory; + +public class SSLSocketFactoryBenchmark extends SimpleBenchmark { + public void time(int reps) throws Exception { + for (int i = 0; i < reps; ++i) { + SSLSocketFactory.getDefault(); + } + } +} |