Commit Graph
5 Commits
Author SHA1 Message Date
Gil 7bdcd93dfb Fix benchmark builds on non-Apple platforms (#1677) 2018-08-13 12:57:23 -07:00
Gil 15ef78f090 Replace uses of absl::string_view in constructor parameters with std::string (#1676)
* Add a MakeStringView benchmark

Turns out this is worse than just creating a std::string:

BM_MakeString             29 ns         29 ns  189065849
BM_MakeStringView         59 ns         59 ns   93013367

* Convert database_id to take std::string

* Convert DatabaseInfo to take std::string

* Convert User to take std::string

* Convert Token to take std::string

* Convert MakeStringView([NSString stringWithFormat:]) to StringFormat
2018-08-13 11:02:28 -07:00
Gil 762b0b5500 Reimplement util::MakeString(NSString*) (#1673)
* Add a benchmark for string_apple.h

* Reimplement MakeString in terms of CoreFoundation
2018-08-13 08:11:21 -07:00
Gil 00f4f6d037 Migrate LevelDB Key classes to C++ (#1651)
* Migrate to LevelDbVersionKey

* Migrate to LevelDbMutationKey

* Migrate to LevelDbDocumentMutationKey

* Migrate to LevelDbMutationQueueKey

* Migrate to LevelDbTargetGlobalKey

* Migrate to LevelDbTargetKey

* Migrate to LevelDbQueryTargetKey

* Migrate to LevelDbTargetDocumentKey

* Migrate to LevelDbDocumentTargetKey

* Migrate to LevelDbRemoteDocumentKey

Also:
  - Remove FSTLevelDBKey and tests
  - Remove StringView and tests
2018-08-08 12:34:03 -07:00
Greg Soltis 3b939a2362 Add Google Benchmark library and benchmark leveldb (#1137)
* Step one of benchmarking

* Benchmark writing to leveldb

* Comment out and style

* More comments

* Fix warnings

* Someday I will lint as good as computer

* Some light commenting and static-ing

* It seems to be working?

* Remove unused test file

* Drop commented-out deps

* Revert string quoting in pbxproj file

* Drop reference to deleted file

* Move podspec, fix import

* Lots of C++ style changes

* Style

* Drop whitespace
2018-07-19 19:43:58 -07:00