SkillAgentSearch skills...

RRBenchmark

A simple benckmark module for Objective-C.

Install / Use

/learn @laiso/RRBenchmark
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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];

Install

    pod 'RRBenchmark', :git => 'https://github.com/laiso/RRBenchmark.git'

Acknowledgements

Related Skills

View on GitHub
GitHub Stars33
CategoryDevelopment
Updated2mo ago
Forks1

Languages

C++

Security Score

90/100

Audited on Jan 3, 2026

No findings