我已经完成了使用Jmeter在我的应用程序上运行的示例。日志文件的末尾看起来像这样:
INFO o.a.j.r.Summariser: summary + 24267 in 00:00:18 = 1363.7/s Avg: 0 Min: 0 Max: 11 Err: 0 (0.00%) Active: 0 Started: 1 Finished: 1
INFO o.a.j.r.Summariser: summary = 795647 in 00:10:10 = 1304.1/s Avg: 0 Min: 0 Max: 1003 Err: 0 (0.00%)
为什么有2个摘要?我该使用哪一个?
答案 0 :(得分:0)
带有METHODS compose_range_from_itab
IMPORTING
IM_ITAB type ANY TABLE
IM_COMPONENT type STRING
EXPORTING
EX_RANGE type PIQ_SELOPT_T.
...
METHOD compose_range_from_itab.
DATA: lo_obj TYPE REF TO cl_abap_tabledescr,
wa_range TYPE selopt,
lt_range TYPE piq_selopt_t.
FIELD-SYMBOLS: <fs_line> TYPE ANY,
<fs_component> TYPE ANY.
lo_obj ?= cl_abap_typedescr=>describe_by_data( p_data = im_itab ).
READ TABLE lo_obj->key TRANSPORTING NO FIELDS WITH KEY name = im_component.
IF sy-subrc IS INITIAL.
IF LINES( im_itab ) GT 0.
LOOP AT im_itab ASSIGNING <fs_line>.
ASSIGN COMPONENT im_component OF STRUCTURE <fs_line> TO <fs_component>.
wa_range-sign = 'I'.
wa_range-option = 'EQ'.
wa_range-low = <fs_component>.
APPEND wa_range TO lt_range.
ENDLOOP.
SORT lt_range BY low.
DELETE ADJACENT DUPLICATES FROM lt_range COMPARING low.
ex_range[] = lt_range[].
ENDIF.
ENDIF.
ENDMETHOD.
的第一行是最新执行,而带有append corresponding fields of im_itab into new_line_type_internal_table.
的第二行是整体执行摘要。
即
如果使用单个http请求运行具有100个线程的负载,则第一行将在每次迭代时显示summary +
,并加上累加的summary =
+100
并且经过10次迭代后的总体摘要为summary +
1000个采样器。
如果要监视实时性能,则应使用第一个。