News for hackers. Stuff that matters.
Re:Transducers.js Round 2 with Benchmarks by jamesrom on Sunday October 12, 2014 @05:38PM (#8446694)
Time should be on the x-axis. Independent variables on the x-axis and dependent variables on the y.

EDIT: To clarify, plotting 'seconds' over 'items per second' is needlessly confusing.

Re:Transducers.js Round 2 with Benchmarks by dancole on Sunday October 12, 2014 @05:50PM (#8446717)
>> Independent variables on the x-axis and dependent variables on the y.

Correct. The independent variable being the number of items and the dependent variable being the time it takes to run said number of items.

>> Time should be on the x-axis.

Time should be on the y-axis. It's the time it takes to execute, given a set of items.

[deleted]
Re:Transducers.js Round 2 with Benchmarks by XaspR8d on Sunday October 12, 2014 @08:06PM (#8446997)
It's simply plotting 'seconds' over 'items'. Neither axis is a compound unit.
Re:Transducers.js Round 2 with Benchmarks by nmjohn on Sunday October 12, 2014 @05:49PM (#8446715)
> Time should be on the x-axis. Independent variables on the x-axis and dependent variables on the y.

The graph is correct - the independent variables in this case are the number of items in the array (the x axis) and the library being tested (each line).

The dependent variable in this case is time - which is why it is on the y axis.

Re:Transducers.js Round 2 with Benchmarks by mattdeboard on Sunday October 12, 2014 @07:51PM (#8446964)
I think you're just confused. From the post:

> The graph below shows the time it took to run versus the size of [the array]