Commit Graph

7 Commits

Author SHA1 Message Date
Karoy Lorentey
8944591e71 [benchmark] Simplify benchmark registration 2021-09-15 22:08:08 -07:00
Karoy Lorentey
8910b75cfe [benchmark] Stop capitalizing function and variable names 2021-09-15 22:08:07 -07:00
Karoy Lorentey
203dc55b60 [benchmark] CheckResults → check
Capitalizing function names is against Swift naming conventions.
2021-09-15 22:08:07 -07:00
Pavol Vaskovic
bfbff45727 [benchmark] Downsized DictionaryKeysContains
The DictionaryKeysContains used unreasonably large dictionary to demonstrate the failed O(n) instead of O(1) performance in case of Cocoa Dictionary. The setup of 1M element dictionary took 8 seconds on my old machine!

The old pathological behavior can be equaly well demonstrated with a much smaller dictionary. (Validated by modifying `public func _customContainsEquatableElement` in `Dictionary.swift` to `return _variant.index(forKey: element) != nil`)

The reported performance with correct O(1) behavior is  unchanged.
2018-10-27 07:34:33 +02:00
Michael Gottesman
1466b29dec [benchmark] Disable one benchmark when compiling on Linux.
I was able to run Benchmark_QuickCheck with the out of tree Linux build with
just these tests disabled and everything seems to work.

rdar://40541972
2018-05-29 10:54:19 -07:00
Yuta Koshizawa
8afa9b1dcd [benchmark] Fix formatting 2018-05-05 11:17:08 +09:00
Yuta Koshizawa
903f55b45b [benchmark] Add DictionaryKeysContains 2018-05-03 01:22:31 +09:00