Skip to content

Commit

Permalink
cb/tiny.md: Added stock_history size
Browse files Browse the repository at this point in the history
  • Loading branch information
hishidama committed Jul 31, 2023
1 parent a958b86 commit 923fb9f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
4 changes: 2 additions & 2 deletions java/cost-accounting-benchmark/src/dist/cb/large1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
| item_construction_master | 1,376,045 | 182,000 | R | |
| item_manufacturing_master | 160,017 | 16,000 | R | |
| cost_master | 3,000,000 | 339,000 | R | |
| stock_history | 3,000,000 | TODO | - | 在庫履歴の追加1回分 |
| stock_history | 3,000,000 | 451,000 | - | 在庫履歴の追加1回分 |
| result_table | 1,758,662 | 140,000 | CD | 全件削除全件登録 |
| 合計 | 8,094,807 | 1,197,048 | | |
| 合計 | 11,094,807 | 1,648,048 | | |


4 changes: 2 additions & 2 deletions java/cost-accounting-benchmark/src/dist/cb/large10.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
| item_construction_master | 13,757,911 | 1,837,000 | R | |
| item_manufacturing_master | 1,600,175 | 178,000 | R | |
| cost_master | 30,000,000 | 3,407,000 | R | |
| stock_history | 30,000,000 | TODO | - | 在庫履歴の追加1回分 |
| stock_history | 30,000,000 | 4,654,000 | - | 在庫履歴の追加1回分 |
| result_table | 17,595,413 | 4,102,000 | CD | 全件削除全件登録 |
| 合計 | 80,953,582 | 12,044,048 | | |
| 合計 | 110,953,582 | 16,698,048 | | |


4 changes: 2 additions & 2 deletions java/cost-accounting-benchmark/src/dist/cb/large50.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
| item_construction_master | 68,790,600 | 9,112,000 | R | |
| item_manufacturing_master | 8,000,432 | 901,000 | R | |
| cost_master | 150,000,000 | 16,000,000 | R | |
| stock_history | 150,000,000 | TODO | - | 在庫履歴の追加1回分 |
| stock_history | 150,000,000 | 23,000,000 | - | 在庫履歴の追加1回分 |
| result_table | 88,072,778 | 34,000,000 | CD | 全件削除全件登録 |
| 合計 | 404,863,893 | 72,013,048 | | |
| 合計 | 554,863,893 | 95,013,048 | | |


4 changes: 2 additions & 2 deletions java/cost-accounting-benchmark/src/dist/cb/medium.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
| item_construction_master | 1,058,510 | 140,000 | R | |
| item_manufacturing_master | 95,957 | 10,008 | R | |
| cost_master | 2,250,000 | 256,000 | R | |
| stock_history | 2,250,000 | TODO | - | 在庫履歴の追加1回分 |
| stock_history | 2,250,000 | 333,000 | - | 在庫履歴の追加1回分 |
| result_table | 1,054,748 | 244,000 | CD | 全件削除全件登録 |
| 合計 | 5,794,298 | 835,056 | | |
| 合計 | 8,044,298 | 1,168,056 | | |


4 changes: 2 additions & 2 deletions java/cost-accounting-benchmark/src/dist/cb/small.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
| item_construction_master | 683,117 | 91,000 | R | |
| item_manufacturing_master | 32,116 | 3,320 | R | |
| cost_master | 2,250,000 | 256,000 | R | |
| stock_history | 2,250,000 | TODO | - | 在庫履歴の追加1回分 |
| stock_history | 2,250,000 | 336,000 | - | 在庫履歴の追加1回分 |
| result_table | 356,130 | 80,000 | CD | 全件削除全件登録 |
| 合計 | 4,356,446 | 577,368 | | |
| 合計 | 6,606,446 | 913,368 | | |


4 changes: 2 additions & 2 deletions java/cost-accounting-benchmark/src/dist/cb/tiny.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
| item_construction_master | 785 | 128 | R | |
| item_manufacturing_master | 3,030 | 320 | R | |
| cost_master | 9,000 | 944 | R | |
| stock_history | 9,000 | TODO | - | 在庫履歴の追加1回分 |
| stock_history | 9,000 | 1384 | - | 在庫履歴の追加1回分 |
| result_table | 34,704 | 7,384 | CD | 全件削除全件登録 |
| 合計 | 49,402 | 9,096 | | |
| 合計 | 58,402 | 10,480 | | |


Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.tsurugidb.benchmark.costaccounting.db.entity.CostMaster;
import com.tsurugidb.benchmark.costaccounting.db.entity.StockHistory;
import com.tsurugidb.benchmark.costaccounting.init.InitialData;
import com.tsurugidb.benchmark.costaccounting.online.OnlineConfig;
import com.tsurugidb.benchmark.costaccounting.util.BenchConst;
import com.tsurugidb.iceaxe.transaction.manager.TgTmSetting;
import com.tsurugidb.iceaxe.transaction.option.TgTxOption;
Expand Down Expand Up @@ -214,7 +215,10 @@ public void close() {
public static void main(String... args) {
try (var task = new BenchPeriodicUpdateStockTask(0); //
CostBenchDbManager manager = createCostBenchDbManagerForTest()) {
task.setDao(null, manager);
var config = new OnlineConfig(InitialData.DEFAULT_BATCH_DATE);
config.setTxOption(TASK_NAME, "LTX");
task.setDao(config, manager);
task.initializeSetting();

List<Integer> factoryList = List.of();
if (0 < args.length) {
Expand All @@ -227,7 +231,7 @@ public static void main(String... args) {
}
LOG.info("factoryList={}", StringUtil.toString(factoryList));

task.initialize(factoryList, InitialData.DEFAULT_BATCH_DATE);
task.initialize(factoryList, config.getBatchDate());

LOG.info("start");
long start = System.currentTimeMillis();
Expand Down

0 comments on commit 923fb9f

Please sign in to comment.