35 lines
1.3 KiB
PHP
35 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\BenchmarkRun;
|
|
use App\Models\DepthsweepResult;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/** @extends Factory<DepthsweepResult> */
|
|
class DepthsweepResultFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
// depthsweep: needle-in-haystack at a depth point — no tok/s columns.
|
|
return [
|
|
'benchmark_run_id' => BenchmarkRun::factory(),
|
|
'ran_at' => now(),
|
|
'task' => $this->faker->randomElement(['housing_ref', 'quote_price']),
|
|
'level' => $this->faker->randomElement(['off', 'low', 'medium', 'xhigh']),
|
|
'ok' => $this->faker->boolean(80),
|
|
'decode' => null,
|
|
'user_tps' => null,
|
|
'ttft' => round($this->faker->randomFloat(2, 60, 90), 2),
|
|
't_answer' => null,
|
|
'wall' => round($this->faker->randomFloat(2, 60, 95), 2),
|
|
'reasoning' => null,
|
|
'visible' => $this->faker->numberBetween(2, 10),
|
|
'total' => null,
|
|
'finish' => null,
|
|
'detail' => 'BX-'.$this->faker->numberBetween(1000, 9999),
|
|
'section' => 'd'.$this->faker->randomElement(['0.1', '0.3', '0.5', '0.7', '0.9']),
|
|
'payload' => ['ok' => true],
|
|
];
|
|
}
|
|
}
|