|
Ran
|
Jobs
3
|
Files
116
|
Run time
7min
|
Badge
README BADGES
|
push
travis-ci
Add PHPUtils::pushArray() The considerations are similar to JavaScript. The array has to be passed by reference explicitly, whereas in JavaScript this is the default. I omitted the return value to make it more clear that the parameter is being modified. Benchmarking shows that it is necessary. Naively using array_merge() with a small array on the RHS requires copying the LHS. Passing the LHS by value, appending to it and returning it also requires copying the LHS. I also benchmarked the case of a small array on the LHS joined to a large array on the RHS, there was a ~7µs constant overhead. Change-Id: Ib6d0e2c8c
9557 of 12028 branches covered (79.46%)
14871 of 17612 relevant lines covered (84.44%)
86195.8 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 2407.1 | 0 |
84.44 |
Travis Job 2407.1 | |
| 2 | 2407.2 | 0 |
84.44 |
Travis Job 2407.2 | |
| 3 | 2407.3 | 0 |
84.44 |
Travis Job 2407.3 |