1. 일반
  2. C/C++
  3. 미디어
  4. 팁 & 테크
[레벨:8]ljh131
2007.10.21 18:13
저는 상현님처럼 어마어마한 차이는 안나네요.
vs2005 릴리즈 모드에서 길이 866의 문자열을 천만번 돌렸을 때 다음과 같이 나옵니다.
단위는 ms입니다.

unicode, dll
elpased time of strlen: 3763
elapsed time of strlen32: 3744

multibyte, dll
elpased time of strlen: 3776
elapsed time of strlen32: 3737

unicode, static
elpased time of strlen: 3765
elapsed time of strlen32: 3726

multibyte, static
elpased time of strlen: 3759
elapsed time of strlen32: 3725

릴리즈에서 최적화 하느라 코드를 무시해버리는 문제 때문에 result를 더했는데 그 부분에서 영향을 미쳤으려나요?
문서 첨부 제한 : 0Byte/ 2.00MB
파일 제한 크기 : 2.00MB (허용 확장자 : *.*)