분류 전체보기 (2) 썸네일형 리스트형 [Kotlin] 기본자료형과 변수선언 코틀린의 기본자료형 Integers 코틀린에는 4가지 integer 타입이 있습니다. 각 타입은 고정된 비트 수를 저장할 수 있습니다. Type Bits Value range Byte 8 bits -128 ~ 127 Short 16 bits -32768 ~ 32767 Int 32 bits -2147483648 ~ 2147483647 Long 64 bits -huge ~ huge-1 Floating points 코틀린에는 2가지 Floating points 타입이 있습니다. Type Bits Float 32 bits Double 64 bits Booleans 코틀린에는 Boolean 타입이 있습니다. Boolean 타입 객체는 true나 false 두 가지 상태만을 가질 수 있습니다. Character a.. [JAVA] 마이크로벤치마크(Microbenchmarks) 마이크로벤치마크(Microbenchmarks)란? 성능 테스트(Benchmarking)의 방식 중 하나입니다 매우 작은 단위의 성능을 테스트하기 위해 고안되었습니다 작은 단위의 업무나 특정 알고리즘의 간접적인 처리시간(overhead)를 구합니다 기본적인 마이크로벤치마킹 방법 public class Microbenchmark { public static void main(String[] args) { Microbenchmark mb = new Microbenchmark(); mb.microTest(); } public void microTest(){ long result; long start = System.currentTimeMillis(); //단위업무 시작시간 for(int i = 0 ; i < 2.. 이전 1 다음