a11y.skipToMainContent
1

벤치 마크 빌더

Configurable iterations 및 옵션 설정 코드로 두 개의 JavaScript 스니펫과 벤치 마크를 붙여줍니다.

Was this tool helpful?
Send output to:
Advertisement

How to use Benchmark Builder

  1. Paste JavaScript 코드로 Snippet A와 Snippet B.
  2. 선택적으로 공유 설정 코드를 추가하고 반복을 조정합니다.
  3. Run Benchmark를 클릭하여 성능을 비교하십시오.

벤치마크 빌더은 무엇입니까?

A benchmark builder는 ops/sec 메트릭과 시각적인 비교 막대기를 가진 상대적인 성과를 보여주는 많은 이들의 2개의 자바스크립트 코드 스니펫의 실행 시간을 측정합니다. 개발자는 알고리즘, 데이터 구조 작업 및 라이브러리 성능을 비교하기 위해 이것을 사용합니다.

Uses high-resolution performance.now() 타이밍. 설정 필드는 두 개의 스니펫 공유를 정의 할 수 있습니다.

Advertisement

FAQ

결과가 신뢰할 수 있습니까?
결과가 표시되지 않습니다. JIT 컴파일, 쓰레기 수집, 브라우저 상태는 타이밍에 영향을 미칠 수 있습니다. 자신감을 위해 여러 번 실행하십시오.
설정 필드에 넣어야 하나요?
Snippets가 필요한 모든 코드 - 변수 선언, 데이터 생성 등 벤치 마크 루프 전에 한 번 실행합니다.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement