Commit Graph

10 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
tbkka
2c8ae98e5e Python3 compatibility for Benchmarks (#33039)
Three issues addressed here:

1. Dependency on dictionary iteration order

 CharacterProperties.swift.gyb iterated a dictionary to produce its output.
 Changed this to a list of tuples to ensure the order is predictable.

2. Python3 `map` returns an iterator, not a list

 Changed a bunch of `map` calls to `list(map(...))` to ensure the result is a list

3. Python3 `int()` expects a string, won't accept a list of characters

 Added a concatenation step that is effectively a no-op on Python2
2020-07-22 12:24:10 -07:00
Pavol Vaskovic
51a5f26e31 [benchmark] CharacterProperties Legacy Factor
…plus an attempt at reducing wide range of memory used between independent, repeated measurements in the `CharacterPropertiesPrecomputed` benchmark by reserving the appropriate set capacity in advance.
2018-12-07 16:27:06 +01:00
Pavol Vaskovic
ca2a52b5e9 [benchmark] Setup CharacterPropertiesPrecomputed
Reduced the time to run the setUpFunction from 2.2s to 380ms on my ancient computer… This should fit well under 200ms on more modern machines.
2018-10-29 16:18:01 +01:00
Erik Eckstein
50db6f1ed3 benchmarks: fix the setup functions of the CharacterProperties benchmark.
Force all globals to be initialized in the setup functions
2018-07-24 20:20:23 -07:00
Karoy Lorentey
41a8b9c084 [gardening][benchmark] Don't let Emacs modify gyb-generated benchmark sources 2018-06-25 17:16:39 +01:00
Michael Ilseman
c30c2f5bcb [benchmark] Use setUpFunction for run-once initializers 2018-01-08 15:03:25 -08:00
Michael Ilseman
d9fa4f5d0d [benchmark] More CharacterProperty variations 2018-01-08 13:05:23 -08:00
Michael Ilseman
1c2954b133 [benchmark] Add a CharacterProperties benchmark 2018-01-05 11:27:36 -08:00