Skip to content

Commit

Permalink
Merge pull request #83 from ll7/82-Write-a-test-that-measures-the-sim…
Browse files Browse the repository at this point in the history
…ulation-speed-and-tracks-the-simulation-performance-over-development-iterations

Add benchmarking script for simulation performance metrics
  • Loading branch information
ll7 authored Nov 27, 2024
2 parents cc7f6b9 + 46870d8 commit e959a56
Show file tree
Hide file tree
Showing 2 changed files with 595 additions and 0 deletions.
366 changes: 366 additions & 0 deletions benchmark_results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,366 @@
[
{
"timestamp": "2024-11-26 15:16:51",
"metrics": {
"steps_per_second": 61.76119723423083,
"avg_step_time_ms": 16.191395969988662,
"total_episodes": 16,
"system_info": {
"platform": "macOS-15.1.1-arm64-arm-64bit",
"processor": "arm",
"python_version": "3.12.7",
"cpu_count": 14,
"memory_gb": 24.0,
"cpu_freq": {
"current": 4,
"min": 1,
"max": 4
}
},
"config_hash": "5070639080499893366",
"observation_space_info": {
"drive_state_shape": [
3,
5
],
"rays_shape": [
3,
272
],
"drive_state_bounds": {
"low": [
[
0.0,
-1.0,
0.0,
-1.0,
-1.0
],
[
0.0,
-1.0,
0.0,
-1.0,
-1.0
],
[
0.0,
-1.0,
0.0,
-1.0,
-1.0
]
],
"high": [
[
1.0,
1.0,
1.0,
1.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
1.0
]
]
}
},
"used_random_actions": true,
"env_info": {
"difficulty": 2,
"ped_density_by_difficulty": [
0.02,
0.04,
0.08
],
"map_name": [
"uni_campus_big"
]
}
}
},
{
"timestamp": "2024-11-26 15:20:11",
"metrics": {
"steps_per_second": 64.21469955469131,
"avg_step_time_ms": 15.572758370508382,
"total_episodes": 10,
"system_info": {
"platform": "macOS-15.1.1-arm64-arm-64bit",
"processor": "arm",
"python_version": "3.12.7",
"cpu_count": 14,
"memory_gb": 24.0,
"cpu_freq": {
"current": 4,
"min": 1,
"max": 4
}
},
"config_hash": "1929142745803813092",
"observation_space_info": {
"drive_state_shape": [
3,
5
],
"rays_shape": [
3,
272
],
"drive_state_bounds": {
"low": [
[
0.0,
-1.0,
0.0,
-1.0,
-1.0
],
[
0.0,
-1.0,
0.0,
-1.0,
-1.0
],
[
0.0,
-1.0,
0.0,
-1.0,
-1.0
]
],
"high": [
[
1.0,
1.0,
1.0,
1.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
1.0
]
]
}
},
"used_random_actions": true,
"env_info": {
"difficulty": 2,
"ped_density_by_difficulty": [
0.02,
0.04,
0.08
],
"map_name": [
"uni_campus_big"
]
}
}
},
{
"timestamp": "2024-11-26 16:49:39",
"metrics": {
"steps_per_second": 60.65170177469126,
"avg_step_time_ms": 16.48758354241727,
"total_episodes": 14,
"system_info": {
"platform": "macOS-15.1.1-arm64-arm-64bit",
"processor": "arm",
"python_version": "3.12.7",
"cpu_count": 14,
"memory_gb": 24.0,
"cpu_freq": {
"current": 4,
"min": 1,
"max": 4
}
},
"config_hash": "2211083461599127183",
"observation_space_info": {
"drive_state_shape": [
3,
5
],
"rays_shape": [
3,
272
],
"drive_state_bounds": {
"low": [
[
0.0,
-1.0,
0.0,
-1.0,
-1.0
],
[
0.0,
-1.0,
0.0,
-1.0,
-1.0
],
[
0.0,
-1.0,
0.0,
-1.0,
-1.0
]
],
"high": [
[
1.0,
1.0,
1.0,
1.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
1.0
]
]
}
},
"used_random_actions": true,
"env_info": {
"difficulty": 2,
"ped_density_by_difficulty": [
0.02,
0.04,
0.08
],
"map_name": [
"uni_campus_big"
]
}
}
},
{
"timestamp": "2024-11-26 16:58:13",
"metrics": {
"steps_per_second": 63.12528437719299,
"avg_step_time_ms": 15.841512792634603,
"total_episodes": 16,
"system_info": {
"platform": "macOS-15.1.1-arm64-arm-64bit",
"processor": "arm",
"python_version": "3.12.7",
"cpu_count": 14,
"memory_gb": 24.0,
"cpu_freq": {
"current": 4,
"min": 1,
"max": 4
}
},
"config_hash": "6694611064870271734",
"observation_space_info": {
"drive_state_shape": [
3,
5
],
"rays_shape": [
3,
272
],
"drive_state_bounds": {
"low": [
[
0.0,
-1.0,
0.0,
-1.0,
-1.0
],
[
0.0,
-1.0,
0.0,
-1.0,
-1.0
],
[
0.0,
-1.0,
0.0,
-1.0,
-1.0
]
],
"high": [
[
1.0,
1.0,
1.0,
1.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
1.0
]
]
}
},
"used_random_actions": true,
"env_info": {
"difficulty": 2,
"ped_density_by_difficulty": [
0.02,
0.04,
0.08
],
"map_name": [
"uni_campus_big"
]
}
}
}
]
Loading

0 comments on commit e959a56

Please sign in to comment.