Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7054563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:38:33+00:00 2026-05-28T03:38:33+00:00

I am writing a script to tokenize file contents. I’ve written a tokenizer in

  • 0

I am writing a script to tokenize file contents. I’ve written a tokenizer in JavaScript, but it gets pretty slow with large files (5+ seconds). Since I’m retrieving the files from the server anyways, I am considering rewriting it in PHP to shave off a few seconds. I’ve read that the speed difference between PHP and JavaScript is negligible, but if the files are 1mb or bigger, a small speed difference could add up. I found this benchmark online, but I’m not sure if the info is up-to-date (with all the JS engine optimizations from the past couple years).

Porting over all my code would take some work, so if I can help it, I won’t use PHP. But if its going to be much faster (25-30%), it would be worth it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:38:33+00:00Added an answer on May 28, 2026 at 3:38 am

    Well, like you alluded, JavaScript is executed on the client side, so it would depend on the client. For example, a client on an iPAD wouldn’t be able to run those Quake3 HTML5s as smoothly as a client running on a gaming machine. PHP on the other hand runs on the server.

    In general, JS is faster considerably than PHP though (on the same hardware);

    Here are some [hard figures][1] of tests between the two, to back up my assertion.
    [JS (query) vs PHP][2] Performance.

    [1]: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/php.html [2]: jQuery vs. PHP – Performance Comparison

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a script that has to move some file around, but unfortunately it
I am writing a script that will transfer a file from one server to
I am writing a script to clean up my desktop, moving files based on
I'm writing a script that will grab several files and then copy them into
I just finished writing this script and getting it to work but I need
I'm writing a script which manages a very large table. When a user clicks
I am writing a python script that parses a 3D model file from one
Writing a script to automatically create an appointment in outlook via javascript. It works
I have been writing a script to add untracked files using git add .
I am writing following script to read list of servers from the text file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.