Scalability and Efficiency enhanced based Machine Learning for Hyperledger Fabric and Private Ethereum in Smart Contract Execution
This paper presents a machine learning-enhanced benchmarking workflow that compares Hyperledger Fabric and private Ethereum for smart contract execution, confirming Fabric's superior write performance and Ethereum's query efficiency while identifying specific concurrency failure modes in Fabric and developing predictive models for latency and throughput based on network configurations.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the digital world, a ledger is simply a shared record of transactions, like a bank statement that everyone can see but no single person can secretly alter. For years, companies have looked to a technology called blockchain to build these ledgers, hoping to create systems that are secure, transparent, and fast enough for real business. Two major families of this technology have emerged as the leading choices for private, corporate use. One is a system designed from the ground up for businesses, where a known group of trusted partners runs the network. The other is a modified version of a public system originally built for open, anonymous use, now restricted to a specific group of users. The big question for any company trying to build a new application is simple: which of these two systems will actually work better for their specific needs? The answer depends heavily on what the application is asked to do. If the system needs to constantly check existing records, one platform might be faster. If it needs to constantly change or add new records, the other might win. But knowing the theory is not enough; businesses need hard evidence of how these systems behave when they are pushed to their limits by thousands of users and millions of transactions.
A team of researchers set out to provide that evidence by putting these two systems through a rigorous, side-by-side test. They recreated a realistic banking scenario, building two separate networks on a single computer to ensure a fair comparison. On one side, they deployed the business-focused system, and on the other, they set up the restricted version of the public-style system. They then wrote digital contracts—programs that automatically handle tasks like creating new user accounts, checking balances, issuing money, and transferring funds between users. To see how the systems held up, the researchers sent waves of transactions through both networks. They started with small groups of computers, or "peers," and gradually increased the number to sixteen, simulating a growing network. They also varied the size of the transaction batches, sending anywhere from ten to ten thousand requests at a time. The goal was to measure two things: how many transactions the system could confirm per second, and how long it took for a single request to go from submission to final confirmation.
The results painted a clear picture of a trade-off that depends entirely on the type of work being done. When the task was to write new data or change existing records, the business-focused system proved significantly faster. In tests involving transfers and money issuance, it outperformed the other system by a factor of roughly one and a half to more than eight times, depending on how many computers were in the network. As the network grew larger, the business-focused system maintained its speed, while the other system slowed down considerably. This happened because the business-focused system uses a dedicated process to order transactions, which handles extra computers gracefully. In contrast, the other system relies on a rotation of leaders to agree on the order of transactions, a process that becomes slower and more congested as more computers join the network.
However, the story flipped when the task was simply to read data. When the researchers tested how fast the systems could look up user information without changing anything, the system originally built for public use was the clear winner. It handled read-only queries at a rate of over twelve hundred transactions per second, nearly double the rate of the business-focused system. This suggests that for applications where the primary activity is checking records rather than updating them, the public-style architecture offers a distinct advantage. The researchers also discovered a specific weakness in the business-focused system that had not been highlighted in previous studies. When the system tried to handle complex transfers that involved reading and updating two different accounts at once, it failed completely under certain conditions. This failure happened regardless of how many computers were in the network; the system simply could not handle the conflict when multiple requests tried to change the same accounts simultaneously. This suggests that for complex financial operations involving multiple accounts, the business-focused system may hit a hard ceiling that cannot be solved simply by adding more computers.
To make sense of these complex results, the researchers applied a layer of machine learning, a type of computer program that learns patterns from data. They trained the program on their test results to see if it could predict how fast the systems would run based on the network size and the type of transaction. The program became very good at predicting how long a transaction would take to complete, accurately forecasting delays across different scenarios. However, it struggled to predict the number of transactions the system could handle per second. The researchers found that this was because the speed of the system was not a smooth, steady curve; it was prone to sudden, sharp drops to zero when conflicts occurred. Because the data jumped between success and total failure, the computer program could not find a smooth pattern to follow for speed, though it could still reliably predict the time it took for a successful transaction to finish.
The study concludes that choosing between these two technologies is not a matter of one being universally better than the other. Instead, the right choice depends on the specific nature of the application. If a business needs to process a high volume of complex updates and transfers, the business-focused system is the stronger candidate, provided the operations do not involve conflicting changes to the same accounts. If the application is primarily about retrieving information, the public-style system offers superior speed. The researchers also noted that their tests were run on a single computer, meaning the results represent the best-case scenario for speed and do not account for the delays that would occur if the computers were spread across different physical locations. Nevertheless, the findings offer a concrete, data-driven guide for enterprises trying to decide which digital ledger technology fits their specific needs, moving the conversation beyond theoretical claims to measurable performance.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.