|
377 | 377 | ] |
378 | 378 | format = ['%s', '%.1f', '%.1f', '%.1f', '%.1f'] |
379 | 379 | bench_failures = {} |
380 | | - base_name = 'ruby-base' |
381 | | - other_names = ['ruby-yjit'] |
382 | 380 |
|
383 | 381 | result = BenchmarkRunner.build_output_text( |
384 | | - ruby_descriptions, table, format, bench_failures, base_name, other_names |
| 382 | + ruby_descriptions, table, format, bench_failures |
385 | 383 | ) |
386 | 384 |
|
387 | 385 | assert_includes result, 'ruby-base: ruby 3.3.0' |
|
399 | 397 | ] |
400 | 398 | format = ['%s', '%.1f', '%.1f'] |
401 | 399 | bench_failures = {} |
402 | | - base_name = 'ruby' |
403 | | - other_names = [] |
404 | 400 |
|
405 | 401 | result = BenchmarkRunner.build_output_text( |
406 | | - ruby_descriptions, table, format, bench_failures, base_name, other_names |
| 402 | + ruby_descriptions, table, format, bench_failures |
407 | 403 | ) |
408 | 404 |
|
409 | 405 | # Should contain table headers |
|
419 | 415 | table = [['bench', 'ruby (ms)'], ['fib', '100.0']] |
420 | 416 | format = ['%s', '%.1f'] |
421 | 417 | bench_failures = {} |
422 | | - base_name = 'ruby' |
423 | | - other_names = [] |
424 | 418 |
|
425 | 419 | result = BenchmarkRunner.build_output_text( |
426 | | - ruby_descriptions, table, format, bench_failures, base_name, other_names |
| 420 | + ruby_descriptions, table, format, bench_failures |
427 | 421 | ) |
428 | 422 |
|
429 | 423 | refute_includes result, 'Legend:' |
|
438 | 432 | table = [['bench', 'ruby (ms)', 'ruby-yjit (ms)', 'ruby-rjit (ms)']] |
439 | 433 | format = ['%s', '%.1f', '%.1f', '%.1f'] |
440 | 434 | bench_failures = {} |
441 | | - base_name = 'ruby' |
442 | | - other_names = ['ruby-yjit', 'ruby-rjit'] |
443 | 435 |
|
444 | 436 | result = BenchmarkRunner.build_output_text( |
445 | | - ruby_descriptions, table, format, bench_failures, base_name, other_names |
| 437 | + ruby_descriptions, table, format, bench_failures |
446 | 438 | ) |
447 | 439 |
|
448 | 440 | assert_includes result, 'ruby-yjit 1st itr' |
|
458 | 450 | bench_failures = { |
459 | 451 | 'ruby' => { 'failed_bench' => 'error message' } |
460 | 452 | } |
461 | | - base_name = 'ruby' |
462 | | - other_names = [] |
463 | 453 |
|
464 | 454 | result = BenchmarkRunner.build_output_text( |
465 | | - ruby_descriptions, table, format, bench_failures, base_name, other_names |
| 455 | + ruby_descriptions, table, format, bench_failures |
466 | 456 | ) |
467 | 457 |
|
468 | 458 | # TableFormatter handles displaying failures, just verify it's called |
|
475 | 465 | table = [['bench']] |
476 | 466 | format = ['%s'] |
477 | 467 | bench_failures = {} |
478 | | - base_name = 'ruby' |
479 | | - other_names = [] |
480 | 468 |
|
481 | 469 | result = BenchmarkRunner.build_output_text( |
482 | | - ruby_descriptions, table, format, bench_failures, base_name, other_names |
| 470 | + ruby_descriptions, table, format, bench_failures |
483 | 471 | ) |
484 | 472 |
|
485 | 473 | assert_kind_of String, result |
|
495 | 483 | table = [['bench']] |
496 | 484 | format = ['%s'] |
497 | 485 | bench_failures = {} |
498 | | - base_name = 'ruby-a' |
499 | | - other_names = [] |
500 | 486 |
|
501 | 487 | result = BenchmarkRunner.build_output_text( |
502 | | - ruby_descriptions, table, format, bench_failures, base_name, other_names |
| 488 | + ruby_descriptions, table, format, bench_failures |
503 | 489 | ) |
504 | 490 |
|
505 | 491 | lines = result.lines |
|
0 commit comments