django / djangobench

Harness and benchmarks for evaluating Django's performance over time
Other
210 stars 58 forks source link

ValueError: could not convert string to float - "short version" example #25

Open audreyfeldroy opened 9 years ago

audreyfeldroy commented 9 years ago

When I follow the "short version" example, I get this error:

$ djangobench --control=1.2 --experiment=master
Running all benchmarks
Control: Django 1.2 (in git branch 1.2)
Experiment: Django 1.9.dev20150415021140 (in git branch master)

Running 'default_middleware' benchmark ...
Traceback (most recent call last):
  File "/Users/audreyr/.virtualenvs/experiments/bin/djangobench", line 8, in <module>
    load_entry_point('djangobench==0.10', 'console_scripts', 'djangobench')()
  File "/Users/audreyr/code/third-party/djangobench/djangobench/main.py", line 397, in main
    experiment_python=args.experiment_python,
  File "/Users/audreyr/code/third-party/djangobench/djangobench/main.py", line 73, in run_benchmarks
    env=control_env)
  File "/Users/audreyr/code/third-party/djangobench/djangobench/main.py", line 145, in run_benchmark
    data_points = [float(line) for line in message.get_payload().splitlines()]
ValueError: could not convert string to float: d
audreyfeldroy commented 9 years ago

I get the same error for these as well, just FYI:

djangobench --control=1.7 --experiment=master
djangobench --control=1.8 --experiment=master
mjtamlyn commented 9 years ago

Seems to work fine for me. Python 3 bug maybe?

timgraham commented 7 years ago

I encountered this error if a benchmark outputs something to stdout, such as if you add a print statement for debugging.