Is Adsense tripling your page load time?

July 13th, 2010
No Gravatar

On Sunday, Brent rolled out the first iteration of our new interface (for example, see how the college rankings now look). We were excited about the functionality, but subjectively the site seemed to load slowly for me, so I wanted to investigate. Specifically, I focused on browser ‘paint’ time, ignoring server-side processing delays (since the page gen time was a negligible 50 milliseconds).

Browser ‘painting’ is what happens after the page markup has been generated by the server and sent to the browser; based on the instructions within the markup, the browser ‘paints’ the canvas with items such as text and images. If javascript is on the page, the browser will execute the javascript and, if necessary, it will paint the canvas again according to the  javascript’s instructions. During the painting process, the page may subjectively feel sluggish or laggy (especially if the painting takes over 100ms, a commonly-accepted duration above which users tend to notice delays). At the end of all of this, the the canvas is totally painted and the user can interact with the page.

To troubleshoot our slow page painting, I made use of Google’s fantastic Chrome plugin ‘Speed Tracer’ . To conduct all of the following tests, I copied the HTML from a page on our site and loaded it locally to remove that variable from the equation. All other resources, such as ads, were loaded remotely. I pre-warmed any browser-cacheable objects by loading the page once prior to making any recordings.

Test 1: a normal page

First, I loaded a page as-is. The page is a user’s profile with four ads:  two Adsense ads (a skyscraper in the left nav, and a body ad in the middle of the page) and two custom ads that were remotely-loaded images (header and footer). How did it look?

Test 1 - normal page with all 4 ads

(Click to load the full-size image.) Shown is the Speed Tracer screenshot. There are several ~500ms paint events. The page takes 3.5 seconds to finish rendering – that’s pretty painful. But which components are causing the slowdown — Adsense, our custom javascript, or something else? Let’s try to tease this out.

Test 2: a normal page with only 1 of 2 Adsense ads enabled

Test 2: a normal page without non-Adsense ads

For this test, I removed the one Adsense ad from the page. The result? No change in overall speed (still ~3.5 seconds), although you can see that one brief rendering event is now gone.  Next, let’s get rid of all Adsense ads.

Test 3: a normal page without any Adsense ads

Test 3: a normal page without any Adsense ads

For this test, I removed both Adsense ads. The result? A huge change in rendering time! We dropped from 3.5 seconds down to 1 second. Instead of five 500ms paint events, we now only have one. This has a tremendous subjective benefit. Will removing the two non-Adsense ads improve our rendering time even more?

Test 4: a normal page with no ads

Test 4: a normal page without ads

There is really no change here from the last test (still 1 second to render the whole page). The remotely-loaded, non-Adsense, image-only ads were not impacting our page rendering time. Can we fulfill Koch’s postulates by ‘infecting’ a plain-vanilla HTML page that has under 500 bytes of text with Adsense, reproducing the slowdown?

Test 5: a blank HTML canvas with one Adsense ad

Test 5: a blank HTML canvas with one Adsense ad

Ouch. This is basically a blank page with some college-oriented words to trigger the right type of Adsense ad… and it takes 2.5 seconds to render.

Conclusion

We have a page that takes 3.5 seconds to render. 1 second of that time appears to be intrinsic to the page itself. 2.5 seconds of that time appears to be due to Adsense ads. Additional Adsense ads beyond the first one do not meaningfully worsen page rendering time.

Despite what strikes me as clear evidence (on one machine) of impressively slow rendering due to Adsense ads, I’m open to the possibility that there is another explanation and would love to hear feedback from people. Since Google has stated that they will be placing non-zero emphasis on page load time in the future, this feature of Adsense is somewhat concerning.

Notes

  • Test rig: Intel Core i7 720, 8GB RAM, Win 7. Chrome version 6.0.458.1 dev. Speed Tracer version 0.17. Internet courtesy of Boston’s Cambridge Street Starbucks (1mbit download according to speedtest.net.)
  • Adsense ads were always Flash (by chance). One could run another test with text-only ads, but image ads (and flash ads, which are conflated in the Adsense settings with image ads) seem to be the ‘standard’.
  • HTML was loaded from local machine for all tests. All stylesheets and javascript were loaded from remote servers.
  • Share/Bookmark

MyChances.net adds threaded college discussions

April 19th, 2010
No Gravatar

Quick update: each college now has its own threaded discussion board so you can comment – and easily keep track of who you’re talking to. The ‘discussion’ tab on each college page no longer links to old blog posts, but instead welcomes you into a running conversation with your peers. To see how this works, try joining the Harvard University discussion.

As always, feedback is welcome.

  • Share/Bookmark

Early admissions decisions

March 25th, 2010
No Gravatar

Kekam reports that NYU sent out an acceptance email, despite the reported notification date of April 1. Has anyone else gotten the good news from NYU?

Update: krusso51, another MyChances.net member, reports that Northwestern also released their decisions this evening.

  • Share/Bookmark

New server, brief downtime

March 7th, 2010
No Gravatar

A very brief update: we’ve successfully moved to a cluster of servers (instead of just one). We switched from MediaTemple to Linode and couldn’t be happier. We had some unexpected downtime this morning, so apologies if you were greeted by an overexcited white page stating, “It works!”

Now that we can focus on writing code instead of trying to fix slowdowns, expect more updates in the near future. College notification deadlines are approaching (ides of March, anyone?) – good luck to those of you waiting for your decisions!

  • Share/Bookmark

Free college essay editing – system update

December 28th, 2009
No Gravatar

We’ve been running the free essay editing and feedback system on MyChances.net for over a year, and over the holiday we decided it was time to make improvements based on lessons we have learned.

When will my essay be rated?

This is probably the #1 question that people would ask about the essay rating system. The problem was, it was really hard to answer. Nobody could choose which essay to read – we assigned it to them – which should have meant it was easy to know when an essay would get rated. If we had assigned essays in order of submission, the answer indeed would have been pretty obvious. But we didn’t do that. We wanted to reward people who contributed often to the site. Therefore, we assigned essays in the order of the # of credits that their author had.

Let’s say that the queue had one person’s essay, and this person was a pretty regular contributor, having 25 credits. His essay has been rated 4 times already, needing just one more to be completed. All of a sudden, I decide to submit an essay. Since I have 2,500 credits, my essay now takes precedence over his. So despite being 80% complete, he will have to wait for my essay to become 100% complete before he can get that last rating.

As a consequence, it became almost impossible to see how long it would take before one’s essay would get rated. It was dependent on stochastic processes.

Let the market decide

We wanted our authors to be able to get a sense of when their essay would be rated, while still rewarding those who contributed to the site. Therefore, we decided to allow the authors to offer as many or as few credits as they wanted, and to choose how many reviews they wanted to receive. The raters, in turn, would be able to see a list of all available essays, and how many credits were being offered for each one.

In this way, the authors could help determine how soon their essay would get rated. If they wanted a quick rating, for example, they could submit an essay for just 2 reviews at 15 credits a pop, jumping to the top of the list and getting done more quickly.

The title is the thing

Now that our raters could select one essay among many, things started to look pretty boring with names like “Untitled 1852″. Sure, perhaps you could select essays based on how many credits they pay (I sure do), or based on how many reviews are left to complete, or even based on some sort of credit-per-character metric. But in the end, I wanted to know if I would be evaluating an essay that looked interesting to me. So I created a new, publicly visible title field. Now I just might choose to evaluate “On leadership and lollipops” at 5 credits over “Untitled 2858″ at 10.

Note: ‘publicly visible title’ means that the title is world-viewable, including to non-members and search engines, until the essay has received its final rating. At that point, the title becomes completely hidden. The essay itself, of course, is always totally hidden from public view, which brings me to…

Privacy is still king

Every step of the way during the system redesign, I asked myself, “Would I use this if I were a college applicant?” For me, the only way that the answer would ever be “yes” is if I felt that my privacy were adequately protected. Many students are interested in getting feedback, and almost all are concerned about privacy. They don’t want their essays showing up in search results, or becoming easy fodder for copy-and-paste plagiarism.

Essays are still never shown to guests. And, while most members can now provide feedback on any active essay that they choose, they still must complete their rating of each essay they select before they can even view another. There are also limits in place on the number of essays that any particular member can view in one day.

Whither?

To where from here? We need to allow people to evaluate the quality of essay feedback that they receive. More details once that is implemented.

As always, if you have concerns, complaints, or suggestions for improvement, please post them here. Thanks to all of the members who *are* essay reviewers and essay authors. I am consistently impressed both with the essays that get submitted, and with the insightful, sincere feedback. Keep it up!

  • Share/Bookmark

Update: 2008-2009 admissions data

December 22nd, 2009
No Gravatar

We’ve loaded up the 2008-2009 official college admissions data, which you can see on our college rankings page and each colleges’ pages. Certainly, other people were aware of this about a year ago, but the number of applicants to Tulane skyrocketed in 2008 (to over 35,000), and apparently hit nearly 40,000 in 2009. Talk about a turnaround after Katrina!

  • Share/Bookmark

Bugfix: member walls

December 20th, 2009
No Gravatar

Have you tried to post on another person’s wall but find that your post never appeared? Have you received an email telling you that there is a new post waiting for you, but once you click through, you find nothing?

We ran out of integers to uniquely identify wall posts (oops!), but we bought some more, just in time for the holiday season.

  • Share/Bookmark

College Rankings #4: College preference matchups

December 6th, 2009
No Gravatar

Leonhardt Chart

2006 NYT College Preference Matchups

In 2006, New York Times columnist David Leonhardt wrote an article that was ostensibly about Harvard ending its early admissions program. The meat of the article, though, was far more interesting, filled with a discussion of college rankings*. A survey of 3,200 high school seniors from 500 high schools was performed in 1999. The students were asked about which schools admitted them, and which college they ended up attending. From this information, a model was created and used to calculate how often students would choose one college over another. See the NYT Chart for the results.

That data is now 10 years old, so over the past several months, MyChances developed tools to perform a similar analysis. For 2009, we surveyed 1,200 students at 950 high schools. How do our results stack up?

2009 College Preference Matchup

2009 MyChances College Preference Matchups

Let’s look at the same colleges as in the Leonhardt article, focusing on three examples: Harvard vs Stanford, Georgetown vs Brown,  and Duke vs Princeton.

73% of students would have chosen Harvard over Stanford in 1999. This is completely unchanged in 2009.

Among students admitted to Georgetown and Brown, only 22% were estimated to go to Georgetown in 1999. Now, our evidence suggests that Georgetown has pulled even with Brown, winning 53% of the matchups.

Finally, 91% of students admitted to Princeton and Duke previously chose Princeton. Now, we estimate that 35% would choose Duke – a far more narrow advantage for Princeton than before.

Though it is interesting to make some of the same comparisons as were made in the 2006 New York Times article, you’re not limited to those schools using our tools. We had enough data to rank over 200 colleges in 2009; hopefully we’ll be able to expand to 300 in 2010, ultimately providing estimates for all 1,700 colleges in our database in the near future.

* = Paper is “A Revealed Preference Ranking of U.S. Colleges and Universities” by Avery, Glickman, Hoxby, and Metrick

(Note: College Rankings #3, an exposition of our methods, has not yet been published.)

  • Share/Bookmark

Scatterplots: Now showing predictions, acceptance status

October 18th, 2009
No Gravatar

Tonight I added a couple of features to the scatterplots (scatter charts / scattergrams) that I introduced in my last post. The two new variables that you can now access are: acceptance status and prediction.

Let’s say you wanted to know how accurate our prediction engine is within one particular range of predictions. For example, you want to see what really happens when we claim someone has around 80-100% chances. Set the axes to Prediction, add a small amount of jitter, and you can now get a sense of how many miscategorizations we’ve made in that region. Take a look at Boston College to see an example.

You can now graph our predicted probability of acceptance on scatterplots.

You can now graph our predicted probability of acceptance on scatterplots.

Clearly we do a pretty good job at Boston College. For one, you can instantly see that the blue (accepted) applicants cluster on the right side with high predictions, while the red (rejected) cluster on the left. Additionally, look at the mean (average) lines. The mean prediction for accepted members was 83.3%, while that for rejected members was 35.6% – a very large difference.

Another way to visualize the data would be to set one axis to Accepted, and another to Prediction, so you get perfect separation between the blue (accepted) and red (rejected), and can perhaps more easily see how well our predictions separate the accepted from the rejected at any particular range of chances.

These updates were requested by Christian Romero; thanks, Christian.

  • Share/Bookmark

New college admissions tool: Interactive flash scatterplots

October 4th, 2009
No Gravatar

We have rolled out our interactive flash scatterplots (also known as scattergrams), available on every college page under the ‘My Analysis’ tab.

These graphs display the accepted and rejected applicants scattered across a 2D canvas according to the variables that you choose. For example, you might look at Unweighted GPA & SAT, or Instate & Average AP Score. To get started with this new tool, see Cornell’s scatterplots.

For any given SAT score, valedictorians appear more likely to get into Cornell than non-valedictorians.

For any given SAT score, valedictorians appear more likely to get into Cornell than non-valedictorians.

Because there are many, many overlaps, you can set a level of jitter, so each point floats near its true value. For example, if you look at Unweighted GPA and Valedictorian Status, everyone will clump on top of one another. (You either are a valedictorian, or you aren’t, so there are only 2 slots that you might possibly fit into – hence lots of clumping.) If you set a 20% jitter to Valedictorian Status, things will spread out nicely, so you can see what is really going on.

With your feedback and criticism (please post it here or in the forums), we’ll work on improving the tool. Enjoy!

These display the accepted and rejected applicants on the same canvas. You can choose which dimensions they’ll be displayed against (unweighted GPA and SAT, for example).
  • Share/Bookmark