미리 정의 된 템플릿에서 메시지를 준비해야한다는 요구 사항이 있습니다. 구축 할 시스템은 초당 100 개의 메시지를 준비합니다. 그래서 내가이 시장에서 사용할 수있는 여러 템플릿 프레임 워크 천 메시지를 순차적으로 구축 할 수있는 프로그램을 작성했습니다템플릿 프레임 워크 벤치 마크
내가이 성능 테스트에 사용한-String template
-Mustache template
-Thymeleaf template
-Rythm template
-Pebble template
-handler template
템플릿은 여러 일부 로직을 포함하는 경우/다른, 및 대체 문 .
순차적으로 1000 개의 메시지를 준비합니다. 이것들의 최종 결과는 다음과 같습니다.
String template - 40 seconds
Mustache template - 2 seconds
Thymeleaf template - 15 seconds
Rythm template - 2 seconds
Pebble template - 4 seconds
Handler template - 7 seconds
나는 Rythm 템플릿이 다른 모든 템플릿 프레임 워크를 때렸다 고 생각합니다.
Rythm 템플릿에 대한 여러분의 생각을 알려주세요. 그것을 사용하는 데에는 단점이 있습니까?
제외하고 IDE 통합이 없습니다 비트 지방