Commit 83f1331
committed
Use an Array of floats for the json float benchmark
JSON dictionary keys are always strings, so this benchmark could be seen
to be misleading, as only the values are floats, the keys will be
implicitly converted when the hash is converted to json.
I've chosen to do use an array here instead of explicilty converting the
keys into strings because it avoids the complexity of string
interpolation, and it keeps the original intention of this micro
benchmark which was to have all the contents of the data structure
homogenous.1 parent b5591c3 commit 83f1331
1 file changed
+4
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
22 | 14 | | |
23 | 15 | | |
24 | 16 | | |
| |||
0 commit comments