Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
476 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
CocoaneticsBench/CocoaneticsBench.xcdatamodeld/CocoaneticsBench.xcdatamodel/contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<model name="Test1.xcdatamodel" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="1" systemVersion="11A491" minimumToolsVersion="Automatic" macOSVersion="Automatic" iOSVersion="Automatic"> | ||
<model name="" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="562" systemVersion="11C48" minimumToolsVersion="Automatic" macOSVersion="Automatic" iOSVersion="Automatic"> | ||
<entity name="Event"> | ||
<attribute name="deviceModel" optional="YES" attributeType="String"/> | ||
<attribute name="durationDecompress" optional="YES" attributeType="Double" defaultValueString="0.0"/> | ||
<attribute name="durationInitImage" optional="YES" attributeType="Double" defaultValueString="0.0"/> | ||
<attribute name="imageCompressionFactor" optional="YES" attributeType="Float" defaultValueString="0.0"/> | ||
<attribute name="imageFileFormat" optional="YES" attributeType="String"/> | ||
<attribute name="imageHeight" optional="YES" attributeType="Float" defaultValueString="0.0"/> | ||
<attribute name="imageWidth" optional="YES" attributeType="Float" defaultValueString="0.0"/> | ||
<attribute name="osVersion" optional="YES" attributeType="String"/> | ||
<attribute name="timeStamp" optional="YES" attributeType="Date"/> | ||
</entity> | ||
<elements> | ||
<element name="Event" positionX="261" positionY="189" width="128" height="60"/> | ||
<element name="Event" positionX="261" positionY="189" width="128" height="180"/> | ||
</elements> | ||
</model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// ImageBenchmark.h | ||
// CocoaneticsBench | ||
// | ||
// Created by Oliver Drobnik on 9/30/11. | ||
// Copyright 2011 Cocoanetics. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface ImageBenchmark : NSObject | ||
{ | ||
NSString *_imageName; | ||
NSString *_path; | ||
NSString *_internalOverrideSourcePath; | ||
|
||
CGFloat _quality; | ||
NSString *_mode; | ||
|
||
|
||
NSTimeInterval _timeForInit; | ||
NSTimeInterval _timeForDecompress; | ||
NSTimeInterval _timeForDraw; | ||
|
||
BOOL _didRun; | ||
} | ||
|
||
- (id)initWithCrushedPNGNamed:(NSString *)imageName; | ||
|
||
- (void)prepareAsCrushedPNG; | ||
- (void)prepareAsUncrushedPNG; | ||
- (void)prepareAsJPEGSourceWithQuality:(CGFloat)quality; | ||
|
||
|
||
- (void)run; | ||
|
||
@end | ||
|
||
CGContextRef newBitmapContextSuitableForSize(CGSize size); |
Oops, something went wrong.