Skip to content

Performance degradation from commit f33dcd9 #939

Closed

Description

@meelash

I'm using mssql as a dependency of knex.

I've traced a performance issue that I'm having (taking 4x longer!) to this mssql commit: f33dcd9 (UPDATE: see comment for correct problematic commit)

$ npm install git+https://github.com/tediousjs/node-mssql.git#7286c5ac9e8a3bba813fa3f23de34bbeb06ce879
+ [email protected]
added 7 packages from 27 contributors, removed 1 package, updated 1 package and audited 4278 packages in 5.184s
$ ./bin/perfTest
starting
finished
elapsed, real-time: 18152
$ npm install git+https://github.com/tediousjs/node-mssql.git#f33dcd9f2324af04855e37ac8bc8f018fea4f760
+ [email protected]
added 1 package from 1 contributor, removed 7 packages, updated 1 package and audited 4329 packages in 5.172s
$ ./bin/perfTest
starting
finished
elapsed, real-time: 79474

perfTest.js consists of about 60-70 INSERTs sequentially and about 2-3 MERGEs interspersed with them.
Any preliminary ideas why this is happening or suggestions on exploring further?

Activity

  1. changed the title [-]Huge performance drop from commit Merge branch '5'[/-] [+]Huge performance drop from commit https://github.com/tediousjs/node-mssql/commit/f33dcd9f2324af04855e37ac8bc8f018fea4f760 "Merge branch '5' "[/+] on Nov 12, 2019
  2. changed the title [-]Huge performance drop from commit https://github.com/tediousjs/node-mssql/commit/f33dcd9f2324af04855e37ac8bc8f018fea4f760 "Merge branch '5' "[/-] [+]Huge performance drop from commit f33dcd9 "Merge branch '5' "[/+] on Nov 12, 2019
  3. willmorgan commented on Nov 12, 2019

    @willmorgan
    Collaborator
    • Performance in what regard?
    • What measurements have you taken?
    • Can you supply sample code?
    • What have you profiled?
  4. changed the title [-]Huge performance drop from commit f33dcd9 "Merge branch '5' "[/-] [+]Performance degradation from commit f33dcd9[/+] on Nov 12, 2019
  5. meelash commented on Nov 13, 2019

    @meelash
    Author

    Ok, I apologize, I misunderstood github's commit history, I've tracked down the degradation to the correct commit now; it is actually this commit that is causing the issue: b635268
    and specifically the upgrade of tedious to version 6.

    • Performance in what regard?

    The same script taking 79474 ms to run, as opposed to 18152 ms, as seen in the example I attached.

    • What measurements have you taken?

    Ran a script consisting of about 60-70 INSERTs sequentially and about 2-3 MERGEs interspersed with them and measured the total time taken to run it.

    • Can you supply sample code?

    Now that I've narrowed it down to a tedious upgrade, I'll probably open an issue there and try to create a minimally working example. I think it is this commit that causes the issue: tediousjs/tedious@d949dd8

  6. dhensby commented on Nov 13, 2019

    @dhensby
    Collaborator

    OK, thanks @meelash - this seems to be a regression in the tedious driver and not our library.

    Please open an issue against the tedious lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions