cnamedtuple icon indicating copy to clipboard operation
cnamedtuple copied to clipboard

./prof/bench crashes

Open sir-sigurd opened this issue 8 years ago • 3 comments

╰─$ ./prof/bench
Running with: Python 3.6.2 (default, Jul 17 2017, 13:39:29) [GCC 6.4.0 20170704]

type creation from string with 1 field(s): namedtuple('NT', 'a')
  collections: Traceback (most recent call last):
  File "./prof/bench", line 152, in <module>
    main()
  File "./prof/bench", line 143, in main
    ratio.extend(run_test(v, args.n))
  File "./prof/bench", line 89, in run_test
    print(collections.format())
AttributeError: 'Benchmark' object has no attribute 'format'

sir-sigurd avatar Aug 31 '17 11:08 sir-sigurd

What version of perf are you using? I have tested with 0.9.4.

llllllllll avatar Aug 31 '17 19:08 llllllllll

I tried to run it with perf==1.4 and perf==1.3.

sir-sigurd avatar Sep 01 '17 05:09 sir-sigurd

The API may have changed since this was written, could you try with 0.9.4 and see if you still get an error?

llllllllll avatar Sep 01 '17 05:09 llllllllll