<commit_before>RRBenchmark
=============

    [RRBenchmark benchmark:^(RRBRunner* runner){

      [runner report:@"NSUUID:UUIDString" context:^{
        // Code block 1
        NSString* uid = [[NSUUID UUID] UUIDString];
      }];

      [runner report:@"CFUUIDCreate" context:^{
        // Code block 2
        CFUUIDRef uuid = CFUUIDCreate(nil);
        NSString* uid =  (__bridge NSString*)CFUUIDCreateString(nil, uuid);
        CFRelease(uuid);
      }];

      [runner report:@"ooid" context:^{
        // Code block 3
        // http://sourceforge.net/projects/ooid/
        NSString* uid = [UUID generateV4];
      }];

    } iterations:10000];

![](Documents/images/console-result.png)

Install
=============

- [CocoaPods: The Objective-C Library Manager](http://cocoapods.org/ "CocoaPods: The Objective-C Library Manager")

    # My Beta podspec Repository
    pod repo add laiso https://github.com/laiso/Specs.git beta
    # Add Podfile
    # pod 'RRBenchmark'
    pod install


Acknowledgements
=============

- [keithpitt/DKBenchmark](https://github.com/keithpitt/DKBenchmark "keithpitt/DKBenchmark · GitHub")
- [soffes/json-benchmarks](https://github.com/soffes/json-benchmarks "soffes/json-benchmarks · GitHub")<commit_msg>Update md format.<commit_after>RRBenchmark
=============

```objc
    [RRBenchmark benchmark:^(RRBRunner* runner){

      [runner report:@"NSUUID:UUIDString" context:^{
        // Code block 1
        NSString* uid = [[NSUUID UUID] UUIDString];
      }];

      [runner report:@"CFUUIDCreate" context:^{
        // Code block 2
        CFUUIDRef uuid = CFUUIDCreate(nil);
        NSString* uid =  (__bridge NSString*)CFUUIDCreateString(nil, uuid);
        CFRelease(uuid);
      }];

      [runner report:@"ooid" context:^{
        // Code block 3
        // http://sourceforge.net/projects/ooid/
        NSString* uid = [UUID generateV4];
      }];

    } iterations:10000];
```

![](Documents/images/console-result.png)

Install
=============

- [CocoaPods: The Objective-C Library Manager](http://cocoapods.org/ "CocoaPods: The Objective-C Library Manager")

```bash
    # My Beta podspec Repository
    pod repo add laiso https://github.com/laiso/Specs.git beta
    # Add Podfile
    # pod 'RRBenchmark'
    
    pod install
```

Acknowledgements
=============

- [keithpitt/DKBenchmark](https://github.com/keithpitt/DKBenchmark "keithpitt/DKBenchmark · GitHub")
- [soffes/json-benchmarks](https://github.com/soffes/json-benchmarks "soffes/json-benchmarks · GitHub")
{'fraction_non_alphanumeric': 0.16626794258373206, 'fraction_numerical': 0.007177033492822967, 'mean_word_length': 3.1266447368421053, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5762524', 'n_tokens_mistral': 890, 'n_tokens_neox': 803, 'n_words': 161}