mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Split GEN x2 and G23 paths to eliminate AES hot-path overhead
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
This commit is contained in:
parent
6a786a42b6
commit
2a7b8e19d4
10 changed files with 5344 additions and 1001 deletions
|
|
@ -232,12 +232,7 @@ void speed_gen(int nd, void **v, int size, int delta, int period, const char *ms
|
|||
printf("%8s", raid_gen_tag(RAID_ALGO_CAUCHY_PAR2));
|
||||
fflush(stdout);
|
||||
|
||||
SPEED_START {
|
||||
raid_gen2_int8(nd, size, v);
|
||||
} SPEED_STOP
|
||||
|
||||
printf("%8" PRIu64, ds / dt);
|
||||
fflush(stdout);
|
||||
printf("%8s", "");
|
||||
|
||||
if (mode == RAID_MODE_CAUCHY_AES) {
|
||||
SPEED_START {
|
||||
|
|
@ -742,15 +737,17 @@ void speed_gen(int nd, void **v, int size, int delta, int period, const char *ms
|
|||
#endif
|
||||
}
|
||||
if (raid_cpu_has_ssse3()) {
|
||||
if (mode == RAID_MODE_CAUCHY_RAID) {
|
||||
if (mode == RAID_MODE_CAUCHY_AES) {
|
||||
SPEED_START {
|
||||
raid_gen5_ssse3_aes(nd, size, v);
|
||||
} SPEED_STOP
|
||||
} else {
|
||||
SPEED_START {
|
||||
raid_gen5_ssse3_raid(nd, size, v);
|
||||
} SPEED_STOP
|
||||
|
||||
printf("%8" PRIu64, ds / dt);
|
||||
} else {
|
||||
printf("%8s", "");
|
||||
}
|
||||
|
||||
printf("%8" PRIu64, ds / dt);
|
||||
fflush(stdout);
|
||||
#ifdef CONFIG_X86_64
|
||||
if (mode == RAID_MODE_CAUCHY_AES) {
|
||||
|
|
@ -881,15 +878,17 @@ void speed_gen(int nd, void **v, int size, int delta, int period, const char *ms
|
|||
#endif
|
||||
}
|
||||
if (raid_cpu_has_ssse3()) {
|
||||
if (mode == RAID_MODE_CAUCHY_RAID) {
|
||||
if (mode == RAID_MODE_CAUCHY_AES) {
|
||||
SPEED_START {
|
||||
raid_gen6_ssse3_aes(nd, size, v);
|
||||
} SPEED_STOP
|
||||
} else {
|
||||
SPEED_START {
|
||||
raid_gen6_ssse3_raid(nd, size, v);
|
||||
} SPEED_STOP
|
||||
|
||||
printf("%8" PRIu64, ds / dt);
|
||||
} else {
|
||||
printf("%8s", "");
|
||||
}
|
||||
|
||||
printf("%8" PRIu64, ds / dt);
|
||||
fflush(stdout);
|
||||
#ifdef CONFIG_X86_64
|
||||
if (mode == RAID_MODE_CAUCHY_AES) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue