# JMH version: 1.21
# VM version: JDK 1.8.0_131, Java HotSpot(TM) 64-Bit Server VM, 25.131-b11
# VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/bin/java
# VM options: -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=50091:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8
# Warmup: 3 iterations, 10 s each
# Measurement: 10 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 8 threads, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: co.speedar.infra.JmhByUserService.testGetBaseUserInfo
# Run progress: 0.00% complete, ETA 00:04:20
# Fork: 1 of 1
objc[5822]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/bin/java (0x1072c64c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10733c4e0). One of the two will be used. Which one is undefined.
# Warmup Iteration 1: 23.168 ±(99.9%) 0.499 ms/op
# Warmup Iteration 2: 30.436 ±(99.9%) 0.327 ms/op
# Warmup Iteration 3: 24.817 ±(99.9%) 0.252 ms/op
Iteration 1: 23.209 ±(99.9%) 0.136 ms/op
Iteration 2: 25.345 ±(99.9%) 0.202 ms/op
Iteration 3: 24.625 ±(99.9%) 0.117 ms/op
Iteration 4: 25.249 ±(99.9%) 0.262 ms/op
Iteration 5: 25.351 ±(99.9%) 0.234 ms/op
Iteration 6: 25.588 ±(99.9%) 0.091 ms/op
Iteration 7: 25.380 ±(99.9%) 0.189 ms/op
Iteration 8: 24.204 ±(99.9%) 0.230 ms/op
Iteration 9: 24.308 ±(99.9%) 0.145 ms/op
Iteration 10: 23.958 ±(99.9%) 0.142 ms/op
Result "co.speedar.infra.JmhByUserService.testGetBaseUserInfo":
24.722 ±(99.9%) 1.189 ms/op [Average]
(min, avg, max) = (23.209, 24.722, 25.588), stdev = 0.786
CI (99.9%): [23.533, 25.911] (assumes normal distribution)
# JMH version: 1.21
# VM version: JDK 1.8.0_131, Java HotSpot(TM) 64-Bit Server VM, 25.131-b11
# VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/bin/java
# VM options: -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=50091:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8
# Warmup: 3 iterations, 10 s each
# Measurement: 10 iterations, 10 s each
# Timeout: 10 min per iteration
# Threads: 8 threads, will synchronize iterations
# Benchmark mode: Average time, time/op
# Benchmark: co.speedar.infra.JmhByUserService.testStringAdd
# Run progress: 50.00% complete, ETA 00:02:13
# Fork: 1 of 1
objc[5835]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/bin/java (0x1077e14c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x108fff4e0). One of the two will be used. Which one is undefined.
# Warmup Iteration 1: 9.161 ±(99.9%) 0.145 ms/op
# Warmup Iteration 2: 7.669 ±(99.9%) 0.035 ms/op
# Warmup Iteration 3: 7.951 ±(99.9%) 0.034 ms/op
Iteration 1: 7.144 ±(99.9%) 0.024 ms/op
Iteration 2: 7.340 ±(99.9%) 0.060 ms/op
Iteration 3: 7.233 ±(99.9%) 0.027 ms/op
Iteration 4: 7.746 ±(99.9%) 0.063 ms/op
Iteration 5: 7.162 ±(99.9%) 0.029 ms/op
Iteration 6: 6.929 ±(99.9%) 0.023 ms/op
Iteration 7: 7.078 ±(99.9%) 0.042 ms/op
Iteration 8: 6.443 ±(99.9%) 0.039 ms/op
Iteration 9: 6.645 ±(99.9%) 0.019 ms/op
Iteration 10: 6.867 ±(99.9%) 0.021 ms/op
Result "co.speedar.infra.JmhByUserService.testStringAdd":
7.059 ±(99.9%) 0.553 ms/op [Average]
(min, avg, max) = (6.443, 7.059, 7.746), stdev = 0.366
CI (99.9%): [6.506, 7.612] (assumes normal distribution)
# Run complete. Total time: 00:04:27
REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on
why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial
experiments, perform baseline and negative tests that provide experimental control, make sure
the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts.
Do not assume the numbers tell you what you want them to tell.
Benchmark Mode Cnt Score Error Units
JmhByUserService.testGetBaseUserInfo avgt 10 24.722 ± 1.189 ms/op
JmhByUserService.testStringAdd avgt 10 7.059 ± 0.553 ms/op
#!/bin/bash
#
# Script to start LVS DR real server.
# description: LVS DR real server
#
#. /etc/rc.d/init.d/functions
VIP=10.10.6.252
host='/bin/hostname'
case "$1" in
sta
大多数java开发者使用的都是eclipse,今天感兴趣去eclipse官网搜了一下eclipse.ini的配置,供大家参考,我会把关键的部分给大家用中文解释一下。还是推荐有问题不会直接搜谷歌,看官方文档,这样我们会知道问题的真面目是什么,对问题也有一个全面清晰的认识。
Overview
1、Eclipse.ini的作用
Eclipse startup is controlled by th
import java.util.Arrays;
/**
* 最早是在陈利人老师的微博看到这道题:
* #面试题#An array with n elements which is K most sorted,就是每个element的初始位置和它最终的排序后的位置的距离不超过常数K
* 设计一个排序算法。It should be faster than O(n*lgn)。
原网页被墙,放这里备用。 MySQLdb User's Guide
Contents
Introduction
Installation
_mysql
MySQL C API translation
MySQL C API function mapping
Some _mysql examples
MySQLdb