2023-11-01 03:32:09 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-03-22 10:28:44 +00:00
|
|
|
# Copyright (c) 2023-2024 Status Research & Development GmbH. Licensed under
|
2023-11-01 03:32:09 +00:00
|
|
|
# either of:
|
|
|
|
# - Apache License, version 2.0
|
|
|
|
# - MIT license
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except
|
|
|
|
# according to those terms.
|
|
|
|
|
eth: bump (#2308)
* eth: bump
Speed up basic operations like hashing and creating RLP:s - up to 25%
improvement in certain block ranges!
```
876729c.csv /data/nimbus_stats/stats-20240605_2204-ed4f6221.csv
stats-20240605_2000-c876729c.csv vs stats-20240605_2204-ed4f6221.csv
bps_x bps_y tps_x tps_y bpsd tpsd timed
block_number
(500001, 888889] 1,017.72 996.07 1,784.96 1742.438676 -2.72% -2.72% 3.31%
(888889, 1277778] 528.00 536.30 2,159.79 2198.781046 1.69% 1.69% -1.44%
(1277778, 1666667] 324.29 317.78 2,064.48 2008.106377 -2.82% -2.82% 3.33%
(1666667, 2055556] 253.87 258.74 1,840.94 1872.935273 1.67% 1.67% -1.39%
(2055556, 2444445] 175.79 178.66 1,340.61 1363.248939 0.93% 0.93% -0.74%
(2444445, 2833334] 137.27 159.74 958.75 1113.323757 14.24% 14.24% -10.69%
(2833334, 3222223] 170.48 228.63 1,272.70 1704.047195 34.41% 34.41% -25.17%
(3222223, 3611112] 127.49 125.48 1,572.39 1548.835791 -1.19% -1.19% 1.47%
(3611112, 4000001] 37.25 40.42 1,100.65 1184.740493 9.58% 9.58% -7.04%
blocks: 3501696, baseline: 11h59m40s, contender: 11h21m38s
bpsd (mean): 6.18%
tpsd (mean): 6.18%
Time (sum): -38m1s, -4.26%
bpsd = blocks per sec diff (+), tpsd = txs per sec diff, timed = time to process diff (-)
+ = more is better, - = less is better
```
* ignore gitignore
2024-06-06 23:39:09 +00:00
|
|
|
excluded_files="config.yaml|.gitmodules|.gitignore"
|
2024-06-06 12:38:58 +00:00
|
|
|
excluded_extensions="json|md|png|txt|toml|gz|key|rlp|era1|cfg|py|sh"
|
2023-11-01 03:32:09 +00:00
|
|
|
|
|
|
|
current_year=$(date +"%Y")
|
|
|
|
outdated_files=()
|
|
|
|
while read -r file; do
|
|
|
|
if ! grep -qE 'Copyright \(c\) .*'$current_year' Status Research & Development GmbH' "$file"; then
|
|
|
|
outdated_files+=("$file")
|
|
|
|
fi
|
|
|
|
done < <(git diff --name-only --diff-filter=AM --ignore-submodules HEAD^ HEAD | grep -vE '(\.('$excluded_extensions')|'$excluded_files')$' || true)
|
|
|
|
|
|
|
|
if (( ${#outdated_files[@]} )); then
|
|
|
|
echo "The following files do not have an up-to-date copyright year:"
|
|
|
|
for file in "${outdated_files[@]}"; do
|
|
|
|
echo "- $file"
|
|
|
|
done
|
|
|
|
exit 2
|
|
|
|
fi
|