Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 19, 2016 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/9890f381f4c2cbdd5b3583b3962f681a to your computer and use it in GitHub Desktop.
Save Whateverable/9890f381f4c2cbdd5b3583b3962f681a to your computer and use it in GitHub Desktop.
bisectable6
use Test; "ac" ~~ /(.)(.)?(.)/; is-deeply $/.perl.EVAL, $/
Bisecting: 952 revisions left to test after this (roughly 10 steps)
[a5540ee5f08ac5e7fb5414a7b78bdd44c2f7c370] Bump NQP revision for loadbytecodebuffer on JVM
»»»»» Testing a5540ee5f08ac5e7fb5414a7b78bdd44c2f7c370
»»»»» Script output:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» Script exit code: 1
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» The output is identical
»»»»» Final exit code: 0
»»»»» -------------------------------------------------------------------------
»»»»» Testing a6c12a7d881b85080535bd265ec23cb6a894b3b1
»»»»» Script output:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» Script exit code: 1
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» The output is different
»»»»» Final exit code: 1
»»»»» -------------------------------------------------------------------------
»»»»» Testing f87fca9d60783e66bc03d947ec04d45bff9ef460
»»»»» Script output:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» Script exit code: 1
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» The output is different
»»»»» Final exit code: 1
»»»»» -------------------------------------------------------------------------
»»»»» Testing 30b33e3a7b37551bc722ed4d5d6e09ff78e844c2
»»»»» Script output:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» Script exit code: 1
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» The output is different
»»»»» Final exit code: 1
»»»»» -------------------------------------------------------------------------
»»»»» Testing 19e91e889c5112876d0ca37434d8bd2cd5d0fae7
»»»»» Script output:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» Script exit code: 1
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» The output is identical
»»»»» Final exit code: 0
»»»»» -------------------------------------------------------------------------
»»»»» Testing 85cdb9ea2af9ba6bd2475bc7d6a762f0ed7ad0ee
»»»»» Script output:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» Script exit code: 1
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» The output is different
»»»»» Final exit code: 1
»»»»» -------------------------------------------------------------------------
»»»»» Testing be4e4395856ebf934e0d2d4298ab724020cf35ca
»»»»» Script output:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» Script exit code: 1
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» The output is identical
»»»»» Final exit code: 0
»»»»» -------------------------------------------------------------------------
»»»»» Testing b7e224fadbc948b60eb8b0ca5fef7e1eeca50772
»»»»» Script output:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Mu, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» Script exit code: 1
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» The output is different
»»»»» Final exit code: 1
»»»»» -------------------------------------------------------------------------
»»»»» Testing 05691d424a532426b54457c5bc4a5cf9468f20c7
»»»»» Script output:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» Script exit code: 1
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» The output is identical
»»»»» Final exit code: 0
»»»»» -------------------------------------------------------------------------
»»»»» Testing 9ff1af5a92cd3ce8d715acf9e61447ddc96094df
»»»»» Script output:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Mu, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» Script exit code: 1
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» The output is different
»»»»» Final exit code: 1
»»»»» -------------------------------------------------------------------------
»»»»» Testing beb3c986896344aa4537b620554a0630a832159a
»»»»» Script output:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Mu, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» Script exit code: 1
»»»»» Bisecting by using the output
»»»»» Comparing the output to:
not ok 1 -
# Failed test at /tmp/7I2mixBu9e line 1
# expected: Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 1, from => 0), Any, Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 1)), hash => Map.new(("" => [])), orig => "ac", to => 2, from => 0)
# got: Match.new(ast => Any, list => (), hash => Map.new(()), orig => "ac", to => 2, from => 0)
»»»»» The output is different
»»»»» Final exit code: 1
»»»»» -------------------------------------------------------------------------
beb3c986896344aa4537b620554a0630a832159a is the first bad commit
commit beb3c986896344aa4537b620554a0630a832159a
Author: Elizabeth Mattijsen <liz@dijkmat.nl>
Date: Sun May 29 11:23:37 2016 +0200
Make iteration of Lists about 10% faster
- by differentiating between reified/non-reified lists
- by making sure an iterator doesn't take slow, non-reified path again
- by making smaller, inlineable methods
- by not allocating if not necessary
- by using the new EmptyIterator if a list is completely empty
:040000 040000 d397aaf16aaf43239dcb7bd911371b2ae7781fce cfa28d8753e17a8b58dfa06a6742f809b62f4f82 M src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment