Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SmallBank benchmark implementation #45

Merged
merged 32 commits into from
Aug 16, 2021
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d2fc30b
Add sample client_properties.json
supl Aug 2, 2021
db6bc2c
Add contracts of smallbank
supl Aug 2, 2021
7f05b5c
Add script to register contracts for smallbank
supl Aug 2, 2021
463dacf
Create smallbank-loader
supl Aug 3, 2021
0bda6f9
Implement smallbank-bench
supl Aug 4, 2021
03b5888
Revise
supl Aug 4, 2021
0ab37c0
Remove --trace-warning runtime option
supl Aug 4, 2021
5ae9dfb
client_properties.json -> client.properties.json
supl Aug 4, 2021
a1eaa52
Proper name
supl Aug 4, 2021
f85a694
Revise error message
supl Aug 4, 2021
9c1f0b2
Use atomic
supl Aug 4, 2021
ef9b439
Shift 1
supl Aug 4, 2021
97f7e51
BigInt
supl Aug 4, 2021
5e43be8
thread -> concurrency
supl Aug 6, 2021
c7654a3
Revise usage print
supl Aug 6, 2021
34944db
Add README.md
supl Aug 6, 2021
6491897
Revise
supl Aug 11, 2021
e939227
Rename
supl Aug 12, 2021
4659def
Revise smallbank-loader
supl Aug 12, 2021
c7130c4
Executable
supl Aug 12, 2021
946f33b
Remove unused comment
supl Aug 12, 2021
55eaecf
Remove unused pool
supl Aug 12, 2021
d7ff119
Handle working directory
supl Aug 13, 2021
308a15c
Bugfix
supl Aug 13, 2021
63a399c
properties is mandatory without any default value
supl Aug 13, 2021
6cb6467
Ramp up time can be 0
supl Aug 13, 2021
2585851
Use properties-parser package
supl Aug 15, 2021
511d618
Add util to parse Scalar DL client.properties
supl Aug 15, 2021
4a61d2b
Add client.properties
supl Aug 15, 2021
9c7d88a
Use client.properties
supl Aug 15, 2021
44d2987
Revise README.md
supl Aug 15, 2021
ce605ad
Remove client.properties.json
supl Aug 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add script to register contracts for smallbank
supl committed Aug 2, 2021
commit 7f05b5ca48d15c23e7c3f5ea56a084d6c31d9f9e
49 changes: 49 additions & 0 deletions benchmark/create_contracts_smallbank
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/usr/bin/env node --trace-warnings

const fs = require('fs');
const properties = JSON.parse(
fs.readFileSync('client_properties.json', 'utf8'),
);

const {ClientService} = require('../');
const clientService = new ClientService(properties);

(async () => {
await clientService.registerCertificate();
await clientService.registerContract(
'amalgamate',
'com.example.contract.smallbank.Amalgamate',
fs.readFileSync('contracts/Amalgamate.class'),
{properties: ''},
);
await clientService.registerContract(
'create_account',
'com.example.contract.smallbank.CreateAccount',
fs.readFileSync('contracts/CreateAccount.class'),
{properties: ''},
);
await clientService.registerContract(
'deposit_checking',
'com.example.contract.smallbank.DepositChecking',
fs.readFileSync('contracts/DepositChecking.class'),
{properties: ''},
);
await clientService.registerContract(
'send_payment',
'com.example.contract.smallbank.SendPayment',
fs.readFileSync('contracts/SendPayment.class'),
{properties: ''},
);
await clientService.registerContract(
'transact_savings',
'com.example.contract.smallbank.TransactSavings',
fs.readFileSync('contracts/TransactSavings.class'),
{properties: ''},
);
await clientService.registerContract(
'write_check',
'com.example.contract.smallbank.WriteCheck',
fs.readFileSync('contracts/WriteCheck.class'),
{properties: ''},
);
})();