Skip to content

Instantly share code, notes, and snippets.

@ilia-cher
Created September 18, 2020 09:05
Show Gist options
  • Save ilia-cher/79870d9be7fb5454c9059b19710fd58d to your computer and use it in GitHub Desktop.
Save ilia-cher/79870d9be7fb5454c9059b19710fd58d to your computer and use it in GitHub Desktop.
trunk:
python benchmarks/profiler_benchmark/profiler_bench.py
Payload: loop; 256 iterations, N = 100
Profiling disabled, tensor size 1x1, use cuda: False, with stacks: False, use script: False
avg. time: 0.881 ms, stddev: 0.045 ms
time per iteration: 0.003 ms
Profiling enabled, tensor size 1x1, use cuda: False, with stacks: False, use script: False
avg. time: 13.236 ms, stddev: 2.367 ms
time per iteration: 0.052 ms
python benchmarks/profiler_benchmark/profiler_bench.py --use_script
Payload: loop; 256 iterations, N = 100
Profiling disabled, tensor size 1x1, use cuda: False, with stacks: False, use script: True
avg. time: 0.666 ms, stddev: 0.011 ms
time per iteration: 0.003 ms
Profiling enabled, tensor size 1x1, use cuda: False, with stacks: False, use script: True
avg. time: 12.957 ms, stddev: 1.974 ms
time per iteration: 0.051 ms
PR:
python benchmarks/profiler_benchmark/profiler_bench.py
Payload: loop; 256 iterations, N = 100
Profiling disabled, tensor size 1x1, use cuda: False, with stacks: False, use script: False
avg. time: 0.903 ms, stddev: 0.024 ms
time per iteration: 0.004 ms
Profiling enabled, tensor size 1x1, use cuda: False, with stacks: False, use script: False
avg. time: 14.326 ms, stddev: 1.697 ms
time per iteration: 0.056 ms
python benchmarks/profiler_benchmark/profiler_bench.py --use_script
Payload: loop; 256 iterations, N = 100
Profiling disabled, tensor size 1x1, use cuda: False, with stacks: False, use script: True
avg. time: 0.640 ms, stddev: 0.020 ms
time per iteration: 0.003 ms
Profiling enabled, tensor size 1x1, use cuda: False, with stacks: False, use script: True
avg. time: 14.085 ms, stddev: 0.615 ms
time per iteration: 0.055 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment