US 12,135,640 B2
General blockchain performance evaluation method based on dynamic proxy and smart contract
Xiulong Liu, Tianjin (CN); Liyuan Ma, Tianjin (CN); Chenyu Zhang, Tianjin (CN); Yuhan Li, Tianjin (CN); and Keqiu Li, Tianjin (CN)
Assigned to TIANJIN UNIVERSITY, Tianjin (CN)
Filed by Tianjin University, Tianjin (CN)
Filed on Dec. 22, 2023, as Appl. No. 18/395,155.
Claims priority of application No. 202211709268.3 (CN), filed on Dec. 29, 2022.
Prior Publication US 2024/0220404 A1, Jul. 4, 2024
Int. Cl. G06F 11/36 (2006.01); G06F 11/34 (2006.01)
CPC G06F 11/3692 (2013.01) [G06F 11/3414 (2013.01); G06F 11/3684 (2013.01)] 6 Claims
OG exemplary drawing
 
1. A method of detecting performance of general blockchain based on a dynamic proxy and a smart contract, comprising following steps processed on a computer:
calling, a driver component in an adapter, automated scripts to complete a node configuration and deployment of a chain to be tested defined by a client-side, and
designing a layer-by-layer common abstraction interacting with different chains to be tested and encapsulated proxy server network interfaces through a dynamic proxy technology;
obtaining a general hierarchical test workload, and obtaining an environmental test result of the chain system to be tested based on the proxy server network interface and the general hierarchical test workload;
executing the smart contract for obtaining a workload test execution result based on the proxy server network interface and the environmental test result;
wherein the obtaining the environmental test result of the chain system to be tested based on the proxy server network interface and the general hierarchical test workload comprises:
calling, a workload connector in the adapter, a predefined general hierarchical test workload in the client-side;
interacting the general hierarchical test workload with a proxy server, inputting the general hierarchical test workload into an environment of the chain system to be tested in a form of a script field or the smart contract based on the proxy server network interface, and
obtaining the environmental test result of the chain system to be tested; and
carrying out a multi-dimensional evaluation on the workload test execution result to complete a blockchain performance evaluation;
wherein the obtaining the workload test execution result based on the proxy server network interface and the environmental test result comprises:
wherein the proxy server network interface comprises a data query interface and a log query interface;
polling and carrying out log pulling against the environmental test result based on the data query interface and the log query interface to obtain the workload test execution result;
wherein the polling and carrying out log pulling against the environmental test result based on the data query interface and the log query interface to obtain the workload test execution result comprises:
polling the environmental test result based on the data query interface to obtain an on-chain data state;
calling a monitor program to obtain a resource usage of a node execution environment based on the environmental test result;
carrying out log pulling against the environmental test result to obtain process log information based on the log query interface; and
summarizing the on-chain data state, the resource usage of the node execution environment and the process log information to obtain a workload test execution result.