Update benchmarks

This commit is contained in:
Minseong Jang
2025-06-13 15:19:21 +09:00
parent 49410f5264
commit 1aa18bce30
11 changed files with 201 additions and 193 deletions

View File

@@ -1,24 +1,24 @@
int two_dimension_array_arr[100];
int two_dimension_array(int n, int nonce) {
if (!(n <= 100)) {
return nonce;
}
for (int i = 0; i < n; ++i) {
two_dimension_array_arr[i] = i + nonce;
}
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
two_dimension_array_arr[i] += two_dimension_array_arr[j];
if (!(n <= 100)) {
return nonce;
}
}
int result = 0;
for (int i = 0; i < n; ++i) {
result += two_dimension_array_arr[i];
}
for (int i = 0; i < n; ++i) {
two_dimension_array_arr[i] = i + nonce;
}
return result;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
two_dimension_array_arr[i] ^= two_dimension_array_arr[j];
}
}
int result = 0;
for (int i = 0; i < n; ++i) {
result += two_dimension_array_arr[i];
}
return result;
}