Skip to content

Commit

Permalink
Remove perf measurement testing
Browse files Browse the repository at this point in the history
  • Loading branch information
zorgiepoo committed Sep 30, 2024
1 parent f490205 commit 30d21ff
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Autoupdate/SUBinaryDeltaApply.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ BOOL applyBinaryDelta(NSString *source, NSString *finalDestination, NSString *pa

progressCallback(1/7.0);

NSDate *beforeHashDate = [NSDate date];

unsigned char beforeHash[BINARY_DELTA_HASH_LENGTH] = {0};
if (!getRawHashOfTreeWithVersion(beforeHash, source, majorDiffVersion)) {
if (verbose) {
Expand All @@ -105,8 +103,6 @@ BOOL applyBinaryDelta(NSString *source, NSString *finalDestination, NSString *pa
return NO;
}

NSLog(@"Before hash took %f seconds", [[NSDate date] timeIntervalSinceDate:beforeHashDate]);

if (memcmp(beforeHash, expectedBeforeHash, BINARY_DELTA_HASH_LENGTH) != 0) {
if (verbose) {
fprintf(stderr, "\n");
Expand Down Expand Up @@ -464,8 +460,6 @@ BOOL applyBinaryDelta(NSString *source, NSString *finalDestination, NSString *pa
fprintf(stderr, "\nVerifying destination...");
}

NSDate *afterHashDate = [NSDate date];

unsigned char afterHash[BINARY_DELTA_HASH_LENGTH] = {0};
if (!getRawHashOfTreeWithVersion(afterHash, finalDestination, majorDiffVersion)) {
if (verbose) {
Expand All @@ -478,8 +472,6 @@ BOOL applyBinaryDelta(NSString *source, NSString *finalDestination, NSString *pa
return NO;
}

NSLog(@"After hash took %f seconds", [[NSDate date] timeIntervalSinceDate:afterHashDate]);

if (memcmp(afterHash, expectedAfterHash, BINARY_DELTA_HASH_LENGTH) != 0) {
if (verbose) {
fprintf(stderr, "\n");
Expand Down

0 comments on commit 30d21ff

Please sign in to comment.